1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* RustType.kt:516 */
|
2 3 | #[::pyo3::pyclass]
|
4 + | /* PythonServerStructureGenerator.kt:63 */
|
3 5 | /// :param events typing.AsyncIterator\[constraints_without_public_constrained_types.model.Event\]:
|
4 6 | /// :rtype None:
|
7 + | /* StructureGenerator.kt:197 */
|
5 8 | #[allow(missing_docs)] // documentation missing in model
|
9 + | /* RustType.kt:516 */
|
6 10 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
7 - | pub struct EventStreamsOperationInput {
|
11 + | pub /* StructureGenerator.kt:201 */ struct EventStreamsOperationInput {
|
12 + | /* RustType.kt:516 */
|
8 13 | #[pyo3(get, set)]
|
14 + | /* PythonServerStructureGenerator.kt:80 */
|
9 15 | /// :type typing.AsyncIterator\[constraints_without_public_constrained_types.model.Event\]:
|
16 + | /* StructureGenerator.kt:231 */
|
10 17 | #[allow(missing_docs)] // documentation missing in model
|
11 18 | pub events: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
19 + | /* StructureGenerator.kt:201 */
|
12 20 | }
|
21 + | /* StructureGenerator.kt:135 */
|
13 22 | impl EventStreamsOperationInput {
|
23 + | /* StructureGenerator.kt:231 */
|
14 24 | #[allow(missing_docs)] // documentation missing in model
|
25 + | /* StructureGenerator.kt:166 */
|
15 26 | pub fn events(&self) -> &crate::python_event_stream::EventStreamsOperationInputEventsReceiver {
|
27 + | /* StructureGenerator.kt:172 */
|
16 28 | &self.events
|
29 + | /* StructureGenerator.kt:166 */
|
17 30 | }
|
31 + | /* StructureGenerator.kt:135 */
|
18 32 | }
|
33 + | /* RustType.kt:516 */
|
19 34 | #[allow(clippy::new_without_default)]
|
35 + | /* RustType.kt:516 */
|
20 36 | #[allow(clippy::too_many_arguments)]
|
37 + | /* RustType.kt:516 */
|
21 38 | #[::pyo3::pymethods]
|
39 + | /* PythonServerStructureGenerator.kt:88 */
|
22 40 | impl EventStreamsOperationInput {
|
23 41 | #[new]
|
24 42 | pub fn new(
|
25 43 | events: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
26 44 | ) -> Self {
|
27 45 | Self { events }
|
28 46 | }
|
29 47 | fn __repr__(&self) -> String {
|
30 48 | format!("{self:?}")
|
31 49 | }
|
32 50 | fn __str__(&self) -> String {
|
33 51 | format!("{self:?}")
|
34 52 | }
|
35 53 | }
|
54 + | /* PythonServerStructureGenerator.kt:111 */
|
36 55 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EventStreamsOperationInput> {
|
37 56 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
38 57 | ob.extract::<EventStreamsOperationInput>().map(Box::new)
|
39 58 | }
|
40 59 | }
|
41 60 |
|
42 61 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EventStreamsOperationInput> {
|
43 62 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
44 63 | (*self).into_py(py)
|
45 64 | }
|
46 65 | }
|
66 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
47 67 | impl crate::constrained::Constrained for crate::input::EventStreamsOperationInput {
|
48 68 | type Unconstrained = crate::input::event_streams_operation_input_internal::Builder;
|
49 69 | }
|
70 + | /* ServerCodegenVisitor.kt:370 */
|
50 71 | impl EventStreamsOperationInput {
|
51 - | /// Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
72 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
73 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
52 74 | pub fn builder() -> crate::input::event_streams_operation_input::Builder {
|
75 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
53 76 | crate::input::event_streams_operation_input::Builder::default()
|
77 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
54 78 | }
|
79 + | /* ServerCodegenVisitor.kt:370 */
|
55 80 | }
|
56 81 |
|
82 + | /* RustType.kt:516 */
|
57 83 | #[::pyo3::pyclass]
|
84 + | /* PythonServerStructureGenerator.kt:63 */
|
58 85 | /// :param streaming_blob constraints_without_public_constrained_types.types.ByteStream:
|
59 86 | /// :rtype None:
|
87 + | /* StructureGenerator.kt:197 */
|
60 88 | #[allow(missing_docs)] // documentation missing in model
|
89 + | /* RustType.kt:516 */
|
61 90 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
62 - | pub struct StreamingBlobOperationInput {
|
91 + | pub /* StructureGenerator.kt:201 */ struct StreamingBlobOperationInput {
|
92 + | /* RustType.kt:516 */
|
63 93 | #[pyo3(get, set)]
|
94 + | /* PythonServerStructureGenerator.kt:80 */
|
64 95 | /// :type constraints_without_public_constrained_types.types.ByteStream:
|
96 + | /* StructureGenerator.kt:231 */
|
65 97 | #[allow(missing_docs)] // documentation missing in model
|
66 98 | pub streaming_blob: ::aws_smithy_http_server_python::types::ByteStream,
|
99 + | /* StructureGenerator.kt:201 */
|
67 100 | }
|
101 + | /* StructureGenerator.kt:135 */
|
68 102 | impl StreamingBlobOperationInput {
|
103 + | /* StructureGenerator.kt:231 */
|
69 104 | #[allow(missing_docs)] // documentation missing in model
|
105 + | /* StructureGenerator.kt:166 */
|
70 106 | pub fn streaming_blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
107 + | /* StructureGenerator.kt:172 */
|
71 108 | &self.streaming_blob
|
109 + | /* StructureGenerator.kt:166 */
|
72 110 | }
|
111 + | /* StructureGenerator.kt:135 */
|
73 112 | }
|
113 + | /* RustType.kt:516 */
|
74 114 | #[allow(clippy::new_without_default)]
|
115 + | /* RustType.kt:516 */
|
75 116 | #[allow(clippy::too_many_arguments)]
|
117 + | /* RustType.kt:516 */
|
76 118 | #[::pyo3::pymethods]
|
119 + | /* PythonServerStructureGenerator.kt:88 */
|
77 120 | impl StreamingBlobOperationInput {
|
78 121 | #[new]
|
79 122 | pub fn new(streaming_blob: ::aws_smithy_http_server_python::types::ByteStream) -> Self {
|
80 123 | Self { streaming_blob }
|
81 124 | }
|
82 125 | fn __repr__(&self) -> String {
|
83 126 | format!("{self:?}")
|
84 127 | }
|
85 128 | fn __str__(&self) -> String {
|
86 129 | format!("{self:?}")
|
87 130 | }
|
88 131 | }
|
132 + | /* PythonServerStructureGenerator.kt:111 */
|
89 133 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingBlobOperationInput> {
|
90 134 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
91 135 | ob.extract::<StreamingBlobOperationInput>().map(Box::new)
|
92 136 | }
|
93 137 | }
|
94 138 |
|
95 139 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamingBlobOperationInput> {
|
96 140 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
97 141 | (*self).into_py(py)
|
98 142 | }
|
99 143 | }
|
144 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
100 145 | impl crate::constrained::Constrained for crate::input::StreamingBlobOperationInput {
|
101 146 | type Unconstrained = crate::input::streaming_blob_operation_input_internal::Builder;
|
102 147 | }
|
148 + | /* ServerCodegenVisitor.kt:370 */
|
103 149 | impl StreamingBlobOperationInput {
|
104 - | /// Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
150 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
151 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
105 152 | pub fn builder() -> crate::input::streaming_blob_operation_input::Builder {
|
153 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
106 154 | crate::input::streaming_blob_operation_input::Builder::default()
|
155 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
107 156 | }
|
157 + | /* ServerCodegenVisitor.kt:370 */
|
108 158 | }
|
109 159 |
|
160 + | /* RustType.kt:516 */
|
110 161 | #[::pyo3::pyclass]
|
162 + | /* PythonServerStructureGenerator.kt:63 */
|
111 163 | /// :param non_streaming_blob typing.Optional\[constraints_without_public_constrained_types.types.Blob\]:
|
112 164 | /// :rtype None:
|
165 + | /* StructureGenerator.kt:197 */
|
113 166 | #[allow(missing_docs)] // documentation missing in model
|
167 + | /* RustType.kt:516 */
|
114 168 | #[derive(
|
115 169 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
116 170 | )]
|
117 - | pub struct NonStreamingBlobOperationInput {
|
171 + | pub /* StructureGenerator.kt:201 */ struct NonStreamingBlobOperationInput {
|
172 + | /* RustType.kt:516 */
|
118 173 | #[pyo3(get, set)]
|
174 + | /* PythonServerStructureGenerator.kt:80 */
|
119 175 | /// :type typing.Optional\[constraints_without_public_constrained_types.types.Blob\]:
|
176 + | /* StructureGenerator.kt:231 */
|
120 177 | #[allow(missing_docs)] // documentation missing in model
|
121 178 | pub non_streaming_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
179 + | /* StructureGenerator.kt:201 */
|
122 180 | }
|
181 + | /* StructureGenerator.kt:135 */
|
123 182 | impl NonStreamingBlobOperationInput {
|
183 + | /* StructureGenerator.kt:231 */
|
124 184 | #[allow(missing_docs)] // documentation missing in model
|
185 + | /* StructureGenerator.kt:166 */
|
125 186 | pub fn non_streaming_blob(
|
126 187 | &self,
|
127 188 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
189 + | /* StructureGenerator.kt:170 */
|
128 190 | self.non_streaming_blob.as_ref()
|
191 + | /* StructureGenerator.kt:166 */
|
129 192 | }
|
193 + | /* StructureGenerator.kt:135 */
|
130 194 | }
|
195 + | /* RustType.kt:516 */
|
131 196 | #[allow(clippy::new_without_default)]
|
197 + | /* RustType.kt:516 */
|
132 198 | #[allow(clippy::too_many_arguments)]
|
199 + | /* RustType.kt:516 */
|
133 200 | #[::pyo3::pymethods]
|
201 + | /* PythonServerStructureGenerator.kt:88 */
|
134 202 | impl NonStreamingBlobOperationInput {
|
135 203 | #[new]
|
136 204 | pub fn new(
|
137 205 | non_streaming_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
138 206 | ) -> Self {
|
139 207 | Self { non_streaming_blob }
|
140 208 | }
|
141 209 | fn __repr__(&self) -> String {
|
142 210 | format!("{self:?}")
|
143 211 | }
|
144 212 | fn __str__(&self) -> String {
|
145 213 | format!("{self:?}")
|
146 214 | }
|
147 215 | }
|
216 + | /* PythonServerStructureGenerator.kt:111 */
|
148 217 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NonStreamingBlobOperationInput> {
|
149 218 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
150 219 | ob.extract::<NonStreamingBlobOperationInput>().map(Box::new)
|
151 220 | }
|
152 221 | }
|
153 222 |
|
154 223 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NonStreamingBlobOperationInput> {
|
155 224 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
156 225 | (*self).into_py(py)
|
157 226 | }
|
158 227 | }
|
228 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
159 229 | impl crate::constrained::Constrained for crate::input::NonStreamingBlobOperationInput {
|
160 230 | type Unconstrained = crate::input::non_streaming_blob_operation_input_internal::Builder;
|
161 231 | }
|
232 + | /* ServerCodegenVisitor.kt:370 */
|
162 233 | impl NonStreamingBlobOperationInput {
|
163 - | /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
234 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
235 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
164 236 | pub fn builder() -> crate::input::non_streaming_blob_operation_input::Builder {
|
237 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
165 238 | crate::input::non_streaming_blob_operation_input::Builder::default()
|
239 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
166 240 | }
|
241 + | /* ServerCodegenVisitor.kt:370 */
|
167 242 | }
|
168 243 |
|
244 + | /* RustType.kt:516 */
|
169 245 | #[::pyo3::pyclass]
|
246 + | /* PythonServerStructureGenerator.kt:63 */
|
170 247 | /// :param map_of_enum_string typing.Optional\[typing.Dict\[constraints_without_public_constrained_types.model.EnumString, constraints_without_public_constrained_types.model.EnumString\]\]:
|
171 248 | /// :rtype None:
|
249 + | /* StructureGenerator.kt:197 */
|
172 250 | #[allow(missing_docs)] // documentation missing in model
|
251 + | /* RustType.kt:516 */
|
173 252 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
174 - | pub struct QueryParamsTargetingMapOfEnumStringOperationInput {
|
253 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfEnumStringOperationInput {
|
254 + | /* RustType.kt:516 */
|
175 255 | #[pyo3(get, set)]
|
256 + | /* PythonServerStructureGenerator.kt:80 */
|
176 257 | /// :type typing.Optional\[typing.Dict\[constraints_without_public_constrained_types.model.EnumString, constraints_without_public_constrained_types.model.EnumString\]\]:
|
258 + | /* StructureGenerator.kt:231 */
|
177 259 | #[allow(missing_docs)] // documentation missing in model
|
178 260 | pub map_of_enum_string: ::std::option::Option<
|
179 261 | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
180 262 | >,
|
263 + | /* StructureGenerator.kt:201 */
|
181 264 | }
|
265 + | /* StructureGenerator.kt:135 */
|
182 266 | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
267 + | /* StructureGenerator.kt:231 */
|
183 268 | #[allow(missing_docs)] // documentation missing in model
|
269 + | /* StructureGenerator.kt:166 */
|
184 270 | pub fn map_of_enum_string(
|
185 271 | &self,
|
186 272 | ) -> ::std::option::Option<
|
187 273 | &::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
188 274 | > {
|
275 + | /* StructureGenerator.kt:170 */
|
189 276 | self.map_of_enum_string.as_ref()
|
277 + | /* StructureGenerator.kt:166 */
|
190 278 | }
|
279 + | /* StructureGenerator.kt:135 */
|
191 280 | }
|
281 + | /* RustType.kt:516 */
|
192 282 | #[allow(clippy::new_without_default)]
|
283 + | /* RustType.kt:516 */
|
193 284 | #[allow(clippy::too_many_arguments)]
|
285 + | /* RustType.kt:516 */
|
194 286 | #[::pyo3::pymethods]
|
287 + | /* PythonServerStructureGenerator.kt:88 */
|
195 288 | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
196 289 | #[new]
|
197 290 | pub fn new(
|
198 291 | map_of_enum_string: ::std::option::Option<
|
199 292 | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
200 293 | >,
|
201 294 | ) -> Self {
|
202 295 | Self { map_of_enum_string }
|
203 296 | }
|
204 297 | fn __repr__(&self) -> String {
|
205 298 | format!("{self:?}")
|
206 299 | }
|
207 300 | fn __str__(&self) -> String {
|
208 301 | format!("{self:?}")
|
209 302 | }
|
210 303 | }
|
304 + | /* PythonServerStructureGenerator.kt:111 */
|
211 305 | impl<'source> ::pyo3::FromPyObject<'source>
|
212 306 | for std::boxed::Box<QueryParamsTargetingMapOfEnumStringOperationInput>
|
213 307 | {
|
214 308 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
215 309 | ob.extract::<QueryParamsTargetingMapOfEnumStringOperationInput>()
|
216 310 | .map(Box::new)
|
217 311 | }
|
218 312 | }
|
219 313 |
|
220 314 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
221 315 | for std::boxed::Box<QueryParamsTargetingMapOfEnumStringOperationInput>
|
222 316 | {
|
223 317 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
224 318 | (*self).into_py(py)
|
225 319 | }
|
226 320 | }
|
321 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
227 322 | impl crate::constrained::Constrained
|
228 323 | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
229 324 | {
|
230 325 | type Unconstrained =
|
231 326 | crate::input::query_params_targeting_map_of_enum_string_operation_input_internal::Builder;
|
232 327 | }
|
328 + | /* ServerCodegenVisitor.kt:370 */
|
233 329 | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
234 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
330 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
331 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
235 332 | pub fn builder(
|
236 333 | ) -> crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder {
|
334 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
237 335 | crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder::default()
|
336 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
238 337 | }
|
338 + | /* ServerCodegenVisitor.kt:370 */
|
239 339 | }
|
240 340 |
|
341 + | /* RustType.kt:516 */
|
241 342 | #[::pyo3::pyclass]
|
343 + | /* PythonServerStructureGenerator.kt:63 */
|
242 344 | /// :param length_map typing.Optional\[typing.Dict\[str, str\]\]:
|
243 345 | /// :rtype None:
|
346 + | /* StructureGenerator.kt:197 */
|
244 347 | #[allow(missing_docs)] // documentation missing in model
|
348 + | /* RustType.kt:516 */
|
245 349 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
246 - | pub struct HttpPrefixHeadersTargetingLengthMapOperationInput {
|
350 + | pub /* StructureGenerator.kt:201 */ struct HttpPrefixHeadersTargetingLengthMapOperationInput {
|
351 + | /* RustType.kt:516 */
|
247 352 | #[pyo3(get, set)]
|
353 + | /* PythonServerStructureGenerator.kt:80 */
|
248 354 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
355 + | /* StructureGenerator.kt:231 */
|
249 356 | #[allow(missing_docs)] // documentation missing in model
|
250 357 | pub length_map: ::std::option::Option<
|
251 358 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
252 359 | >,
|
360 + | /* StructureGenerator.kt:201 */
|
253 361 | }
|
362 + | /* StructureGenerator.kt:135 */
|
254 363 | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
364 + | /* StructureGenerator.kt:231 */
|
255 365 | #[allow(missing_docs)] // documentation missing in model
|
366 + | /* StructureGenerator.kt:166 */
|
256 367 | pub fn length_map(
|
257 368 | &self,
|
258 369 | ) -> ::std::option::Option<
|
259 370 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
260 371 | > {
|
372 + | /* StructureGenerator.kt:170 */
|
261 373 | self.length_map.as_ref()
|
374 + | /* StructureGenerator.kt:166 */
|
262 375 | }
|
376 + | /* StructureGenerator.kt:135 */
|
263 377 | }
|
378 + | /* RustType.kt:516 */
|
264 379 | #[allow(clippy::new_without_default)]
|
380 + | /* RustType.kt:516 */
|
265 381 | #[allow(clippy::too_many_arguments)]
|
382 + | /* RustType.kt:516 */
|
266 383 | #[::pyo3::pymethods]
|
384 + | /* PythonServerStructureGenerator.kt:88 */
|
267 385 | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
268 386 | #[new]
|
269 387 | pub fn new(
|
270 388 | length_map: ::std::option::Option<
|
271 389 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
272 390 | >,
|
273 391 | ) -> Self {
|
274 392 | Self { length_map }
|
275 393 | }
|
276 394 | fn __repr__(&self) -> String {
|
277 395 | format!("{self:?}")
|
278 396 | }
|
279 397 | fn __str__(&self) -> String {
|
280 398 | format!("{self:?}")
|
281 399 | }
|
282 400 | }
|
401 + | /* PythonServerStructureGenerator.kt:111 */
|
283 402 | impl<'source> ::pyo3::FromPyObject<'source>
|
284 403 | for std::boxed::Box<HttpPrefixHeadersTargetingLengthMapOperationInput>
|
285 404 | {
|
286 405 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
287 406 | ob.extract::<HttpPrefixHeadersTargetingLengthMapOperationInput>()
|
288 407 | .map(Box::new)
|
289 408 | }
|
290 409 | }
|
291 410 |
|
292 411 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
293 412 | for std::boxed::Box<HttpPrefixHeadersTargetingLengthMapOperationInput>
|
294 413 | {
|
295 414 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
296 415 | (*self).into_py(py)
|
297 416 | }
|
298 417 | }
|
418 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
299 419 | impl crate::constrained::Constrained
|
300 420 | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
301 421 | {
|
302 422 | type Unconstrained =
|
303 423 | crate::input::http_prefix_headers_targeting_length_map_operation_input_internal::Builder;
|
304 424 | }
|
425 + | /* ServerCodegenVisitor.kt:370 */
|
305 426 | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
306 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
427 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
428 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
307 429 | pub fn builder(
|
308 430 | ) -> crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder {
|
431 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
309 432 | crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder::default()
|
433 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
310 434 | }
|
435 + | /* ServerCodegenVisitor.kt:370 */
|
311 436 | }
|
312 437 |
|
438 + | /* RustType.kt:516 */
|
313 439 | #[::pyo3::pyclass]
|
440 + | /* PythonServerStructureGenerator.kt:63 */
|
314 441 | /// :param map_of_length_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
315 442 | /// :rtype None:
|
443 + | /* StructureGenerator.kt:197 */
|
316 444 | #[allow(missing_docs)] // documentation missing in model
|
445 + | /* RustType.kt:516 */
|
317 446 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
318 - | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
447 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
448 + | {
|
449 + | /* RustType.kt:516 */
|
319 450 | #[pyo3(get, set)]
|
451 + | /* PythonServerStructureGenerator.kt:80 */
|
320 452 | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
453 + | /* StructureGenerator.kt:231 */
|
321 454 | #[allow(missing_docs)] // documentation missing in model
|
322 455 | pub map_of_length_pattern_string: ::std::option::Option<
|
323 456 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
324 457 | >,
|
458 + | /* StructureGenerator.kt:201 */
|
325 459 | }
|
460 + | /* StructureGenerator.kt:135 */
|
326 461 | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
462 + | /* StructureGenerator.kt:231 */
|
327 463 | #[allow(missing_docs)] // documentation missing in model
|
464 + | /* StructureGenerator.kt:166 */
|
328 465 | pub fn map_of_length_pattern_string(
|
329 466 | &self,
|
330 467 | ) -> ::std::option::Option<
|
331 468 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
332 469 | > {
|
470 + | /* StructureGenerator.kt:170 */
|
333 471 | self.map_of_length_pattern_string.as_ref()
|
472 + | /* StructureGenerator.kt:166 */
|
334 473 | }
|
474 + | /* StructureGenerator.kt:135 */
|
335 475 | }
|
476 + | /* RustType.kt:516 */
|
336 477 | #[allow(clippy::new_without_default)]
|
478 + | /* RustType.kt:516 */
|
337 479 | #[allow(clippy::too_many_arguments)]
|
480 + | /* RustType.kt:516 */
|
338 481 | #[::pyo3::pymethods]
|
482 + | /* PythonServerStructureGenerator.kt:88 */
|
339 483 | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
340 484 | #[new]
|
341 485 | pub fn new(
|
342 486 | map_of_length_pattern_string: ::std::option::Option<
|
343 487 | ::std::collections::HashMap<
|
344 488 | ::std::string::String,
|
345 489 | ::std::vec::Vec<::std::string::String>,
|
346 490 | >,
|
347 491 | >,
|
348 492 | ) -> Self {
|
349 493 | Self {
|
350 494 | map_of_length_pattern_string,
|
351 495 | }
|
352 496 | }
|
353 497 | fn __repr__(&self) -> String {
|
354 498 | format!("{self:?}")
|
355 499 | }
|
356 500 | fn __str__(&self) -> String {
|
357 501 | format!("{self:?}")
|
358 502 | }
|
359 503 | }
|
504 + | /* PythonServerStructureGenerator.kt:111 */
|
360 505 | impl<'source> ::pyo3::FromPyObject<'source>
|
361 506 | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>
|
362 507 | {
|
363 508 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
364 509 | ob.extract::<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>()
|
365 510 | .map(Box::new)
|
366 511 | }
|
367 512 | }
|
368 513 |
|
369 514 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
370 515 | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>
|
371 516 | {
|
372 517 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
373 518 | (*self).into_py(py)
|
374 519 | }
|
375 520 | }
|
521 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
376 522 | impl crate::constrained::Constrained
|
377 523 | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
378 524 | {
|
379 525 | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal::Builder;
|
380 526 | }
|
527 + | /* ServerCodegenVisitor.kt:370 */
|
381 528 | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
382 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
529 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
530 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
383 531 | pub fn builder() -> crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder{
|
532 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
384 533 | crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder::default()
|
534 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
385 535 | }
|
536 + | /* ServerCodegenVisitor.kt:370 */
|
386 537 | }
|
387 538 |
|
539 + | /* RustType.kt:516 */
|
388 540 | #[::pyo3::pyclass]
|
541 + | /* PythonServerStructureGenerator.kt:63 */
|
389 542 | /// :param map_of_length_pattern_string typing.Optional\[typing.Dict\[str, str\]\]:
|
390 543 | /// :rtype None:
|
544 + | /* StructureGenerator.kt:197 */
|
391 545 | #[allow(missing_docs)] // documentation missing in model
|
546 + | /* RustType.kt:516 */
|
392 547 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
393 - | pub struct QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
548 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
549 + | {
|
550 + | /* RustType.kt:516 */
|
394 551 | #[pyo3(get, set)]
|
552 + | /* PythonServerStructureGenerator.kt:80 */
|
395 553 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
554 + | /* StructureGenerator.kt:231 */
|
396 555 | #[allow(missing_docs)] // documentation missing in model
|
397 556 | pub map_of_length_pattern_string: ::std::option::Option<
|
398 557 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
399 558 | >,
|
559 + | /* StructureGenerator.kt:201 */
|
400 560 | }
|
561 + | /* StructureGenerator.kt:135 */
|
401 562 | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
563 + | /* StructureGenerator.kt:231 */
|
402 564 | #[allow(missing_docs)] // documentation missing in model
|
565 + | /* StructureGenerator.kt:166 */
|
403 566 | pub fn map_of_length_pattern_string(
|
404 567 | &self,
|
405 568 | ) -> ::std::option::Option<
|
406 569 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
407 570 | > {
|
571 + | /* StructureGenerator.kt:170 */
|
408 572 | self.map_of_length_pattern_string.as_ref()
|
573 + | /* StructureGenerator.kt:166 */
|
409 574 | }
|
575 + | /* StructureGenerator.kt:135 */
|
410 576 | }
|
577 + | /* RustType.kt:516 */
|
411 578 | #[allow(clippy::new_without_default)]
|
579 + | /* RustType.kt:516 */
|
412 580 | #[allow(clippy::too_many_arguments)]
|
581 + | /* RustType.kt:516 */
|
413 582 | #[::pyo3::pymethods]
|
583 + | /* PythonServerStructureGenerator.kt:88 */
|
414 584 | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
415 585 | #[new]
|
416 586 | pub fn new(
|
417 587 | map_of_length_pattern_string: ::std::option::Option<
|
418 588 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
419 589 | >,
|
420 590 | ) -> Self {
|
421 591 | Self {
|
422 592 | map_of_length_pattern_string,
|
423 593 | }
|
424 594 | }
|
425 595 | fn __repr__(&self) -> String {
|
426 596 | format!("{self:?}")
|
427 597 | }
|
428 598 | fn __str__(&self) -> String {
|
429 599 | format!("{self:?}")
|
430 600 | }
|
431 601 | }
|
602 + | /* PythonServerStructureGenerator.kt:111 */
|
432 603 | impl<'source> ::pyo3::FromPyObject<'source>
|
433 604 | for std::boxed::Box<QueryParamsTargetingMapOfLengthPatternStringOperationInput>
|
434 605 | {
|
435 606 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
436 607 | ob.extract::<QueryParamsTargetingMapOfLengthPatternStringOperationInput>()
|
437 608 | .map(Box::new)
|
438 609 | }
|
439 610 | }
|
440 611 |
|
441 612 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
442 613 | for std::boxed::Box<QueryParamsTargetingMapOfLengthPatternStringOperationInput>
|
443 614 | {
|
444 615 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
445 616 | (*self).into_py(py)
|
446 617 | }
|
447 618 | }
|
619 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
448 620 | impl crate::constrained::Constrained
|
449 621 | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
450 622 | {
|
451 623 | type Unconstrained = crate::input::query_params_targeting_map_of_length_pattern_string_operation_input_internal::Builder;
|
452 624 | }
|
625 + | /* ServerCodegenVisitor.kt:370 */
|
453 626 | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
454 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
627 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
628 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
455 629 | pub fn builder(
|
456 630 | ) -> crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder
|
457 631 | {
|
632 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
458 633 | crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder::default()
|
634 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
459 635 | }
|
636 + | /* ServerCodegenVisitor.kt:370 */
|
460 637 | }
|
461 638 |
|
639 + | /* RustType.kt:516 */
|
462 640 | #[::pyo3::pyclass]
|
641 + | /* PythonServerStructureGenerator.kt:63 */
|
463 642 | /// :param map_of_list_of_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
464 643 | /// :rtype None:
|
644 + | /* StructureGenerator.kt:197 */
|
465 645 | #[allow(missing_docs)] // documentation missing in model
|
646 + | /* RustType.kt:516 */
|
466 647 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
467 - | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
648 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
649 + | {
|
650 + | /* RustType.kt:516 */
|
468 651 | #[pyo3(get, set)]
|
652 + | /* PythonServerStructureGenerator.kt:80 */
|
469 653 | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
654 + | /* StructureGenerator.kt:231 */
|
470 655 | #[allow(missing_docs)] // documentation missing in model
|
471 656 | pub map_of_list_of_pattern_string: ::std::option::Option<
|
472 657 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
473 658 | >,
|
659 + | /* StructureGenerator.kt:201 */
|
474 660 | }
|
661 + | /* StructureGenerator.kt:135 */
|
475 662 | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
663 + | /* StructureGenerator.kt:231 */
|
476 664 | #[allow(missing_docs)] // documentation missing in model
|
665 + | /* StructureGenerator.kt:166 */
|
477 666 | pub fn map_of_list_of_pattern_string(
|
478 667 | &self,
|
479 668 | ) -> ::std::option::Option<
|
480 669 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
481 670 | > {
|
671 + | /* StructureGenerator.kt:170 */
|
482 672 | self.map_of_list_of_pattern_string.as_ref()
|
673 + | /* StructureGenerator.kt:166 */
|
483 674 | }
|
675 + | /* StructureGenerator.kt:135 */
|
484 676 | }
|
677 + | /* RustType.kt:516 */
|
485 678 | #[allow(clippy::new_without_default)]
|
679 + | /* RustType.kt:516 */
|
486 680 | #[allow(clippy::too_many_arguments)]
|
681 + | /* RustType.kt:516 */
|
487 682 | #[::pyo3::pymethods]
|
683 + | /* PythonServerStructureGenerator.kt:88 */
|
488 684 | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
489 685 | #[new]
|
490 686 | pub fn new(
|
491 687 | map_of_list_of_pattern_string: ::std::option::Option<
|
492 688 | ::std::collections::HashMap<
|
493 689 | ::std::string::String,
|
494 690 | ::std::vec::Vec<::std::string::String>,
|
495 691 | >,
|
496 692 | >,
|
497 693 | ) -> Self {
|
498 694 | Self {
|
499 695 | map_of_list_of_pattern_string,
|
500 696 | }
|
501 697 | }
|
502 698 | fn __repr__(&self) -> String {
|
503 699 | format!("{self:?}")
|
504 700 | }
|
505 701 | fn __str__(&self) -> String {
|
506 702 | format!("{self:?}")
|
507 703 | }
|
508 704 | }
|
705 + | /* PythonServerStructureGenerator.kt:111 */
|
509 706 | impl<'source> ::pyo3::FromPyObject<'source>
|
510 707 | for std::boxed::Box<QueryParamsTargetingMapOfListOfPatternStringOperationInput>
|
511 708 | {
|
512 709 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
513 710 | ob.extract::<QueryParamsTargetingMapOfListOfPatternStringOperationInput>()
|
514 711 | .map(Box::new)
|
515 712 | }
|
516 713 | }
|
517 714 |
|
518 715 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
519 716 | for std::boxed::Box<QueryParamsTargetingMapOfListOfPatternStringOperationInput>
|
520 717 | {
|
521 718 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
522 719 | (*self).into_py(py)
|
523 720 | }
|
524 721 | }
|
722 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
525 723 | impl crate::constrained::Constrained
|
526 724 | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
527 725 | {
|
528 726 | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input_internal::Builder;
|
529 727 | }
|
728 + | /* ServerCodegenVisitor.kt:370 */
|
530 729 | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
531 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
730 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
731 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
532 732 | pub fn builder(
|
533 733 | ) -> crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder
|
534 734 | {
|
735 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
535 736 | crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder::default()
|
737 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
536 738 | }
|
739 + | /* ServerCodegenVisitor.kt:370 */
|
537 740 | }
|
538 741 |
|
742 + | /* RustType.kt:516 */
|
539 743 | #[::pyo3::pyclass]
|
744 + | /* PythonServerStructureGenerator.kt:63 */
|
540 745 | /// :param map_of_pattern_string typing.Optional\[typing.Dict\[str, str\]\]:
|
541 746 | /// :rtype None:
|
747 + | /* StructureGenerator.kt:197 */
|
542 748 | #[allow(missing_docs)] // documentation missing in model
|
749 + | /* RustType.kt:516 */
|
543 750 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
544 - | pub struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
751 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
752 + | /* RustType.kt:516 */
|
545 753 | #[pyo3(get, set)]
|
754 + | /* PythonServerStructureGenerator.kt:80 */
|
546 755 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
756 + | /* StructureGenerator.kt:231 */
|
547 757 | #[allow(missing_docs)] // documentation missing in model
|
548 758 | pub map_of_pattern_string: ::std::option::Option<
|
549 759 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
550 760 | >,
|
761 + | /* StructureGenerator.kt:201 */
|
551 762 | }
|
763 + | /* StructureGenerator.kt:135 */
|
552 764 | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
765 + | /* StructureGenerator.kt:231 */
|
553 766 | #[allow(missing_docs)] // documentation missing in model
|
767 + | /* StructureGenerator.kt:166 */
|
554 768 | pub fn map_of_pattern_string(
|
555 769 | &self,
|
556 770 | ) -> ::std::option::Option<
|
557 771 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
558 772 | > {
|
773 + | /* StructureGenerator.kt:170 */
|
559 774 | self.map_of_pattern_string.as_ref()
|
775 + | /* StructureGenerator.kt:166 */
|
560 776 | }
|
777 + | /* StructureGenerator.kt:135 */
|
561 778 | }
|
779 + | /* RustType.kt:516 */
|
562 780 | #[allow(clippy::new_without_default)]
|
781 + | /* RustType.kt:516 */
|
563 782 | #[allow(clippy::too_many_arguments)]
|
783 + | /* RustType.kt:516 */
|
564 784 | #[::pyo3::pymethods]
|
785 + | /* PythonServerStructureGenerator.kt:88 */
|
565 786 | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
566 787 | #[new]
|
567 788 | pub fn new(
|
568 789 | map_of_pattern_string: ::std::option::Option<
|
569 790 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
570 791 | >,
|
571 792 | ) -> Self {
|
572 793 | Self {
|
573 794 | map_of_pattern_string,
|
574 795 | }
|
575 796 | }
|
576 797 | fn __repr__(&self) -> String {
|
577 798 | format!("{self:?}")
|
578 799 | }
|
579 800 | fn __str__(&self) -> String {
|
580 801 | format!("{self:?}")
|
581 802 | }
|
582 803 | }
|
804 + | /* PythonServerStructureGenerator.kt:111 */
|
583 805 | impl<'source> ::pyo3::FromPyObject<'source>
|
584 806 | for std::boxed::Box<QueryParamsTargetingMapOfPatternStringOperationInput>
|
585 807 | {
|
586 808 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
587 809 | ob.extract::<QueryParamsTargetingMapOfPatternStringOperationInput>()
|
588 810 | .map(Box::new)
|
589 811 | }
|
590 812 | }
|
591 813 |
|
592 814 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
593 815 | for std::boxed::Box<QueryParamsTargetingMapOfPatternStringOperationInput>
|
594 816 | {
|
595 817 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
596 818 | (*self).into_py(py)
|
597 819 | }
|
598 820 | }
|
821 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
599 822 | impl crate::constrained::Constrained
|
600 823 | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
601 824 | {
|
602 825 | type Unconstrained = crate::input::query_params_targeting_map_of_pattern_string_operation_input_internal::Builder;
|
603 826 | }
|
827 + | /* ServerCodegenVisitor.kt:370 */
|
604 828 | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
605 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
829 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
830 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
606 831 | pub fn builder(
|
607 832 | ) -> crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder {
|
833 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
608 834 | crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder::default(
|
609 835 | )
|
836 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
610 837 | }
|
838 + | /* ServerCodegenVisitor.kt:370 */
|
611 839 | }
|
612 840 |
|
841 + | /* RustType.kt:516 */
|
613 842 | #[::pyo3::pyclass]
|
843 + | /* PythonServerStructureGenerator.kt:63 */
|
614 844 | /// :param map_of_list_of_enum_string typing.Optional\[typing.Dict\[constraints_without_public_constrained_types.model.EnumString, typing.List\[constraints_without_public_constrained_types.model.EnumString\]\]\]:
|
615 845 | /// :rtype None:
|
846 + | /* StructureGenerator.kt:197 */
|
616 847 | #[allow(missing_docs)] // documentation missing in model
|
848 + | /* RustType.kt:516 */
|
617 849 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
618 - | pub struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
850 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
851 + | /* RustType.kt:516 */
|
619 852 | #[pyo3(get, set)]
|
853 + | /* PythonServerStructureGenerator.kt:80 */
|
620 854 | /// :type typing.Optional\[typing.Dict\[constraints_without_public_constrained_types.model.EnumString, typing.List\[constraints_without_public_constrained_types.model.EnumString\]\]\]:
|
855 + | /* StructureGenerator.kt:231 */
|
621 856 | #[allow(missing_docs)] // documentation missing in model
|
622 857 | pub map_of_list_of_enum_string: ::std::option::Option<
|
623 858 | ::std::collections::HashMap<
|
624 859 | crate::model::EnumString,
|
625 860 | ::std::vec::Vec<crate::model::EnumString>,
|
626 861 | >,
|
627 862 | >,
|
863 + | /* StructureGenerator.kt:201 */
|
628 864 | }
|
865 + | /* StructureGenerator.kt:135 */
|
629 866 | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
867 + | /* StructureGenerator.kt:231 */
|
630 868 | #[allow(missing_docs)] // documentation missing in model
|
869 + | /* StructureGenerator.kt:166 */
|
631 870 | pub fn map_of_list_of_enum_string(
|
632 871 | &self,
|
633 872 | ) -> ::std::option::Option<
|
634 873 | &::std::collections::HashMap<
|
635 874 | crate::model::EnumString,
|
636 875 | ::std::vec::Vec<crate::model::EnumString>,
|
637 876 | >,
|
638 877 | > {
|
878 + | /* StructureGenerator.kt:170 */
|
639 879 | self.map_of_list_of_enum_string.as_ref()
|
880 + | /* StructureGenerator.kt:166 */
|
640 881 | }
|
882 + | /* StructureGenerator.kt:135 */
|
641 883 | }
|
884 + | /* RustType.kt:516 */
|
642 885 | #[allow(clippy::new_without_default)]
|
886 + | /* RustType.kt:516 */
|
643 887 | #[allow(clippy::too_many_arguments)]
|
888 + | /* RustType.kt:516 */
|
644 889 | #[::pyo3::pymethods]
|
890 + | /* PythonServerStructureGenerator.kt:88 */
|
645 891 | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
646 892 | #[new]
|
647 893 | pub fn new(
|
648 894 | map_of_list_of_enum_string: ::std::option::Option<
|
649 895 | ::std::collections::HashMap<
|
650 896 | crate::model::EnumString,
|
651 897 | ::std::vec::Vec<crate::model::EnumString>,
|
652 898 | >,
|
653 899 | >,
|
654 900 | ) -> Self {
|
655 901 | Self {
|
656 902 | map_of_list_of_enum_string,
|
657 903 | }
|
658 904 | }
|
659 905 | fn __repr__(&self) -> String {
|
660 906 | format!("{self:?}")
|
661 907 | }
|
662 908 | fn __str__(&self) -> String {
|
663 909 | format!("{self:?}")
|
664 910 | }
|
665 911 | }
|
912 + | /* PythonServerStructureGenerator.kt:111 */
|
666 913 | impl<'source> ::pyo3::FromPyObject<'source>
|
667 914 | for std::boxed::Box<QueryParamsTargetingMapOfListOfEnumStringOperationInput>
|
668 915 | {
|
669 916 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
670 917 | ob.extract::<QueryParamsTargetingMapOfListOfEnumStringOperationInput>()
|
671 918 | .map(Box::new)
|
672 919 | }
|
673 920 | }
|
674 921 |
|
675 922 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
676 923 | for std::boxed::Box<QueryParamsTargetingMapOfListOfEnumStringOperationInput>
|
677 924 | {
|
678 925 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
679 926 | (*self).into_py(py)
|
680 927 | }
|
681 928 | }
|
929 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
682 930 | impl crate::constrained::Constrained
|
683 931 | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
684 932 | {
|
685 933 | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input_internal::Builder;
|
686 934 | }
|
935 + | /* ServerCodegenVisitor.kt:370 */
|
687 936 | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
688 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
937 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
938 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
689 939 | pub fn builder(
|
690 940 | ) -> crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder
|
691 941 | {
|
942 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
692 943 | crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder::default()
|
944 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
693 945 | }
|
946 + | /* ServerCodegenVisitor.kt:370 */
|
694 947 | }
|
695 948 |
|
949 + | /* RustType.kt:516 */
|
696 950 | #[::pyo3::pyclass]
|
951 + | /* PythonServerStructureGenerator.kt:63 */
|
697 952 | /// :param map_of_length_list_of_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
698 953 | /// :rtype None:
|
954 + | /* StructureGenerator.kt:197 */
|
699 955 | #[allow(missing_docs)] // documentation missing in model
|
956 + | /* RustType.kt:516 */
|
700 957 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
701 - | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
958 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
959 + | {
|
960 + | /* RustType.kt:516 */
|
702 961 | #[pyo3(get, set)]
|
962 + | /* PythonServerStructureGenerator.kt:80 */
|
703 963 | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
964 + | /* StructureGenerator.kt:231 */
|
704 965 | #[allow(missing_docs)] // documentation missing in model
|
705 966 | pub map_of_length_list_of_pattern_string: ::std::option::Option<
|
706 967 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
707 968 | >,
|
969 + | /* StructureGenerator.kt:201 */
|
708 970 | }
|
971 + | /* StructureGenerator.kt:135 */
|
709 972 | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
973 + | /* StructureGenerator.kt:231 */
|
710 974 | #[allow(missing_docs)] // documentation missing in model
|
975 + | /* StructureGenerator.kt:166 */
|
711 976 | pub fn map_of_length_list_of_pattern_string(
|
712 977 | &self,
|
713 978 | ) -> ::std::option::Option<
|
714 979 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
715 980 | > {
|
981 + | /* StructureGenerator.kt:170 */
|
716 982 | self.map_of_length_list_of_pattern_string.as_ref()
|
983 + | /* StructureGenerator.kt:166 */
|
717 984 | }
|
985 + | /* StructureGenerator.kt:135 */
|
718 986 | }
|
987 + | /* RustType.kt:516 */
|
719 988 | #[allow(clippy::new_without_default)]
|
989 + | /* RustType.kt:516 */
|
720 990 | #[allow(clippy::too_many_arguments)]
|
991 + | /* RustType.kt:516 */
|
721 992 | #[::pyo3::pymethods]
|
993 + | /* PythonServerStructureGenerator.kt:88 */
|
722 994 | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
723 995 | #[new]
|
724 996 | pub fn new(
|
725 997 | map_of_length_list_of_pattern_string: ::std::option::Option<
|
726 998 | ::std::collections::HashMap<
|
727 999 | ::std::string::String,
|
728 1000 | ::std::vec::Vec<::std::string::String>,
|
729 1001 | >,
|
730 1002 | >,
|
731 1003 | ) -> Self {
|
732 1004 | Self {
|
733 1005 | map_of_length_list_of_pattern_string,
|
734 1006 | }
|
735 1007 | }
|
736 1008 | fn __repr__(&self) -> String {
|
737 1009 | format!("{self:?}")
|
738 1010 | }
|
739 1011 | fn __str__(&self) -> String {
|
740 1012 | format!("{self:?}")
|
741 1013 | }
|
742 1014 | }
|
1015 + | /* PythonServerStructureGenerator.kt:111 */
|
743 1016 | impl<'source> ::pyo3::FromPyObject<'source>
|
744 1017 | for std::boxed::Box<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>
|
745 1018 | {
|
746 1019 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
747 1020 | ob.extract::<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>()
|
748 1021 | .map(Box::new)
|
749 1022 | }
|
750 1023 | }
|
751 1024 |
|
752 1025 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
753 1026 | for std::boxed::Box<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>
|
754 1027 | {
|
755 1028 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
756 1029 | (*self).into_py(py)
|
757 1030 | }
|
758 1031 | }
|
1032 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
759 1033 | impl crate::constrained::Constrained
|
760 1034 | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
761 1035 | {
|
762 1036 | type Unconstrained = crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal::Builder;
|
763 1037 | }
|
1038 + | /* ServerCodegenVisitor.kt:370 */
|
764 1039 | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
765 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
1040 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
1041 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
766 1042 | pub fn builder() -> crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder{
|
1043 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
767 1044 | crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder::default()
|
1045 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
768 1046 | }
|
1047 + | /* ServerCodegenVisitor.kt:370 */
|
769 1048 | }
|
770 1049 |
|
1050 + | /* RustType.kt:516 */
|
771 1051 | #[::pyo3::pyclass]
|
1052 + | /* PythonServerStructureGenerator.kt:63 */
|
772 1053 | /// :param map_of_set_of_length_string typing.Optional\[typing.Dict\[str, typing.Set\[str\]\]\]:
|
773 1054 | /// :rtype None:
|
1055 + | /* StructureGenerator.kt:197 */
|
774 1056 | #[allow(missing_docs)] // documentation missing in model
|
1057 + | /* RustType.kt:516 */
|
775 1058 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
776 - | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
1059 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
1060 + | {
|
1061 + | /* RustType.kt:516 */
|
777 1062 | #[pyo3(get, set)]
|
1063 + | /* PythonServerStructureGenerator.kt:80 */
|
778 1064 | /// :type typing.Optional\[typing.Dict\[str, typing.Set\[str\]\]\]:
|
1065 + | /* StructureGenerator.kt:231 */
|
779 1066 | #[allow(missing_docs)] // documentation missing in model
|
780 1067 | pub map_of_set_of_length_string: ::std::option::Option<
|
781 1068 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
782 1069 | >,
|
1070 + | /* StructureGenerator.kt:201 */
|
783 1071 | }
|
1072 + | /* StructureGenerator.kt:135 */
|
784 1073 | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
1074 + | /* StructureGenerator.kt:231 */
|
785 1075 | #[allow(missing_docs)] // documentation missing in model
|
1076 + | /* StructureGenerator.kt:166 */
|
786 1077 | pub fn map_of_set_of_length_string(
|
787 1078 | &self,
|
788 1079 | ) -> ::std::option::Option<
|
789 1080 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
790 1081 | > {
|
1082 + | /* StructureGenerator.kt:170 */
|
791 1083 | self.map_of_set_of_length_string.as_ref()
|
1084 + | /* StructureGenerator.kt:166 */
|
792 1085 | }
|
1086 + | /* StructureGenerator.kt:135 */
|
793 1087 | }
|
1088 + | /* RustType.kt:516 */
|
794 1089 | #[allow(clippy::new_without_default)]
|
1090 + | /* RustType.kt:516 */
|
795 1091 | #[allow(clippy::too_many_arguments)]
|
1092 + | /* RustType.kt:516 */
|
796 1093 | #[::pyo3::pymethods]
|
1094 + | /* PythonServerStructureGenerator.kt:88 */
|
797 1095 | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
798 1096 | #[new]
|
799 1097 | pub fn new(
|
800 1098 | map_of_set_of_length_string: ::std::option::Option<
|
801 1099 | ::std::collections::HashMap<
|
802 1100 | ::std::string::String,
|
803 1101 | ::std::vec::Vec<::std::string::String>,
|
804 1102 | >,
|
805 1103 | >,
|
806 1104 | ) -> Self {
|
807 1105 | Self {
|
808 1106 | map_of_set_of_length_string,
|
809 1107 | }
|
810 1108 | }
|
811 1109 | fn __repr__(&self) -> String {
|
812 1110 | format!("{self:?}")
|
813 1111 | }
|
814 1112 | fn __str__(&self) -> String {
|
815 1113 | format!("{self:?}")
|
816 1114 | }
|
817 1115 | }
|
1116 + | /* PythonServerStructureGenerator.kt:111 */
|
818 1117 | impl<'source> ::pyo3::FromPyObject<'source>
|
819 1118 | for std::boxed::Box<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>
|
820 1119 | {
|
821 1120 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
822 1121 | ob.extract::<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>()
|
823 1122 | .map(Box::new)
|
824 1123 | }
|
825 1124 | }
|
826 1125 |
|
827 1126 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
828 1127 | for std::boxed::Box<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>
|
829 1128 | {
|
830 1129 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
831 1130 | (*self).into_py(py)
|
832 1131 | }
|
833 1132 | }
|
1133 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
834 1134 | impl crate::constrained::Constrained
|
835 1135 | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
836 1136 | {
|
837 1137 | type Unconstrained = crate::input::query_params_targeting_map_of_set_of_length_string_operation_input_internal::Builder;
|
838 1138 | }
|
1139 + | /* ServerCodegenVisitor.kt:370 */
|
839 1140 | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
840 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
1141 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
1142 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
841 1143 | pub fn builder(
|
842 1144 | ) -> crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder
|
843 1145 | {
|
1146 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
844 1147 | crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder::default()
|
1148 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
845 1149 | }
|
1150 + | /* ServerCodegenVisitor.kt:370 */
|
846 1151 | }
|
847 1152 |
|
1153 + | /* RustType.kt:516 */
|
848 1154 | #[::pyo3::pyclass]
|
1155 + | /* PythonServerStructureGenerator.kt:63 */
|
849 1156 | /// :param map_of_list_of_length_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
850 1157 | /// :rtype None:
|
1158 + | /* StructureGenerator.kt:197 */
|
851 1159 | #[allow(missing_docs)] // documentation missing in model
|
1160 + | /* RustType.kt:516 */
|
852 1161 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
853 - | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
1162 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
1163 + | {
|
1164 + | /* RustType.kt:516 */
|
854 1165 | #[pyo3(get, set)]
|
1166 + | /* PythonServerStructureGenerator.kt:80 */
|
855 1167 | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1168 + | /* StructureGenerator.kt:231 */
|
856 1169 | #[allow(missing_docs)] // documentation missing in model
|
857 1170 | pub map_of_list_of_length_string: ::std::option::Option<
|
858 1171 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
859 1172 | >,
|
1173 + | /* StructureGenerator.kt:201 */
|
860 1174 | }
|
1175 + | /* StructureGenerator.kt:135 */
|
861 1176 | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
1177 + | /* StructureGenerator.kt:231 */
|
862 1178 | #[allow(missing_docs)] // documentation missing in model
|
1179 + | /* StructureGenerator.kt:166 */
|
863 1180 | pub fn map_of_list_of_length_string(
|
864 1181 | &self,
|
865 1182 | ) -> ::std::option::Option<
|
866 1183 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
867 1184 | > {
|
1185 + | /* StructureGenerator.kt:170 */
|
868 1186 | self.map_of_list_of_length_string.as_ref()
|
1187 + | /* StructureGenerator.kt:166 */
|
869 1188 | }
|
1189 + | /* StructureGenerator.kt:135 */
|
870 1190 | }
|
1191 + | /* RustType.kt:516 */
|
871 1192 | #[allow(clippy::new_without_default)]
|
1193 + | /* RustType.kt:516 */
|
872 1194 | #[allow(clippy::too_many_arguments)]
|
1195 + | /* RustType.kt:516 */
|
873 1196 | #[::pyo3::pymethods]
|
1197 + | /* PythonServerStructureGenerator.kt:88 */
|
874 1198 | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
875 1199 | #[new]
|
876 1200 | pub fn new(
|
877 1201 | map_of_list_of_length_string: ::std::option::Option<
|
878 1202 | ::std::collections::HashMap<
|
879 1203 | ::std::string::String,
|
880 1204 | ::std::vec::Vec<::std::string::String>,
|
881 1205 | >,
|
882 1206 | >,
|
883 1207 | ) -> Self {
|
884 1208 | Self {
|
885 1209 | map_of_list_of_length_string,
|
886 1210 | }
|
887 1211 | }
|
888 1212 | fn __repr__(&self) -> String {
|
889 1213 | format!("{self:?}")
|
890 1214 | }
|
891 1215 | fn __str__(&self) -> String {
|
892 1216 | format!("{self:?}")
|
893 1217 | }
|
894 1218 | }
|
1219 + | /* PythonServerStructureGenerator.kt:111 */
|
895 1220 | impl<'source> ::pyo3::FromPyObject<'source>
|
896 1221 | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthStringOperationInput>
|
897 1222 | {
|
898 1223 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
899 1224 | ob.extract::<QueryParamsTargetingMapOfListOfLengthStringOperationInput>()
|
900 1225 | .map(Box::new)
|
901 1226 | }
|
902 1227 | }
|
903 1228 |
|
904 1229 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
905 1230 | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthStringOperationInput>
|
906 1231 | {
|
907 1232 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
908 1233 | (*self).into_py(py)
|
909 1234 | }
|
910 1235 | }
|
1236 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
911 1237 | impl crate::constrained::Constrained
|
912 1238 | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
913 1239 | {
|
914 1240 | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_string_operation_input_internal::Builder;
|
915 1241 | }
|
1242 + | /* ServerCodegenVisitor.kt:370 */
|
916 1243 | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
917 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
1244 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
1245 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
918 1246 | pub fn builder(
|
919 1247 | ) -> crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder
|
920 1248 | {
|
1249 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
921 1250 | crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder::default()
|
1251 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
922 1252 | }
|
1253 + | /* ServerCodegenVisitor.kt:370 */
|
923 1254 | }
|
924 1255 |
|
1256 + | /* RustType.kt:516 */
|
925 1257 | #[::pyo3::pyclass]
|
1258 + | /* PythonServerStructureGenerator.kt:63 */
|
926 1259 | /// :param map_of_length_string typing.Optional\[typing.Dict\[str, str\]\]:
|
927 1260 | /// :rtype None:
|
1261 + | /* StructureGenerator.kt:197 */
|
928 1262 | #[allow(missing_docs)] // documentation missing in model
|
1263 + | /* RustType.kt:516 */
|
929 1264 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
930 - | pub struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
1265 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
1266 + | /* RustType.kt:516 */
|
931 1267 | #[pyo3(get, set)]
|
1268 + | /* PythonServerStructureGenerator.kt:80 */
|
932 1269 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1270 + | /* StructureGenerator.kt:231 */
|
933 1271 | #[allow(missing_docs)] // documentation missing in model
|
934 1272 | pub map_of_length_string: ::std::option::Option<
|
935 1273 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
936 1274 | >,
|
1275 + | /* StructureGenerator.kt:201 */
|
937 1276 | }
|
1277 + | /* StructureGenerator.kt:135 */
|
938 1278 | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
1279 + | /* StructureGenerator.kt:231 */
|
939 1280 | #[allow(missing_docs)] // documentation missing in model
|
1281 + | /* StructureGenerator.kt:166 */
|
940 1282 | pub fn map_of_length_string(
|
941 1283 | &self,
|
942 1284 | ) -> ::std::option::Option<
|
943 1285 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
944 1286 | > {
|
1287 + | /* StructureGenerator.kt:170 */
|
945 1288 | self.map_of_length_string.as_ref()
|
1289 + | /* StructureGenerator.kt:166 */
|
946 1290 | }
|
1291 + | /* StructureGenerator.kt:135 */
|
947 1292 | }
|
1293 + | /* RustType.kt:516 */
|
948 1294 | #[allow(clippy::new_without_default)]
|
1295 + | /* RustType.kt:516 */
|
949 1296 | #[allow(clippy::too_many_arguments)]
|
1297 + | /* RustType.kt:516 */
|
950 1298 | #[::pyo3::pymethods]
|
1299 + | /* PythonServerStructureGenerator.kt:88 */
|
951 1300 | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
952 1301 | #[new]
|
953 1302 | pub fn new(
|
954 1303 | map_of_length_string: ::std::option::Option<
|
955 1304 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
956 1305 | >,
|
957 1306 | ) -> Self {
|
958 1307 | Self {
|
959 1308 | map_of_length_string,
|
960 1309 | }
|
961 1310 | }
|
962 1311 | fn __repr__(&self) -> String {
|
963 1312 | format!("{self:?}")
|
964 1313 | }
|
965 1314 | fn __str__(&self) -> String {
|
966 1315 | format!("{self:?}")
|
967 1316 | }
|
968 1317 | }
|
1318 + | /* PythonServerStructureGenerator.kt:111 */
|
969 1319 | impl<'source> ::pyo3::FromPyObject<'source>
|
970 1320 | for std::boxed::Box<QueryParamsTargetingMapOfLengthStringOperationInput>
|
971 1321 | {
|
972 1322 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
973 1323 | ob.extract::<QueryParamsTargetingMapOfLengthStringOperationInput>()
|
974 1324 | .map(Box::new)
|
975 1325 | }
|
976 1326 | }
|
977 1327 |
|
978 1328 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
979 1329 | for std::boxed::Box<QueryParamsTargetingMapOfLengthStringOperationInput>
|
980 1330 | {
|
981 1331 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
982 1332 | (*self).into_py(py)
|
983 1333 | }
|
984 1334 | }
|
1335 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
985 1336 | impl crate::constrained::Constrained
|
986 1337 | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
987 1338 | {
|
988 1339 | type Unconstrained =
|
989 1340 | crate::input::query_params_targeting_map_of_length_string_operation_input_internal::Builder;
|
990 1341 | }
|
1342 + | /* ServerCodegenVisitor.kt:370 */
|
991 1343 | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
992 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
1344 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
1345 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
993 1346 | pub fn builder(
|
994 1347 | ) -> crate::input::query_params_targeting_map_of_length_string_operation_input::Builder {
|
1348 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
995 1349 | crate::input::query_params_targeting_map_of_length_string_operation_input::Builder::default(
|
996 1350 | )
|
1351 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
997 1352 | }
|
1353 + | /* ServerCodegenVisitor.kt:370 */
|
998 1354 | }
|
999 1355 |
|
1356 + | /* RustType.kt:516 */
|
1000 1357 | #[::pyo3::pyclass]
|
1358 + | /* PythonServerStructureGenerator.kt:63 */
|
1001 1359 | /// :param length_map typing.Optional\[typing.Dict\[str, str\]\]:
|
1002 1360 | /// :rtype None:
|
1361 + | /* StructureGenerator.kt:197 */
|
1003 1362 | #[allow(missing_docs)] // documentation missing in model
|
1363 + | /* RustType.kt:516 */
|
1004 1364 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1005 - | pub struct QueryParamsTargetingLengthMapOperationInput {
|
1365 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingLengthMapOperationInput {
|
1366 + | /* RustType.kt:516 */
|
1006 1367 | #[pyo3(get, set)]
|
1368 + | /* PythonServerStructureGenerator.kt:80 */
|
1007 1369 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1370 + | /* StructureGenerator.kt:231 */
|
1008 1371 | #[allow(missing_docs)] // documentation missing in model
|
1009 1372 | pub length_map: ::std::option::Option<
|
1010 1373 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1011 1374 | >,
|
1375 + | /* StructureGenerator.kt:201 */
|
1012 1376 | }
|
1377 + | /* StructureGenerator.kt:135 */
|
1013 1378 | impl QueryParamsTargetingLengthMapOperationInput {
|
1379 + | /* StructureGenerator.kt:231 */
|
1014 1380 | #[allow(missing_docs)] // documentation missing in model
|
1381 + | /* StructureGenerator.kt:166 */
|
1015 1382 | pub fn length_map(
|
1016 1383 | &self,
|
1017 1384 | ) -> ::std::option::Option<
|
1018 1385 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1019 1386 | > {
|
1387 + | /* StructureGenerator.kt:170 */
|
1020 1388 | self.length_map.as_ref()
|
1389 + | /* StructureGenerator.kt:166 */
|
1021 1390 | }
|
1391 + | /* StructureGenerator.kt:135 */
|
1022 1392 | }
|
1393 + | /* RustType.kt:516 */
|
1023 1394 | #[allow(clippy::new_without_default)]
|
1395 + | /* RustType.kt:516 */
|
1024 1396 | #[allow(clippy::too_many_arguments)]
|
1397 + | /* RustType.kt:516 */
|
1025 1398 | #[::pyo3::pymethods]
|
1399 + | /* PythonServerStructureGenerator.kt:88 */
|
1026 1400 | impl QueryParamsTargetingLengthMapOperationInput {
|
1027 1401 | #[new]
|
1028 1402 | pub fn new(
|
1029 1403 | length_map: ::std::option::Option<
|
1030 1404 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1031 1405 | >,
|
1032 1406 | ) -> Self {
|
1033 1407 | Self { length_map }
|
1034 1408 | }
|
1035 1409 | fn __repr__(&self) -> String {
|
1036 1410 | format!("{self:?}")
|
1037 1411 | }
|
1038 1412 | fn __str__(&self) -> String {
|
1039 1413 | format!("{self:?}")
|
1040 1414 | }
|
1041 1415 | }
|
1416 + | /* PythonServerStructureGenerator.kt:111 */
|
1042 1417 | impl<'source> ::pyo3::FromPyObject<'source>
|
1043 1418 | for std::boxed::Box<QueryParamsTargetingLengthMapOperationInput>
|
1044 1419 | {
|
1045 1420 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1046 1421 | ob.extract::<QueryParamsTargetingLengthMapOperationInput>()
|
1047 1422 | .map(Box::new)
|
1048 1423 | }
|
1049 1424 | }
|
1050 1425 |
|
1051 1426 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1052 1427 | for std::boxed::Box<QueryParamsTargetingLengthMapOperationInput>
|
1053 1428 | {
|
1054 1429 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1055 1430 | (*self).into_py(py)
|
1056 1431 | }
|
1057 1432 | }
|
1433 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1058 1434 | impl crate::constrained::Constrained for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
1059 1435 | type Unconstrained =
|
1060 1436 | crate::input::query_params_targeting_length_map_operation_input_internal::Builder;
|
1061 1437 | }
|
1438 + | /* ServerCodegenVisitor.kt:370 */
|
1062 1439 | impl QueryParamsTargetingLengthMapOperationInput {
|
1063 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
1440 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
1441 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1064 1442 | pub fn builder() -> crate::input::query_params_targeting_length_map_operation_input::Builder {
|
1443 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1065 1444 | crate::input::query_params_targeting_length_map_operation_input::Builder::default()
|
1445 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1066 1446 | }
|
1447 + | /* ServerCodegenVisitor.kt:370 */
|
1067 1448 | }
|
1068 1449 |
|
1450 + | /* RustType.kt:516 */
|
1069 1451 | #[::pyo3::pyclass]
|
1070 - | /// :param nested typing.Optional\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
1452 + | /* PythonServerStructureGenerator.kt:63 */
|
1071 1453 | /// :param recursive_list typing.List\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
1454 + | /// :param nested typing.Optional\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
1072 1455 | /// :rtype None:
|
1456 + | /* StructureGenerator.kt:197 */
|
1073 1457 | #[allow(missing_docs)] // documentation missing in model
|
1458 + | /* RustType.kt:516 */
|
1074 1459 | #[derive(
|
1075 1460 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1076 1461 | )]
|
1077 - | pub struct ConstrainedRecursiveShapesOperationInput {
|
1462 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedRecursiveShapesOperationInput {
|
1463 + | /* RustType.kt:516 */
|
1078 1464 | #[pyo3(get, set)]
|
1465 + | /* PythonServerStructureGenerator.kt:80 */
|
1079 1466 | /// :type typing.Optional\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
1467 + | /* StructureGenerator.kt:231 */
|
1080 1468 | #[allow(missing_docs)] // documentation missing in model
|
1081 1469 | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
1470 + | /* RustType.kt:516 */
|
1082 1471 | #[pyo3(get, set)]
|
1472 + | /* PythonServerStructureGenerator.kt:80 */
|
1083 1473 | /// :type typing.List\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
1474 + | /* StructureGenerator.kt:231 */
|
1084 1475 | #[allow(missing_docs)] // documentation missing in model
|
1085 1476 | pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
1477 + | /* StructureGenerator.kt:201 */
|
1086 1478 | }
|
1479 + | /* StructureGenerator.kt:135 */
|
1087 1480 | impl ConstrainedRecursiveShapesOperationInput {
|
1481 + | /* StructureGenerator.kt:231 */
|
1088 1482 | #[allow(missing_docs)] // documentation missing in model
|
1483 + | /* StructureGenerator.kt:166 */
|
1089 1484 | pub fn nested(
|
1090 1485 | &self,
|
1091 1486 | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
1487 + | /* StructureGenerator.kt:170 */
|
1092 1488 | self.nested.as_ref()
|
1489 + | /* StructureGenerator.kt:166 */
|
1093 1490 | }
|
1491 + | /* StructureGenerator.kt:231 */
|
1094 1492 | #[allow(missing_docs)] // documentation missing in model
|
1493 + | /* StructureGenerator.kt:166 */
|
1095 1494 | pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
|
1495 + | /* StructureGenerator.kt:171 */
|
1096 1496 | use std::ops::Deref;
|
1097 1497 | self.recursive_list.deref()
|
1498 + | /* StructureGenerator.kt:166 */
|
1098 1499 | }
|
1500 + | /* StructureGenerator.kt:135 */
|
1099 1501 | }
|
1502 + | /* RustType.kt:516 */
|
1100 1503 | #[allow(clippy::new_without_default)]
|
1504 + | /* RustType.kt:516 */
|
1101 1505 | #[allow(clippy::too_many_arguments)]
|
1506 + | /* RustType.kt:516 */
|
1102 1507 | #[::pyo3::pymethods]
|
1508 + | /* PythonServerStructureGenerator.kt:88 */
|
1103 1509 | impl ConstrainedRecursiveShapesOperationInput {
|
1104 1510 | #[new]
|
1105 1511 | pub fn new(
|
1106 - | nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
1107 1512 | recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
1513 + | nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
1108 1514 | ) -> Self {
|
1109 1515 | Self {
|
1110 - | nested,
|
1111 1516 | recursive_list,
|
1517 + | nested,
|
1112 1518 | }
|
1113 1519 | }
|
1114 1520 | fn __repr__(&self) -> String {
|
1115 1521 | format!("{self:?}")
|
1116 1522 | }
|
1117 1523 | fn __str__(&self) -> String {
|
1118 1524 | format!("{self:?}")
|
1119 1525 | }
|
1120 1526 | }
|
1527 + | /* PythonServerStructureGenerator.kt:111 */
|
1121 1528 | impl<'source> ::pyo3::FromPyObject<'source>
|
1122 1529 | for std::boxed::Box<ConstrainedRecursiveShapesOperationInput>
|
1123 1530 | {
|
1124 1531 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1125 1532 | ob.extract::<ConstrainedRecursiveShapesOperationInput>()
|
1126 1533 | .map(Box::new)
|
1127 1534 | }
|
1128 1535 | }
|
1129 1536 |
|
1130 1537 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1131 1538 | for std::boxed::Box<ConstrainedRecursiveShapesOperationInput>
|
1132 1539 | {
|
1133 1540 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1134 1541 | (*self).into_py(py)
|
1135 1542 | }
|
1136 1543 | }
|
1544 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1137 1545 | impl crate::constrained::Constrained for crate::input::ConstrainedRecursiveShapesOperationInput {
|
1138 1546 | type Unconstrained =
|
1139 1547 | crate::input::constrained_recursive_shapes_operation_input_internal::Builder;
|
1140 1548 | }
|
1549 + | /* ServerCodegenVisitor.kt:370 */
|
1141 1550 | impl ConstrainedRecursiveShapesOperationInput {
|
1142 - | /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
1551 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
1552 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1143 1553 | pub fn builder() -> crate::input::constrained_recursive_shapes_operation_input::Builder {
|
1554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1144 1555 | crate::input::constrained_recursive_shapes_operation_input::Builder::default()
|
1556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1145 1557 | }
|
1558 + | /* ServerCodegenVisitor.kt:370 */
|
1146 1559 | }
|
1147 1560 |
|
1561 + | /* RustType.kt:516 */
|
1148 1562 | #[::pyo3::pyclass]
|
1563 + | /* PythonServerStructureGenerator.kt:63 */
|
1149 1564 | /// :param http_payload_bound_constrained_shape constraints_without_public_constrained_types.model.ConA:
|
1150 1565 | /// :rtype None:
|
1566 + | /* StructureGenerator.kt:197 */
|
1151 1567 | #[allow(missing_docs)] // documentation missing in model
|
1568 + | /* RustType.kt:516 */
|
1152 1569 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1153 - | pub struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
1570 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
1571 + | /* RustType.kt:516 */
|
1154 1572 | #[pyo3(get, set)]
|
1573 + | /* PythonServerStructureGenerator.kt:80 */
|
1155 1574 | /// :type constraints_without_public_constrained_types.model.ConA:
|
1575 + | /* StructureGenerator.kt:231 */
|
1156 1576 | #[allow(missing_docs)] // documentation missing in model
|
1157 1577 | pub http_payload_bound_constrained_shape: crate::model::ConA,
|
1578 + | /* StructureGenerator.kt:201 */
|
1158 1579 | }
|
1580 + | /* StructureGenerator.kt:135 */
|
1159 1581 | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
1582 + | /* StructureGenerator.kt:231 */
|
1160 1583 | #[allow(missing_docs)] // documentation missing in model
|
1584 + | /* StructureGenerator.kt:166 */
|
1161 1585 | pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
|
1586 + | /* StructureGenerator.kt:172 */
|
1162 1587 | &self.http_payload_bound_constrained_shape
|
1588 + | /* StructureGenerator.kt:166 */
|
1163 1589 | }
|
1590 + | /* StructureGenerator.kt:135 */
|
1164 1591 | }
|
1592 + | /* RustType.kt:516 */
|
1165 1593 | #[allow(clippy::new_without_default)]
|
1594 + | /* RustType.kt:516 */
|
1166 1595 | #[allow(clippy::too_many_arguments)]
|
1596 + | /* RustType.kt:516 */
|
1167 1597 | #[::pyo3::pymethods]
|
1598 + | /* PythonServerStructureGenerator.kt:88 */
|
1168 1599 | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
1169 1600 | #[new]
|
1170 1601 | pub fn new(http_payload_bound_constrained_shape: crate::model::ConA) -> Self {
|
1171 1602 | Self {
|
1172 1603 | http_payload_bound_constrained_shape,
|
1173 1604 | }
|
1174 1605 | }
|
1175 1606 | fn __repr__(&self) -> String {
|
1176 1607 | format!("{self:?}")
|
1177 1608 | }
|
1178 1609 | fn __str__(&self) -> String {
|
1179 1610 | format!("{self:?}")
|
1180 1611 | }
|
1181 1612 | }
|
1613 + | /* PythonServerStructureGenerator.kt:111 */
|
1182 1614 | impl<'source> ::pyo3::FromPyObject<'source>
|
1183 1615 | for std::boxed::Box<ConstrainedHttpPayloadBoundShapeOperationInput>
|
1184 1616 | {
|
1185 1617 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1186 1618 | ob.extract::<ConstrainedHttpPayloadBoundShapeOperationInput>()
|
1187 1619 | .map(Box::new)
|
1188 1620 | }
|
1189 1621 | }
|
1190 1622 |
|
1191 1623 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1192 1624 | for std::boxed::Box<ConstrainedHttpPayloadBoundShapeOperationInput>
|
1193 1625 | {
|
1194 1626 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1195 1627 | (*self).into_py(py)
|
1196 1628 | }
|
1197 1629 | }
|
1630 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1198 1631 | impl crate::constrained::Constrained
|
1199 1632 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
1200 1633 | {
|
1201 1634 | type Unconstrained =
|
1202 1635 | crate::input::constrained_http_payload_bound_shape_operation_input_internal::Builder;
|
1203 1636 | }
|
1637 + | /* ServerCodegenVisitor.kt:370 */
|
1204 1638 | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
1205 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
1639 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
1640 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1206 1641 | pub fn builder() -> crate::input::constrained_http_payload_bound_shape_operation_input::Builder
|
1207 1642 | {
|
1643 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1208 1644 | crate::input::constrained_http_payload_bound_shape_operation_input::Builder::default()
|
1645 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1209 1646 | }
|
1647 + | /* ServerCodegenVisitor.kt:370 */
|
1210 1648 | }
|
1211 1649 |
|
1650 + | /* RustType.kt:516 */
|
1212 1651 | #[::pyo3::pyclass]
|
1652 + | /* PythonServerStructureGenerator.kt:63 */
|
1213 1653 | /// :param length_string_label str:
|
1214 1654 | /// :param range_integer_label int:
|
1215 1655 | /// :param range_short_label int:
|
1216 1656 | /// :param range_long_label int:
|
1217 1657 | /// :param range_byte_label int:
|
1218 1658 | /// :param enum_string_label constraints_without_public_constrained_types.model.EnumString:
|
1219 1659 | /// :param length_string_header_map typing.Dict\[str, str\]:
|
1220 - | /// :param length_string_header typing.Optional\[str\]:
|
1221 1660 | /// :param range_integer_header int:
|
1222 1661 | /// :param range_short_header int:
|
1223 1662 | /// :param range_long_header int:
|
1224 1663 | /// :param range_byte_header int:
|
1664 + | /// :param range_byte_query int:
|
1665 + | /// :param range_short_query int:
|
1666 + | /// :param range_integer_query int:
|
1667 + | /// :param range_long_query int:
|
1668 + | /// :param length_string_header typing.Optional\[str\]:
|
1225 1669 | /// :param length_string_set_header typing.Optional\[typing.Set\[str\]\]:
|
1226 1670 | /// :param list_length_string_header typing.Optional\[typing.List\[str\]\]:
|
1227 1671 | /// :param length_list_pattern_string_header typing.Optional\[typing.List\[str\]\]:
|
1228 1672 | /// :param length_set_pattern_string_header typing.Optional\[typing.Set\[str\]\]:
|
1229 1673 | /// :param range_byte_set_header typing.Optional\[typing.List\[int\]\]:
|
1230 1674 | /// :param range_short_set_header typing.Optional\[typing.List\[int\]\]:
|
1231 1675 | /// :param range_integer_set_header typing.Optional\[typing.List\[int\]\]:
|
1232 1676 | /// :param range_long_set_header typing.Optional\[typing.List\[int\]\]:
|
1233 1677 | /// :param range_byte_list_header typing.Optional\[typing.List\[int\]\]:
|
1234 1678 | /// :param range_short_list_header typing.Optional\[typing.List\[int\]\]:
|
1235 1679 | /// :param range_integer_list_header typing.Optional\[typing.List\[int\]\]:
|
1236 1680 | /// :param range_long_list_header typing.Optional\[typing.List\[int\]\]:
|
1237 1681 | /// :param length_string_query typing.Optional\[str\]:
|
1238 - | /// :param range_byte_query int:
|
1239 - | /// :param range_short_query int:
|
1240 - | /// :param range_integer_query int:
|
1241 - | /// :param range_long_query int:
|
1242 1682 | /// :param enum_string_query typing.Optional\[constraints_without_public_constrained_types.model.EnumString\]:
|
1243 1683 | /// :param length_string_list_query typing.Optional\[typing.List\[str\]\]:
|
1244 1684 | /// :param length_list_pattern_string_query typing.Optional\[typing.List\[str\]\]:
|
1245 1685 | /// :param length_string_set_query typing.Optional\[typing.Set\[str\]\]:
|
1246 1686 | /// :param range_byte_list_query typing.Optional\[typing.List\[int\]\]:
|
1247 1687 | /// :param range_short_list_query typing.Optional\[typing.List\[int\]\]:
|
1248 1688 | /// :param range_integer_list_query typing.Optional\[typing.List\[int\]\]:
|
1249 1689 | /// :param range_long_list_query typing.Optional\[typing.List\[int\]\]:
|
1250 1690 | /// :param range_byte_set_query typing.Optional\[typing.List\[int\]\]:
|
1251 1691 | /// :param range_short_set_query typing.Optional\[typing.List\[int\]\]:
|
1252 1692 | /// :param range_integer_set_query typing.Optional\[typing.List\[int\]\]:
|
1253 1693 | /// :param range_long_set_query typing.Optional\[typing.List\[int\]\]:
|
1254 1694 | /// :param enum_string_list_query typing.Optional\[typing.List\[constraints_without_public_constrained_types.model.EnumString\]\]:
|
1255 1695 | /// :rtype None:
|
1696 + | /* StructureGenerator.kt:197 */
|
1256 1697 | #[allow(missing_docs)] // documentation missing in model
|
1698 + | /* RustType.kt:516 */
|
1257 1699 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1258 - | pub struct ConstrainedHttpBoundShapesOperationInput {
|
1700 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedHttpBoundShapesOperationInput {
|
1701 + | /* RustType.kt:516 */
|
1259 1702 | #[pyo3(get, set)]
|
1703 + | /* PythonServerStructureGenerator.kt:80 */
|
1260 1704 | /// :type str:
|
1705 + | /* StructureGenerator.kt:231 */
|
1261 1706 | #[allow(missing_docs)] // documentation missing in model
|
1262 1707 | pub length_string_label: ::std::string::String,
|
1708 + | /* RustType.kt:516 */
|
1263 1709 | #[pyo3(get, set)]
|
1710 + | /* PythonServerStructureGenerator.kt:80 */
|
1264 1711 | /// :type int:
|
1712 + | /* StructureGenerator.kt:231 */
|
1265 1713 | #[allow(missing_docs)] // documentation missing in model
|
1266 1714 | pub range_integer_label: i32,
|
1715 + | /* RustType.kt:516 */
|
1267 1716 | #[pyo3(get, set)]
|
1717 + | /* PythonServerStructureGenerator.kt:80 */
|
1268 1718 | /// :type int:
|
1719 + | /* StructureGenerator.kt:231 */
|
1269 1720 | #[allow(missing_docs)] // documentation missing in model
|
1270 1721 | pub range_short_label: i16,
|
1722 + | /* RustType.kt:516 */
|
1271 1723 | #[pyo3(get, set)]
|
1724 + | /* PythonServerStructureGenerator.kt:80 */
|
1272 1725 | /// :type int:
|
1726 + | /* StructureGenerator.kt:231 */
|
1273 1727 | #[allow(missing_docs)] // documentation missing in model
|
1274 1728 | pub range_long_label: i64,
|
1729 + | /* RustType.kt:516 */
|
1275 1730 | #[pyo3(get, set)]
|
1731 + | /* PythonServerStructureGenerator.kt:80 */
|
1276 1732 | /// :type int:
|
1733 + | /* StructureGenerator.kt:231 */
|
1277 1734 | #[allow(missing_docs)] // documentation missing in model
|
1278 1735 | pub range_byte_label: i8,
|
1736 + | /* RustType.kt:516 */
|
1279 1737 | #[pyo3(get, set)]
|
1738 + | /* PythonServerStructureGenerator.kt:80 */
|
1280 1739 | /// :type constraints_without_public_constrained_types.model.EnumString:
|
1740 + | /* StructureGenerator.kt:231 */
|
1281 1741 | #[allow(missing_docs)] // documentation missing in model
|
1282 1742 | pub enum_string_label: crate::model::EnumString,
|
1743 + | /* RustType.kt:516 */
|
1283 1744 | #[pyo3(get, set)]
|
1745 + | /* PythonServerStructureGenerator.kt:80 */
|
1284 1746 | /// :type typing.Dict\[str, str\]:
|
1747 + | /* StructureGenerator.kt:231 */
|
1285 1748 | #[allow(missing_docs)] // documentation missing in model
|
1286 1749 | pub length_string_header_map:
|
1287 1750 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1751 + | /* RustType.kt:516 */
|
1288 1752 | #[pyo3(get, set)]
|
1753 + | /* PythonServerStructureGenerator.kt:80 */
|
1289 1754 | /// :type typing.Optional\[str\]:
|
1755 + | /* StructureGenerator.kt:231 */
|
1290 1756 | #[allow(missing_docs)] // documentation missing in model
|
1291 1757 | pub length_string_header: ::std::option::Option<::std::string::String>,
|
1758 + | /* RustType.kt:516 */
|
1292 1759 | #[pyo3(get, set)]
|
1760 + | /* PythonServerStructureGenerator.kt:80 */
|
1293 1761 | /// :type int:
|
1762 + | /* StructureGenerator.kt:231 */
|
1294 1763 | #[allow(missing_docs)] // documentation missing in model
|
1295 1764 | pub range_integer_header: i32,
|
1765 + | /* RustType.kt:516 */
|
1296 1766 | #[pyo3(get, set)]
|
1767 + | /* PythonServerStructureGenerator.kt:80 */
|
1297 1768 | /// :type int:
|
1769 + | /* StructureGenerator.kt:231 */
|
1298 1770 | #[allow(missing_docs)] // documentation missing in model
|
1299 1771 | pub range_short_header: i16,
|
1772 + | /* RustType.kt:516 */
|
1300 1773 | #[pyo3(get, set)]
|
1774 + | /* PythonServerStructureGenerator.kt:80 */
|
1301 1775 | /// :type int:
|
1776 + | /* StructureGenerator.kt:231 */
|
1302 1777 | #[allow(missing_docs)] // documentation missing in model
|
1303 1778 | pub range_long_header: i64,
|
1779 + | /* RustType.kt:516 */
|
1304 1780 | #[pyo3(get, set)]
|
1781 + | /* PythonServerStructureGenerator.kt:80 */
|
1305 1782 | /// :type int:
|
1783 + | /* StructureGenerator.kt:231 */
|
1306 1784 | #[allow(missing_docs)] // documentation missing in model
|
1307 1785 | pub range_byte_header: i8,
|
1786 + | /* RustType.kt:516 */
|
1308 1787 | #[pyo3(get, set)]
|
1788 + | /* PythonServerStructureGenerator.kt:80 */
|
1309 1789 | /// :type typing.Optional\[typing.Set\[str\]\]:
|
1790 + | /* StructureGenerator.kt:231 */
|
1310 1791 | #[allow(missing_docs)] // documentation missing in model
|
1311 1792 | pub length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1793 + | /* RustType.kt:516 */
|
1312 1794 | #[pyo3(get, set)]
|
1795 + | /* PythonServerStructureGenerator.kt:80 */
|
1313 1796 | /// :type typing.Optional\[typing.List\[str\]\]:
|
1797 + | /* StructureGenerator.kt:231 */
|
1314 1798 | #[allow(missing_docs)] // documentation missing in model
|
1315 1799 | pub list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1800 + | /* RustType.kt:516 */
|
1316 1801 | #[pyo3(get, set)]
|
1802 + | /* PythonServerStructureGenerator.kt:80 */
|
1317 1803 | /// :type typing.Optional\[typing.List\[str\]\]:
|
1804 + | /* StructureGenerator.kt:231 */
|
1318 1805 | #[allow(missing_docs)] // documentation missing in model
|
1319 1806 | pub length_list_pattern_string_header:
|
1320 1807 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1808 + | /* RustType.kt:516 */
|
1321 1809 | #[pyo3(get, set)]
|
1810 + | /* PythonServerStructureGenerator.kt:80 */
|
1322 1811 | /// :type typing.Optional\[typing.Set\[str\]\]:
|
1812 + | /* StructureGenerator.kt:231 */
|
1323 1813 | #[allow(missing_docs)] // documentation missing in model
|
1324 1814 | pub length_set_pattern_string_header:
|
1325 1815 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1816 + | /* RustType.kt:516 */
|
1326 1817 | #[pyo3(get, set)]
|
1818 + | /* PythonServerStructureGenerator.kt:80 */
|
1327 1819 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1820 + | /* StructureGenerator.kt:231 */
|
1328 1821 | #[allow(missing_docs)] // documentation missing in model
|
1329 1822 | pub range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1823 + | /* RustType.kt:516 */
|
1330 1824 | #[pyo3(get, set)]
|
1825 + | /* PythonServerStructureGenerator.kt:80 */
|
1331 1826 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1827 + | /* StructureGenerator.kt:231 */
|
1332 1828 | #[allow(missing_docs)] // documentation missing in model
|
1333 1829 | pub range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1830 + | /* RustType.kt:516 */
|
1334 1831 | #[pyo3(get, set)]
|
1832 + | /* PythonServerStructureGenerator.kt:80 */
|
1335 1833 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1834 + | /* StructureGenerator.kt:231 */
|
1336 1835 | #[allow(missing_docs)] // documentation missing in model
|
1337 1836 | pub range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1837 + | /* RustType.kt:516 */
|
1338 1838 | #[pyo3(get, set)]
|
1839 + | /* PythonServerStructureGenerator.kt:80 */
|
1339 1840 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1841 + | /* StructureGenerator.kt:231 */
|
1340 1842 | #[allow(missing_docs)] // documentation missing in model
|
1341 1843 | pub range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1844 + | /* RustType.kt:516 */
|
1342 1845 | #[pyo3(get, set)]
|
1846 + | /* PythonServerStructureGenerator.kt:80 */
|
1343 1847 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1848 + | /* StructureGenerator.kt:231 */
|
1344 1849 | #[allow(missing_docs)] // documentation missing in model
|
1345 1850 | pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1851 + | /* RustType.kt:516 */
|
1346 1852 | #[pyo3(get, set)]
|
1853 + | /* PythonServerStructureGenerator.kt:80 */
|
1347 1854 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1855 + | /* StructureGenerator.kt:231 */
|
1348 1856 | #[allow(missing_docs)] // documentation missing in model
|
1349 1857 | pub range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1858 + | /* RustType.kt:516 */
|
1350 1859 | #[pyo3(get, set)]
|
1860 + | /* PythonServerStructureGenerator.kt:80 */
|
1351 1861 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1862 + | /* StructureGenerator.kt:231 */
|
1352 1863 | #[allow(missing_docs)] // documentation missing in model
|
1353 1864 | pub range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1865 + | /* RustType.kt:516 */
|
1354 1866 | #[pyo3(get, set)]
|
1867 + | /* PythonServerStructureGenerator.kt:80 */
|
1355 1868 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1869 + | /* StructureGenerator.kt:231 */
|
1356 1870 | #[allow(missing_docs)] // documentation missing in model
|
1357 1871 | pub range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1872 + | /* RustType.kt:516 */
|
1358 1873 | #[pyo3(get, set)]
|
1874 + | /* PythonServerStructureGenerator.kt:80 */
|
1359 1875 | /// :type typing.Optional\[str\]:
|
1876 + | /* StructureGenerator.kt:231 */
|
1360 1877 | #[allow(missing_docs)] // documentation missing in model
|
1361 1878 | pub length_string_query: ::std::option::Option<::std::string::String>,
|
1879 + | /* RustType.kt:516 */
|
1362 1880 | #[pyo3(get, set)]
|
1881 + | /* PythonServerStructureGenerator.kt:80 */
|
1363 1882 | /// :type int:
|
1883 + | /* StructureGenerator.kt:231 */
|
1364 1884 | #[allow(missing_docs)] // documentation missing in model
|
1365 1885 | pub range_byte_query: i8,
|
1886 + | /* RustType.kt:516 */
|
1366 1887 | #[pyo3(get, set)]
|
1888 + | /* PythonServerStructureGenerator.kt:80 */
|
1367 1889 | /// :type int:
|
1890 + | /* StructureGenerator.kt:231 */
|
1368 1891 | #[allow(missing_docs)] // documentation missing in model
|
1369 1892 | pub range_short_query: i16,
|
1893 + | /* RustType.kt:516 */
|
1370 1894 | #[pyo3(get, set)]
|
1895 + | /* PythonServerStructureGenerator.kt:80 */
|
1371 1896 | /// :type int:
|
1897 + | /* StructureGenerator.kt:231 */
|
1372 1898 | #[allow(missing_docs)] // documentation missing in model
|
1373 1899 | pub range_integer_query: i32,
|
1900 + | /* RustType.kt:516 */
|
1374 1901 | #[pyo3(get, set)]
|
1902 + | /* PythonServerStructureGenerator.kt:80 */
|
1375 1903 | /// :type int:
|
1904 + | /* StructureGenerator.kt:231 */
|
1376 1905 | #[allow(missing_docs)] // documentation missing in model
|
1377 1906 | pub range_long_query: i64,
|
1907 + | /* RustType.kt:516 */
|
1378 1908 | #[pyo3(get, set)]
|
1909 + | /* PythonServerStructureGenerator.kt:80 */
|
1379 1910 | /// :type typing.Optional\[constraints_without_public_constrained_types.model.EnumString\]:
|
1911 + | /* StructureGenerator.kt:231 */
|
1380 1912 | #[allow(missing_docs)] // documentation missing in model
|
1381 1913 | pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
1914 + | /* RustType.kt:516 */
|
1382 1915 | #[pyo3(get, set)]
|
1916 + | /* PythonServerStructureGenerator.kt:80 */
|
1383 1917 | /// :type typing.Optional\[typing.List\[str\]\]:
|
1918 + | /* StructureGenerator.kt:231 */
|
1384 1919 | #[allow(missing_docs)] // documentation missing in model
|
1385 1920 | pub length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1921 + | /* RustType.kt:516 */
|
1386 1922 | #[pyo3(get, set)]
|
1923 + | /* PythonServerStructureGenerator.kt:80 */
|
1387 1924 | /// :type typing.Optional\[typing.List\[str\]\]:
|
1925 + | /* StructureGenerator.kt:231 */
|
1388 1926 | #[allow(missing_docs)] // documentation missing in model
|
1389 1927 | pub length_list_pattern_string_query:
|
1390 1928 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1929 + | /* RustType.kt:516 */
|
1391 1930 | #[pyo3(get, set)]
|
1931 + | /* PythonServerStructureGenerator.kt:80 */
|
1392 1932 | /// :type typing.Optional\[typing.Set\[str\]\]:
|
1933 + | /* StructureGenerator.kt:231 */
|
1393 1934 | #[allow(missing_docs)] // documentation missing in model
|
1394 1935 | pub length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1936 + | /* RustType.kt:516 */
|
1395 1937 | #[pyo3(get, set)]
|
1938 + | /* PythonServerStructureGenerator.kt:80 */
|
1396 1939 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1940 + | /* StructureGenerator.kt:231 */
|
1397 1941 | #[allow(missing_docs)] // documentation missing in model
|
1398 1942 | pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1943 + | /* RustType.kt:516 */
|
1399 1944 | #[pyo3(get, set)]
|
1945 + | /* PythonServerStructureGenerator.kt:80 */
|
1400 1946 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1947 + | /* StructureGenerator.kt:231 */
|
1401 1948 | #[allow(missing_docs)] // documentation missing in model
|
1402 1949 | pub range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1950 + | /* RustType.kt:516 */
|
1403 1951 | #[pyo3(get, set)]
|
1952 + | /* PythonServerStructureGenerator.kt:80 */
|
1404 1953 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1954 + | /* StructureGenerator.kt:231 */
|
1405 1955 | #[allow(missing_docs)] // documentation missing in model
|
1406 1956 | pub range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1957 + | /* RustType.kt:516 */
|
1407 1958 | #[pyo3(get, set)]
|
1959 + | /* PythonServerStructureGenerator.kt:80 */
|
1408 1960 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1961 + | /* StructureGenerator.kt:231 */
|
1409 1962 | #[allow(missing_docs)] // documentation missing in model
|
1410 1963 | pub range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1964 + | /* RustType.kt:516 */
|
1411 1965 | #[pyo3(get, set)]
|
1966 + | /* PythonServerStructureGenerator.kt:80 */
|
1412 1967 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1968 + | /* StructureGenerator.kt:231 */
|
1413 1969 | #[allow(missing_docs)] // documentation missing in model
|
1414 1970 | pub range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1971 + | /* RustType.kt:516 */
|
1415 1972 | #[pyo3(get, set)]
|
1973 + | /* PythonServerStructureGenerator.kt:80 */
|
1416 1974 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1975 + | /* StructureGenerator.kt:231 */
|
1417 1976 | #[allow(missing_docs)] // documentation missing in model
|
1418 1977 | pub range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1978 + | /* RustType.kt:516 */
|
1419 1979 | #[pyo3(get, set)]
|
1980 + | /* PythonServerStructureGenerator.kt:80 */
|
1420 1981 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1982 + | /* StructureGenerator.kt:231 */
|
1421 1983 | #[allow(missing_docs)] // documentation missing in model
|
1422 1984 | pub range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1985 + | /* RustType.kt:516 */
|
1423 1986 | #[pyo3(get, set)]
|
1987 + | /* PythonServerStructureGenerator.kt:80 */
|
1424 1988 | /// :type typing.Optional\[typing.List\[int\]\]:
|
1989 + | /* StructureGenerator.kt:231 */
|
1425 1990 | #[allow(missing_docs)] // documentation missing in model
|
1426 1991 | pub range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1992 + | /* RustType.kt:516 */
|
1427 1993 | #[pyo3(get, set)]
|
1994 + | /* PythonServerStructureGenerator.kt:80 */
|
1428 1995 | /// :type typing.Optional\[typing.List\[constraints_without_public_constrained_types.model.EnumString\]\]:
|
1996 + | /* StructureGenerator.kt:231 */
|
1429 1997 | #[allow(missing_docs)] // documentation missing in model
|
1430 1998 | pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
1999 + | /* StructureGenerator.kt:201 */
|
1431 2000 | }
|
2001 + | /* StructureGenerator.kt:135 */
|
1432 2002 | impl ConstrainedHttpBoundShapesOperationInput {
|
2003 + | /* StructureGenerator.kt:231 */
|
1433 2004 | #[allow(missing_docs)] // documentation missing in model
|
2005 + | /* StructureGenerator.kt:166 */
|
1434 2006 | pub fn length_string_label(&self) -> &str {
|
2007 + | /* StructureGenerator.kt:171 */
|
1435 2008 | use std::ops::Deref;
|
1436 2009 | self.length_string_label.deref()
|
2010 + | /* StructureGenerator.kt:166 */
|
1437 2011 | }
|
2012 + | /* StructureGenerator.kt:231 */
|
1438 2013 | #[allow(missing_docs)] // documentation missing in model
|
2014 + | /* StructureGenerator.kt:166 */
|
1439 2015 | pub fn range_integer_label(&self) -> i32 {
|
2016 + | /* StructureGenerator.kt:168 */
|
1440 2017 | self.range_integer_label
|
2018 + | /* StructureGenerator.kt:166 */
|
1441 2019 | }
|
2020 + | /* StructureGenerator.kt:231 */
|
1442 2021 | #[allow(missing_docs)] // documentation missing in model
|
2022 + | /* StructureGenerator.kt:166 */
|
1443 2023 | pub fn range_short_label(&self) -> i16 {
|
2024 + | /* StructureGenerator.kt:168 */
|
1444 2025 | self.range_short_label
|
2026 + | /* StructureGenerator.kt:166 */
|
1445 2027 | }
|
2028 + | /* StructureGenerator.kt:231 */
|
1446 2029 | #[allow(missing_docs)] // documentation missing in model
|
2030 + | /* StructureGenerator.kt:166 */
|
1447 2031 | pub fn range_long_label(&self) -> i64 {
|
2032 + | /* StructureGenerator.kt:168 */
|
1448 2033 | self.range_long_label
|
2034 + | /* StructureGenerator.kt:166 */
|
1449 2035 | }
|
2036 + | /* StructureGenerator.kt:231 */
|
1450 2037 | #[allow(missing_docs)] // documentation missing in model
|
2038 + | /* StructureGenerator.kt:166 */
|
1451 2039 | pub fn range_byte_label(&self) -> i8 {
|
2040 + | /* StructureGenerator.kt:168 */
|
1452 2041 | self.range_byte_label
|
2042 + | /* StructureGenerator.kt:166 */
|
1453 2043 | }
|
2044 + | /* StructureGenerator.kt:231 */
|
1454 2045 | #[allow(missing_docs)] // documentation missing in model
|
2046 + | /* StructureGenerator.kt:166 */
|
1455 2047 | pub fn enum_string_label(&self) -> &crate::model::EnumString {
|
2048 + | /* StructureGenerator.kt:172 */
|
1456 2049 | &self.enum_string_label
|
2050 + | /* StructureGenerator.kt:166 */
|
1457 2051 | }
|
2052 + | /* StructureGenerator.kt:231 */
|
1458 2053 | #[allow(missing_docs)] // documentation missing in model
|
2054 + | /* StructureGenerator.kt:166 */
|
1459 2055 | pub fn length_string_header_map(
|
1460 2056 | &self,
|
1461 2057 | ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
2058 + | /* StructureGenerator.kt:172 */
|
1462 2059 | &self.length_string_header_map
|
2060 + | /* StructureGenerator.kt:166 */
|
1463 2061 | }
|
2062 + | /* StructureGenerator.kt:231 */
|
1464 2063 | #[allow(missing_docs)] // documentation missing in model
|
2064 + | /* StructureGenerator.kt:166 */
|
1465 2065 | pub fn length_string_header(&self) -> ::std::option::Option<&str> {
|
2066 + | /* StructureGenerator.kt:169 */
|
1466 2067 | self.length_string_header.as_deref()
|
2068 + | /* StructureGenerator.kt:166 */
|
1467 2069 | }
|
2070 + | /* StructureGenerator.kt:231 */
|
1468 2071 | #[allow(missing_docs)] // documentation missing in model
|
2072 + | /* StructureGenerator.kt:166 */
|
1469 2073 | pub fn range_integer_header(&self) -> i32 {
|
2074 + | /* StructureGenerator.kt:168 */
|
1470 2075 | self.range_integer_header
|
2076 + | /* StructureGenerator.kt:166 */
|
1471 2077 | }
|
2078 + | /* StructureGenerator.kt:231 */
|
1472 2079 | #[allow(missing_docs)] // documentation missing in model
|
2080 + | /* StructureGenerator.kt:166 */
|
1473 2081 | pub fn range_short_header(&self) -> i16 {
|
2082 + | /* StructureGenerator.kt:168 */
|
1474 2083 | self.range_short_header
|
2084 + | /* StructureGenerator.kt:166 */
|
1475 2085 | }
|
2086 + | /* StructureGenerator.kt:231 */
|
1476 2087 | #[allow(missing_docs)] // documentation missing in model
|
2088 + | /* StructureGenerator.kt:166 */
|
1477 2089 | pub fn range_long_header(&self) -> i64 {
|
2090 + | /* StructureGenerator.kt:168 */
|
1478 2091 | self.range_long_header
|
2092 + | /* StructureGenerator.kt:166 */
|
1479 2093 | }
|
2094 + | /* StructureGenerator.kt:231 */
|
1480 2095 | #[allow(missing_docs)] // documentation missing in model
|
2096 + | /* StructureGenerator.kt:166 */
|
1481 2097 | pub fn range_byte_header(&self) -> i8 {
|
2098 + | /* StructureGenerator.kt:168 */
|
1482 2099 | self.range_byte_header
|
2100 + | /* StructureGenerator.kt:166 */
|
1483 2101 | }
|
2102 + | /* StructureGenerator.kt:231 */
|
1484 2103 | #[allow(missing_docs)] // documentation missing in model
|
2104 + | /* StructureGenerator.kt:166 */
|
1485 2105 | pub fn length_string_set_header(
|
1486 2106 | &self,
|
1487 2107 | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
2108 + | /* StructureGenerator.kt:170 */
|
1488 2109 | self.length_string_set_header.as_ref()
|
2110 + | /* StructureGenerator.kt:166 */
|
1489 2111 | }
|
2112 + | /* StructureGenerator.kt:231 */
|
1490 2113 | #[allow(missing_docs)] // documentation missing in model
|
2114 + | /* StructureGenerator.kt:166 */
|
1491 2115 | pub fn list_length_string_header(&self) -> ::std::option::Option<&[::std::string::String]> {
|
2116 + | /* StructureGenerator.kt:169 */
|
1492 2117 | self.list_length_string_header.as_deref()
|
2118 + | /* StructureGenerator.kt:166 */
|
1493 2119 | }
|
2120 + | /* StructureGenerator.kt:231 */
|
1494 2121 | #[allow(missing_docs)] // documentation missing in model
|
2122 + | /* StructureGenerator.kt:166 */
|
1495 2123 | pub fn length_list_pattern_string_header(
|
1496 2124 | &self,
|
1497 2125 | ) -> ::std::option::Option<&[::std::string::String]> {
|
2126 + | /* StructureGenerator.kt:169 */
|
1498 2127 | self.length_list_pattern_string_header.as_deref()
|
2128 + | /* StructureGenerator.kt:166 */
|
1499 2129 | }
|
2130 + | /* StructureGenerator.kt:231 */
|
1500 2131 | #[allow(missing_docs)] // documentation missing in model
|
2132 + | /* StructureGenerator.kt:166 */
|
1501 2133 | pub fn length_set_pattern_string_header(
|
1502 2134 | &self,
|
1503 2135 | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
2136 + | /* StructureGenerator.kt:170 */
|
1504 2137 | self.length_set_pattern_string_header.as_ref()
|
2138 + | /* StructureGenerator.kt:166 */
|
1505 2139 | }
|
2140 + | /* StructureGenerator.kt:231 */
|
1506 2141 | #[allow(missing_docs)] // documentation missing in model
|
2142 + | /* StructureGenerator.kt:166 */
|
1507 2143 | pub fn range_byte_set_header(&self) -> ::std::option::Option<&[i8]> {
|
2144 + | /* StructureGenerator.kt:169 */
|
1508 2145 | self.range_byte_set_header.as_deref()
|
2146 + | /* StructureGenerator.kt:166 */
|
1509 2147 | }
|
2148 + | /* StructureGenerator.kt:231 */
|
1510 2149 | #[allow(missing_docs)] // documentation missing in model
|
2150 + | /* StructureGenerator.kt:166 */
|
1511 2151 | pub fn range_short_set_header(&self) -> ::std::option::Option<&[i16]> {
|
2152 + | /* StructureGenerator.kt:169 */
|
1512 2153 | self.range_short_set_header.as_deref()
|
2154 + | /* StructureGenerator.kt:166 */
|
1513 2155 | }
|
2156 + | /* StructureGenerator.kt:231 */
|
1514 2157 | #[allow(missing_docs)] // documentation missing in model
|
2158 + | /* StructureGenerator.kt:166 */
|
1515 2159 | pub fn range_integer_set_header(&self) -> ::std::option::Option<&[i32]> {
|
2160 + | /* StructureGenerator.kt:169 */
|
1516 2161 | self.range_integer_set_header.as_deref()
|
2162 + | /* StructureGenerator.kt:166 */
|
1517 2163 | }
|
2164 + | /* StructureGenerator.kt:231 */
|
1518 2165 | #[allow(missing_docs)] // documentation missing in model
|
2166 + | /* StructureGenerator.kt:166 */
|
1519 2167 | pub fn range_long_set_header(&self) -> ::std::option::Option<&[i64]> {
|
2168 + | /* StructureGenerator.kt:169 */
|
1520 2169 | self.range_long_set_header.as_deref()
|
2170 + | /* StructureGenerator.kt:166 */
|
1521 2171 | }
|
2172 + | /* StructureGenerator.kt:231 */
|
1522 2173 | #[allow(missing_docs)] // documentation missing in model
|
2174 + | /* StructureGenerator.kt:166 */
|
1523 2175 | pub fn range_byte_list_header(&self) -> ::std::option::Option<&[i8]> {
|
2176 + | /* StructureGenerator.kt:169 */
|
1524 2177 | self.range_byte_list_header.as_deref()
|
2178 + | /* StructureGenerator.kt:166 */
|
1525 2179 | }
|
2180 + | /* StructureGenerator.kt:231 */
|
1526 2181 | #[allow(missing_docs)] // documentation missing in model
|
2182 + | /* StructureGenerator.kt:166 */
|
1527 2183 | pub fn range_short_list_header(&self) -> ::std::option::Option<&[i16]> {
|
2184 + | /* StructureGenerator.kt:169 */
|
1528 2185 | self.range_short_list_header.as_deref()
|
2186 + | /* StructureGenerator.kt:166 */
|
1529 2187 | }
|
2188 + | /* StructureGenerator.kt:231 */
|
1530 2189 | #[allow(missing_docs)] // documentation missing in model
|
2190 + | /* StructureGenerator.kt:166 */
|
1531 2191 | pub fn range_integer_list_header(&self) -> ::std::option::Option<&[i32]> {
|
2192 + | /* StructureGenerator.kt:169 */
|
1532 2193 | self.range_integer_list_header.as_deref()
|
2194 + | /* StructureGenerator.kt:166 */
|
1533 2195 | }
|
2196 + | /* StructureGenerator.kt:231 */
|
1534 2197 | #[allow(missing_docs)] // documentation missing in model
|
2198 + | /* StructureGenerator.kt:166 */
|
1535 2199 | pub fn range_long_list_header(&self) -> ::std::option::Option<&[i64]> {
|
2200 + | /* StructureGenerator.kt:169 */
|
1536 2201 | self.range_long_list_header.as_deref()
|
2202 + | /* StructureGenerator.kt:166 */
|
1537 2203 | }
|
2204 + | /* StructureGenerator.kt:231 */
|
1538 2205 | #[allow(missing_docs)] // documentation missing in model
|
2206 + | /* StructureGenerator.kt:166 */
|
1539 2207 | pub fn length_string_query(&self) -> ::std::option::Option<&str> {
|
2208 + | /* StructureGenerator.kt:169 */
|
1540 2209 | self.length_string_query.as_deref()
|
2210 + | /* StructureGenerator.kt:166 */
|
1541 2211 | }
|
2212 + | /* StructureGenerator.kt:231 */
|
1542 2213 | #[allow(missing_docs)] // documentation missing in model
|
2214 + | /* StructureGenerator.kt:166 */
|
1543 2215 | pub fn range_byte_query(&self) -> i8 {
|
2216 + | /* StructureGenerator.kt:168 */
|
1544 2217 | self.range_byte_query
|
2218 + | /* StructureGenerator.kt:166 */
|
1545 2219 | }
|
2220 + | /* StructureGenerator.kt:231 */
|
1546 2221 | #[allow(missing_docs)] // documentation missing in model
|
2222 + | /* StructureGenerator.kt:166 */
|
1547 2223 | pub fn range_short_query(&self) -> i16 {
|
2224 + | /* StructureGenerator.kt:168 */
|
1548 2225 | self.range_short_query
|
2226 + | /* StructureGenerator.kt:166 */
|
1549 2227 | }
|
2228 + | /* StructureGenerator.kt:231 */
|
1550 2229 | #[allow(missing_docs)] // documentation missing in model
|
2230 + | /* StructureGenerator.kt:166 */
|
1551 2231 | pub fn range_integer_query(&self) -> i32 {
|
2232 + | /* StructureGenerator.kt:168 */
|
1552 2233 | self.range_integer_query
|
2234 + | /* StructureGenerator.kt:166 */
|
1553 2235 | }
|
2236 + | /* StructureGenerator.kt:231 */
|
1554 2237 | #[allow(missing_docs)] // documentation missing in model
|
2238 + | /* StructureGenerator.kt:166 */
|
1555 2239 | pub fn range_long_query(&self) -> i64 {
|
2240 + | /* StructureGenerator.kt:168 */
|
1556 2241 | self.range_long_query
|
2242 + | /* StructureGenerator.kt:166 */
|
1557 2243 | }
|
2244 + | /* StructureGenerator.kt:231 */
|
1558 2245 | #[allow(missing_docs)] // documentation missing in model
|
2246 + | /* StructureGenerator.kt:166 */
|
1559 2247 | pub fn enum_string_query(&self) -> ::std::option::Option<&crate::model::EnumString> {
|
2248 + | /* StructureGenerator.kt:170 */
|
1560 2249 | self.enum_string_query.as_ref()
|
2250 + | /* StructureGenerator.kt:166 */
|
1561 2251 | }
|
2252 + | /* StructureGenerator.kt:231 */
|
1562 2253 | #[allow(missing_docs)] // documentation missing in model
|
2254 + | /* StructureGenerator.kt:166 */
|
1563 2255 | pub fn length_string_list_query(&self) -> ::std::option::Option<&[::std::string::String]> {
|
2256 + | /* StructureGenerator.kt:169 */
|
1564 2257 | self.length_string_list_query.as_deref()
|
2258 + | /* StructureGenerator.kt:166 */
|
1565 2259 | }
|
2260 + | /* StructureGenerator.kt:231 */
|
1566 2261 | #[allow(missing_docs)] // documentation missing in model
|
2262 + | /* StructureGenerator.kt:166 */
|
1567 2263 | pub fn length_list_pattern_string_query(
|
1568 2264 | &self,
|
1569 2265 | ) -> ::std::option::Option<&[::std::string::String]> {
|
2266 + | /* StructureGenerator.kt:169 */
|
1570 2267 | self.length_list_pattern_string_query.as_deref()
|
2268 + | /* StructureGenerator.kt:166 */
|
1571 2269 | }
|
2270 + | /* StructureGenerator.kt:231 */
|
1572 2271 | #[allow(missing_docs)] // documentation missing in model
|
2272 + | /* StructureGenerator.kt:166 */
|
1573 2273 | pub fn length_string_set_query(
|
1574 2274 | &self,
|
1575 2275 | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
2276 + | /* StructureGenerator.kt:170 */
|
1576 2277 | self.length_string_set_query.as_ref()
|
2278 + | /* StructureGenerator.kt:166 */
|
1577 2279 | }
|
2280 + | /* StructureGenerator.kt:231 */
|
1578 2281 | #[allow(missing_docs)] // documentation missing in model
|
2282 + | /* StructureGenerator.kt:166 */
|
1579 2283 | pub fn range_byte_list_query(&self) -> ::std::option::Option<&[i8]> {
|
2284 + | /* StructureGenerator.kt:169 */
|
1580 2285 | self.range_byte_list_query.as_deref()
|
2286 + | /* StructureGenerator.kt:166 */
|
1581 2287 | }
|
2288 + | /* StructureGenerator.kt:231 */
|
1582 2289 | #[allow(missing_docs)] // documentation missing in model
|
2290 + | /* StructureGenerator.kt:166 */
|
1583 2291 | pub fn range_short_list_query(&self) -> ::std::option::Option<&[i16]> {
|
2292 + | /* StructureGenerator.kt:169 */
|
1584 2293 | self.range_short_list_query.as_deref()
|
2294 + | /* StructureGenerator.kt:166 */
|
1585 2295 | }
|
2296 + | /* StructureGenerator.kt:231 */
|
1586 2297 | #[allow(missing_docs)] // documentation missing in model
|
2298 + | /* StructureGenerator.kt:166 */
|
1587 2299 | pub fn range_integer_list_query(&self) -> ::std::option::Option<&[i32]> {
|
2300 + | /* StructureGenerator.kt:169 */
|
1588 2301 | self.range_integer_list_query.as_deref()
|
2302 + | /* StructureGenerator.kt:166 */
|
1589 2303 | }
|
2304 + | /* StructureGenerator.kt:231 */
|
1590 2305 | #[allow(missing_docs)] // documentation missing in model
|
2306 + | /* StructureGenerator.kt:166 */
|
1591 2307 | pub fn range_long_list_query(&self) -> ::std::option::Option<&[i64]> {
|
2308 + | /* StructureGenerator.kt:169 */
|
1592 2309 | self.range_long_list_query.as_deref()
|
2310 + | /* StructureGenerator.kt:166 */
|
1593 2311 | }
|
2312 + | /* StructureGenerator.kt:231 */
|
1594 2313 | #[allow(missing_docs)] // documentation missing in model
|
2314 + | /* StructureGenerator.kt:166 */
|
1595 2315 | pub fn range_byte_set_query(&self) -> ::std::option::Option<&[i8]> {
|
2316 + | /* StructureGenerator.kt:169 */
|
1596 2317 | self.range_byte_set_query.as_deref()
|
2318 + | /* StructureGenerator.kt:166 */
|
1597 2319 | }
|
2320 + | /* StructureGenerator.kt:231 */
|
1598 2321 | #[allow(missing_docs)] // documentation missing in model
|
2322 + | /* StructureGenerator.kt:166 */
|
1599 2323 | pub fn range_short_set_query(&self) -> ::std::option::Option<&[i16]> {
|
2324 + | /* StructureGenerator.kt:169 */
|
1600 2325 | self.range_short_set_query.as_deref()
|
2326 + | /* StructureGenerator.kt:166 */
|
1601 2327 | }
|
2328 + | /* StructureGenerator.kt:231 */
|
1602 2329 | #[allow(missing_docs)] // documentation missing in model
|
2330 + | /* StructureGenerator.kt:166 */
|
1603 2331 | pub fn range_integer_set_query(&self) -> ::std::option::Option<&[i32]> {
|
2332 + | /* StructureGenerator.kt:169 */
|
1604 2333 | self.range_integer_set_query.as_deref()
|
2334 + | /* StructureGenerator.kt:166 */
|
1605 2335 | }
|
2336 + | /* StructureGenerator.kt:231 */
|
1606 2337 | #[allow(missing_docs)] // documentation missing in model
|
2338 + | /* StructureGenerator.kt:166 */
|
1607 2339 | pub fn range_long_set_query(&self) -> ::std::option::Option<&[i64]> {
|
2340 + | /* StructureGenerator.kt:169 */
|
1608 2341 | self.range_long_set_query.as_deref()
|
2342 + | /* StructureGenerator.kt:166 */
|
1609 2343 | }
|
2344 + | /* StructureGenerator.kt:231 */
|
1610 2345 | #[allow(missing_docs)] // documentation missing in model
|
2346 + | /* StructureGenerator.kt:166 */
|
1611 2347 | pub fn enum_string_list_query(&self) -> ::std::option::Option<&[crate::model::EnumString]> {
|
2348 + | /* StructureGenerator.kt:169 */
|
1612 2349 | self.enum_string_list_query.as_deref()
|
2350 + | /* StructureGenerator.kt:166 */
|
1613 2351 | }
|
2352 + | /* StructureGenerator.kt:135 */
|
1614 2353 | }
|
2354 + | /* RustType.kt:516 */
|
1615 2355 | #[allow(clippy::new_without_default)]
|
2356 + | /* RustType.kt:516 */
|
1616 2357 | #[allow(clippy::too_many_arguments)]
|
2358 + | /* RustType.kt:516 */
|
1617 2359 | #[::pyo3::pymethods]
|
2360 + | /* PythonServerStructureGenerator.kt:88 */
|
1618 2361 | impl ConstrainedHttpBoundShapesOperationInput {
|
1619 2362 | #[new]
|
1620 2363 | pub fn new(
|
1621 2364 | length_string_label: ::std::string::String,
|
1622 2365 | range_integer_label: i32,
|
1623 2366 | range_short_label: i16,
|
1624 2367 | range_long_label: i64,
|
1625 2368 | range_byte_label: i8,
|
1626 2369 | enum_string_label: crate::model::EnumString,
|
1627 2370 | length_string_header_map: ::std::collections::HashMap<
|
1628 2371 | ::std::string::String,
|
1629 2372 | ::std::string::String,
|
1630 2373 | >,
|
1631 - | length_string_header: ::std::option::Option<::std::string::String>,
|
1632 2374 | range_integer_header: i32,
|
1633 2375 | range_short_header: i16,
|
1634 2376 | range_long_header: i64,
|
1635 2377 | range_byte_header: i8,
|
2378 + | range_byte_query: i8,
|
2379 + | range_short_query: i16,
|
2380 + | range_integer_query: i32,
|
2381 + | range_long_query: i64,
|
2382 + | length_string_header: ::std::option::Option<::std::string::String>,
|
1636 2383 | length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1637 2384 | list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1638 2385 | length_list_pattern_string_header: ::std::option::Option<
|
1639 2386 | ::std::vec::Vec<::std::string::String>,
|
1640 2387 | >,
|
1641 2388 | length_set_pattern_string_header: ::std::option::Option<
|
1642 2389 | ::std::vec::Vec<::std::string::String>,
|
1643 2390 | >,
|
1644 2391 | range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1645 2392 | range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1646 2393 | range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1647 2394 | range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1648 2395 | range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1649 2396 | range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1650 2397 | range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1651 2398 | range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1652 2399 | length_string_query: ::std::option::Option<::std::string::String>,
|
1653 - | range_byte_query: i8,
|
1654 - | range_short_query: i16,
|
1655 - | range_integer_query: i32,
|
1656 - | range_long_query: i64,
|
1657 2400 | enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
1658 2401 | length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1659 2402 | length_list_pattern_string_query: ::std::option::Option<
|
1660 2403 | ::std::vec::Vec<::std::string::String>,
|
1661 2404 | >,
|
1662 2405 | length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1663 2406 | range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1664 2407 | range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1665 2408 | range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1666 2409 | range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1667 2410 | range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1668 2411 | range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1669 2412 | range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1670 2413 | range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1671 2414 | enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
1672 2415 | ) -> Self {
|
1673 2416 | Self {
|
1674 2417 | length_string_label,
|
1675 2418 | range_integer_label,
|
1676 2419 | range_short_label,
|
1677 2420 | range_long_label,
|
1678 2421 | range_byte_label,
|
1679 2422 | enum_string_label,
|
1680 2423 | length_string_header_map,
|
1681 - | length_string_header,
|
1682 2424 | range_integer_header,
|
1683 2425 | range_short_header,
|
1684 2426 | range_long_header,
|
1685 2427 | range_byte_header,
|
2428 + | range_byte_query,
|
2429 + | range_short_query,
|
2430 + | range_integer_query,
|
2431 + | range_long_query,
|
2432 + | length_string_header,
|
1686 2433 | length_string_set_header,
|
1687 2434 | list_length_string_header,
|
1688 2435 | length_list_pattern_string_header,
|
1689 2436 | length_set_pattern_string_header,
|
1690 2437 | range_byte_set_header,
|
1691 2438 | range_short_set_header,
|
1692 2439 | range_integer_set_header,
|
1693 2440 | range_long_set_header,
|
1694 2441 | range_byte_list_header,
|
1695 2442 | range_short_list_header,
|
1696 2443 | range_integer_list_header,
|
1697 2444 | range_long_list_header,
|
1698 2445 | length_string_query,
|
1699 - | range_byte_query,
|
1700 - | range_short_query,
|
1701 - | range_integer_query,
|
1702 - | range_long_query,
|
1703 2446 | enum_string_query,
|
1704 2447 | length_string_list_query,
|
1705 2448 | length_list_pattern_string_query,
|
1706 2449 | length_string_set_query,
|
1707 2450 | range_byte_list_query,
|
1708 2451 | range_short_list_query,
|
1709 2452 | range_integer_list_query,
|
1710 2453 | range_long_list_query,
|
1711 2454 | range_byte_set_query,
|
1712 2455 | range_short_set_query,
|
1713 2456 | range_integer_set_query,
|
1714 2457 | range_long_set_query,
|
1715 2458 | enum_string_list_query,
|
1716 2459 | }
|
1717 2460 | }
|
1718 2461 | fn __repr__(&self) -> String {
|
1719 2462 | format!("{self:?}")
|
1720 2463 | }
|
1721 2464 | fn __str__(&self) -> String {
|
1722 2465 | format!("{self:?}")
|
1723 2466 | }
|
1724 2467 | }
|
2468 + | /* PythonServerStructureGenerator.kt:111 */
|
1725 2469 | impl<'source> ::pyo3::FromPyObject<'source>
|
1726 2470 | for std::boxed::Box<ConstrainedHttpBoundShapesOperationInput>
|
1727 2471 | {
|
1728 2472 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1729 2473 | ob.extract::<ConstrainedHttpBoundShapesOperationInput>()
|
1730 2474 | .map(Box::new)
|
1731 2475 | }
|
1732 2476 | }
|
1733 2477 |
|
1734 2478 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1735 2479 | for std::boxed::Box<ConstrainedHttpBoundShapesOperationInput>
|
1736 2480 | {
|
1737 2481 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1738 2482 | (*self).into_py(py)
|
1739 2483 | }
|
1740 2484 | }
|
2485 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1741 2486 | impl crate::constrained::Constrained for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
1742 2487 | type Unconstrained =
|
1743 2488 | crate::input::constrained_http_bound_shapes_operation_input_internal::Builder;
|
1744 2489 | }
|
2490 + | /* ServerCodegenVisitor.kt:370 */
|
1745 2491 | impl ConstrainedHttpBoundShapesOperationInput {
|
1746 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2492 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2493 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1747 2494 | pub fn builder() -> crate::input::constrained_http_bound_shapes_operation_input::Builder {
|
2495 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1748 2496 | crate::input::constrained_http_bound_shapes_operation_input::Builder::default()
|
2497 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1749 2498 | }
|
2499 + | /* ServerCodegenVisitor.kt:370 */
|
1750 2500 | }
|
1751 2501 |
|
2502 + | /* RustType.kt:516 */
|
1752 2503 | #[::pyo3::pyclass]
|
2504 + | /* PythonServerStructureGenerator.kt:63 */
|
1753 2505 | /// :rtype None:
|
2506 + | /* StructureGenerator.kt:197 */
|
1754 2507 | #[allow(missing_docs)] // documentation missing in model
|
2508 + | /* RustType.kt:516 */
|
1755 2509 | #[derive(
|
1756 2510 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1757 2511 | )]
|
1758 - | pub struct ConstrainedShapesOnlyInOutputOperationInput {}
|
2512 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedShapesOnlyInOutputOperationInput {/* StructureGenerator.kt:201 */}
|
2513 + | /* RustType.kt:516 */
|
1759 2514 | #[allow(clippy::new_without_default)]
|
2515 + | /* RustType.kt:516 */
|
1760 2516 | #[allow(clippy::too_many_arguments)]
|
2517 + | /* RustType.kt:516 */
|
1761 2518 | #[::pyo3::pymethods]
|
2519 + | /* PythonServerStructureGenerator.kt:88 */
|
1762 2520 | impl ConstrainedShapesOnlyInOutputOperationInput {
|
1763 2521 | #[new]
|
1764 2522 | pub fn new() -> Self {
|
1765 2523 | Self {}
|
1766 2524 | }
|
1767 2525 | fn __repr__(&self) -> String {
|
1768 2526 | format!("{self:?}")
|
1769 2527 | }
|
1770 2528 | fn __str__(&self) -> String {
|
1771 2529 | format!("{self:?}")
|
1772 2530 | }
|
1773 2531 | }
|
2532 + | /* PythonServerStructureGenerator.kt:111 */
|
1774 2533 | impl<'source> ::pyo3::FromPyObject<'source>
|
1775 2534 | for std::boxed::Box<ConstrainedShapesOnlyInOutputOperationInput>
|
1776 2535 | {
|
1777 2536 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1778 2537 | ob.extract::<ConstrainedShapesOnlyInOutputOperationInput>()
|
1779 2538 | .map(Box::new)
|
1780 2539 | }
|
1781 2540 | }
|
1782 2541 |
|
1783 2542 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1784 2543 | for std::boxed::Box<ConstrainedShapesOnlyInOutputOperationInput>
|
1785 2544 | {
|
1786 2545 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1787 2546 | (*self).into_py(py)
|
1788 2547 | }
|
1789 2548 | }
|
2549 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1790 2550 | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
1791 2551 | type Unconstrained =
|
1792 2552 | crate::input::constrained_shapes_only_in_output_operation_input_internal::Builder;
|
1793 2553 | }
|
2554 + | /* ServerCodegenVisitor.kt:370 */
|
1794 2555 | impl ConstrainedShapesOnlyInOutputOperationInput {
|
1795 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2556 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2557 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1796 2558 | pub fn builder() -> crate::input::constrained_shapes_only_in_output_operation_input::Builder {
|
2559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1797 2560 | crate::input::constrained_shapes_only_in_output_operation_input::Builder::default()
|
2561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1798 2562 | }
|
2563 + | /* ServerCodegenVisitor.kt:370 */
|
1799 2564 | }
|
1800 2565 |
|
2566 + | /* RustType.kt:516 */
|
1801 2567 | #[::pyo3::pyclass]
|
2568 + | /* PythonServerStructureGenerator.kt:63 */
|
1802 2569 | /// :param con_a constraints_without_public_constrained_types.model.ConA:
|
1803 2570 | /// :rtype None:
|
2571 + | /* StructureGenerator.kt:197 */
|
1804 2572 | #[allow(missing_docs)] // documentation missing in model
|
2573 + | /* RustType.kt:516 */
|
1805 2574 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1806 - | pub struct ConstrainedShapesOperationInput {
|
2575 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedShapesOperationInput {
|
2576 + | /* RustType.kt:516 */
|
1807 2577 | #[pyo3(get, set)]
|
2578 + | /* PythonServerStructureGenerator.kt:80 */
|
1808 2579 | /// :type constraints_without_public_constrained_types.model.ConA:
|
2580 + | /* StructureGenerator.kt:231 */
|
1809 2581 | #[allow(missing_docs)] // documentation missing in model
|
1810 2582 | pub con_a: crate::model::ConA,
|
2583 + | /* StructureGenerator.kt:201 */
|
1811 2584 | }
|
2585 + | /* StructureGenerator.kt:135 */
|
1812 2586 | impl ConstrainedShapesOperationInput {
|
2587 + | /* StructureGenerator.kt:231 */
|
1813 2588 | #[allow(missing_docs)] // documentation missing in model
|
2589 + | /* StructureGenerator.kt:166 */
|
1814 2590 | pub fn con_a(&self) -> &crate::model::ConA {
|
2591 + | /* StructureGenerator.kt:172 */
|
1815 2592 | &self.con_a
|
2593 + | /* StructureGenerator.kt:166 */
|
1816 2594 | }
|
2595 + | /* StructureGenerator.kt:135 */
|
1817 2596 | }
|
2597 + | /* RustType.kt:516 */
|
1818 2598 | #[allow(clippy::new_without_default)]
|
2599 + | /* RustType.kt:516 */
|
1819 2600 | #[allow(clippy::too_many_arguments)]
|
2601 + | /* RustType.kt:516 */
|
1820 2602 | #[::pyo3::pymethods]
|
2603 + | /* PythonServerStructureGenerator.kt:88 */
|
1821 2604 | impl ConstrainedShapesOperationInput {
|
1822 2605 | #[new]
|
1823 2606 | pub fn new(con_a: crate::model::ConA) -> Self {
|
1824 2607 | Self { con_a }
|
1825 2608 | }
|
1826 2609 | fn __repr__(&self) -> String {
|
1827 2610 | format!("{self:?}")
|
1828 2611 | }
|
1829 2612 | fn __str__(&self) -> String {
|
1830 2613 | format!("{self:?}")
|
1831 2614 | }
|
1832 2615 | }
|
2616 + | /* PythonServerStructureGenerator.kt:111 */
|
1833 2617 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ConstrainedShapesOperationInput> {
|
1834 2618 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1835 2619 | ob.extract::<ConstrainedShapesOperationInput>()
|
1836 2620 | .map(Box::new)
|
1837 2621 | }
|
1838 2622 | }
|
1839 2623 |
|
1840 2624 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ConstrainedShapesOperationInput> {
|
1841 2625 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1842 2626 | (*self).into_py(py)
|
1843 2627 | }
|
1844 2628 | }
|
2629 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1845 2630 | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOperationInput {
|
1846 2631 | type Unconstrained = crate::input::constrained_shapes_operation_input_internal::Builder;
|
1847 2632 | }
|
2633 + | /* ServerCodegenVisitor.kt:370 */
|
1848 2634 | impl ConstrainedShapesOperationInput {
|
1849 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
2635 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
2636 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1850 2637 | pub fn builder() -> crate::input::constrained_shapes_operation_input::Builder {
|
2638 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1851 2639 | crate::input::constrained_shapes_operation_input::Builder::default()
|
2640 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1852 2641 | }
|
2642 + | /* ServerCodegenVisitor.kt:370 */
|
1853 2643 | }
|
1854 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
2644 + | /// /* ServerBuilderGenerator.kt:171 */See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1855 2645 | pub(crate) mod event_streams_operation_input_internal {
|
1856 2646 |
|
2647 + | /* RustType.kt:516 */
|
1857 2648 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1858 - | /// Holds one variant for each of the ways the builder can fail.
|
2649 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2650 + | /* RustType.kt:516 */
|
1859 2651 | #[non_exhaustive]
|
2652 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1860 2653 | #[allow(clippy::enum_variant_names)]
|
1861 2654 | pub(crate) enum ConstraintViolation {
|
1862 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
2655 + | /// /* ServerBuilderConstraintViolations.kt:138 */`events` was not provided but it is required when building `EventStreamsOperationInput`.
|
2656 + | /* ServerBuilderConstraintViolations.kt:143 */
|
1863 2657 | MissingEvents,
|
2658 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1864 2659 | }
|
2660 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1865 2661 | impl ::std::fmt::Display for ConstraintViolation {
|
2662 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1866 2663 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2664 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1867 2665 | match self {
|
1868 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1869 - | }
|
2666 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
2667 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2668 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1870 2669 | }
|
2670 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1871 2671 | }
|
2672 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1872 2673 | impl ::std::error::Error for ConstraintViolation {}
|
2674 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1873 2675 | impl ConstraintViolation {
|
1874 2676 | pub(crate) fn as_validation_exception_field(
|
1875 2677 | self,
|
1876 2678 | path: ::std::string::String,
|
1877 2679 | ) -> crate::model::ValidationExceptionField {
|
1878 2680 | match self {
|
1879 2681 | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
1880 2682 | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
1881 2683 | path: path + "/events",
|
1882 2684 | },
|
1883 2685 | }
|
1884 2686 | }
|
1885 2687 | }
|
2688 + | /* ServerBuilderGenerator.kt:234 */
|
1886 2689 | impl ::std::convert::From<ConstraintViolation>
|
1887 2690 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1888 2691 | {
|
1889 2692 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1890 2693 | let first_validation_exception_field =
|
1891 2694 | constraint_violation.as_validation_exception_field("".to_owned());
|
1892 2695 | let validation_exception = crate::error::ValidationException {
|
1893 2696 | message: format!(
|
1894 2697 | "1 validation error detected. {}",
|
1895 2698 | &first_validation_exception_field.message
|
1896 2699 | ),
|
1897 2700 | field_list: Some(vec![first_validation_exception_field]),
|
1898 2701 | };
|
1899 2702 | Self::ConstraintViolation(
|
1900 2703 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1901 2704 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1902 2705 | )
|
1903 2706 | }
|
1904 2707 | }
|
2708 + | /* ServerBuilderGenerator.kt:244 */
|
1905 2709 | impl ::std::convert::From<Builder>
|
1906 2710 | for crate::constrained::MaybeConstrained<crate::input::EventStreamsOperationInput>
|
1907 2711 | {
|
1908 2712 | fn from(builder: Builder) -> Self {
|
1909 2713 | Self::Unconstrained(builder)
|
1910 2714 | }
|
1911 2715 | }
|
2716 + | /* ServerBuilderGenerator.kt:446 */
|
1912 2717 | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
1913 2718 | type Error = ConstraintViolation;
|
1914 2719 |
|
1915 2720 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1916 2721 | builder.build()
|
1917 2722 | }
|
1918 2723 | }
|
1919 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
2724 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
2725 + | /* RustType.kt:516 */
|
1920 2726 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2727 + | /* ServerBuilderGenerator.kt:211 */
|
1921 2728 | pub(crate) struct Builder {
|
2729 + | /* ServerBuilderGenerator.kt:308 */
|
1922 2730 | pub(crate) events: ::std::option::Option<
|
1923 2731 | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1924 2732 | >,
|
2733 + | /* ServerBuilderGenerator.kt:211 */
|
1925 2734 | }
|
2735 + | /* ServerBuilderGenerator.kt:215 */
|
1926 2736 | impl Builder {
|
2737 + | /* ServerBuilderGenerator.kt:426 */
|
1927 2738 | #[allow(missing_docs)] // documentation missing in model
|
2739 + | /* ServerBuilderGenerator.kt:428 */
|
1928 2740 | pub(crate) fn set_events(
|
1929 2741 | mut self,
|
1930 2742 | input: impl ::std::convert::Into<
|
1931 2743 | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1932 2744 | >,
|
1933 2745 | ) -> Self {
|
2746 + | /* ServerBuilderGenerator.kt:429 */
|
1934 2747 | self.events = Some(input.into());
|
1935 2748 | self
|
2749 + | /* ServerBuilderGenerator.kt:428 */
|
1936 2750 | }
|
1937 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1938 - | ///
|
2751 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
2752 + | /// /* ServerBuilderGenerator.kt:260 */
|
1939 2753 | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
1940 2754 | ///
|
2755 + | /* ServerBuilderGenerator.kt:271 */
|
1941 2756 | pub fn build(
|
1942 2757 | self,
|
1943 2758 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1944 2759 | self.build_enforcing_all_constraints()
|
1945 2760 | }
|
2761 + | /* ServerBuilderGenerator.kt:283 */
|
1946 2762 | fn build_enforcing_all_constraints(
|
1947 2763 | self,
|
1948 2764 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1949 - | Ok(crate::input::EventStreamsOperationInput {
|
1950 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
1951 - | })
|
2765 + | /* ServerBuilderGenerator.kt:287 */
|
2766 + | Ok(
|
2767 + | /* ServerBuilderGenerator.kt:542 */
|
2768 + | crate::input::EventStreamsOperationInput {
|
2769 + | /* ServerBuilderGenerator.kt:546 */
|
2770 + | events: self
|
2771 + | .events
|
2772 + | /* ServerBuilderGenerator.kt:569 */
|
2773 + | .ok_or(ConstraintViolation::MissingEvents)?,
|
2774 + | /* ServerBuilderGenerator.kt:542 */
|
2775 + | }, /* ServerBuilderGenerator.kt:287 */
|
2776 + | )
|
2777 + | /* ServerBuilderGenerator.kt:283 */
|
1952 2778 | }
|
2779 + | /* ServerBuilderGenerator.kt:215 */
|
1953 2780 | }
|
2781 + |
|
2782 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1954 2783 | }
|
1955 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
2784 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1956 2785 | pub mod event_streams_operation_input {
|
1957 2786 |
|
2787 + | /* RustType.kt:516 */
|
1958 2788 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1959 - | /// Holds one variant for each of the ways the builder can fail.
|
1960 - |
|
2789 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2790 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1961 2791 | #[allow(clippy::enum_variant_names)]
|
1962 2792 | pub enum ConstraintViolation {
|
1963 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
2793 + | /// /* ServerBuilderConstraintViolations.kt:138 */`events` was not provided but it is required when building `EventStreamsOperationInput`.
|
2794 + | /* ServerBuilderConstraintViolations.kt:143 */
|
1964 2795 | MissingEvents,
|
2796 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1965 2797 | }
|
2798 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1966 2799 | impl ::std::fmt::Display for ConstraintViolation {
|
2800 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1967 2801 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2802 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1968 2803 | match self {
|
1969 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1970 - | }
|
2804 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
2805 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2806 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1971 2807 | }
|
2808 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1972 2809 | }
|
2810 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1973 2811 | impl ::std::error::Error for ConstraintViolation {}
|
2812 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
1974 2813 | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
1975 2814 | type Error = ConstraintViolation;
|
1976 2815 |
|
1977 2816 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1978 2817 | builder.build()
|
1979 2818 | }
|
1980 2819 | }
|
1981 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
2820 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
2821 + | /* RustType.kt:516 */
|
1982 2822 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2823 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1983 2824 | pub struct Builder {
|
2825 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1984 2826 | pub(crate) events: ::std::option::Option<
|
1985 2827 | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1986 2828 | >,
|
2829 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1987 2830 | }
|
2831 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1988 2832 | impl Builder {
|
2833 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1989 2834 | #[allow(missing_docs)] // documentation missing in model
|
2835 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1990 2836 | pub fn events(
|
1991 2837 | mut self,
|
1992 2838 | input: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1993 2839 | ) -> Self {
|
1994 - | self.events = Some(input);
|
2840 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2841 + | self.events =
|
2842 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
2843 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2844 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
2845 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1995 2846 | self
|
2847 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1996 2848 | }
|
1997 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1998 - | ///
|
2849 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
2850 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
1999 2851 | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if you do not provide a value for all non-`Option`al members.
|
2000 2852 | ///
|
2853 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2001 2854 | pub fn build(
|
2002 2855 | self,
|
2003 2856 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
2004 2857 | self.build_enforcing_required_and_enum_traits()
|
2005 2858 | }
|
2859 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2006 2860 | fn build_enforcing_required_and_enum_traits(
|
2007 2861 | self,
|
2008 2862 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
2009 - | Ok(crate::input::EventStreamsOperationInput {
|
2010 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
2011 - | })
|
2863 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
2864 + | Ok(
|
2865 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2866 + | crate::input::EventStreamsOperationInput {
|
2867 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2868 + | events: self
|
2869 + | .events
|
2870 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
2871 + | .ok_or(ConstraintViolation::MissingEvents)?,
|
2872 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2873 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
2874 + | )
|
2875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2012 2876 | }
|
2877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2013 2878 | }
|
2879 + |
|
2880 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2014 2881 | }
|
2015 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2882 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2016 2883 | pub(crate) mod streaming_blob_operation_input_internal {
|
2017 2884 |
|
2885 + | /* ServerBuilderGenerator.kt:461 */
|
2018 2886 | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
2019 2887 | fn from(builder: Builder) -> Self {
|
2020 2888 | builder.build()
|
2021 2889 | }
|
2022 2890 | }
|
2023 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2891 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2892 + | /* RustType.kt:516 */
|
2024 2893 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2894 + | /* ServerBuilderGenerator.kt:211 */
|
2025 2895 | pub(crate) struct Builder {
|
2896 + | /* ServerBuilderGenerator.kt:308 */
|
2026 2897 | pub(crate) streaming_blob:
|
2027 2898 | ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
2899 + | /* ServerBuilderGenerator.kt:211 */
|
2028 2900 | }
|
2901 + | /* ServerBuilderGenerator.kt:215 */
|
2029 2902 | impl Builder {
|
2903 + | /* ServerBuilderGenerator.kt:426 */
|
2030 2904 | #[allow(missing_docs)] // documentation missing in model
|
2905 + | /* ServerBuilderGenerator.kt:428 */
|
2031 2906 | pub(crate) fn set_streaming_blob(
|
2032 2907 | mut self,
|
2033 2908 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::ByteStream>,
|
2034 2909 | ) -> Self {
|
2910 + | /* ServerBuilderGenerator.kt:429 */
|
2035 2911 | self.streaming_blob = Some(input.into());
|
2036 2912 | self
|
2913 + | /* ServerBuilderGenerator.kt:428 */
|
2037 2914 | }
|
2038 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2915 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2916 + | /* ServerBuilderGenerator.kt:271 */
|
2039 2917 | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
2040 2918 | self.build_enforcing_all_constraints()
|
2041 2919 | }
|
2920 + | /* ServerBuilderGenerator.kt:283 */
|
2042 2921 | fn build_enforcing_all_constraints(self) -> crate::input::StreamingBlobOperationInput {
|
2922 + | /* ServerBuilderGenerator.kt:542 */
|
2043 2923 | crate::input::StreamingBlobOperationInput {
|
2044 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
2924 + | /* ServerBuilderGenerator.kt:546 */
|
2925 + | streaming_blob: self
|
2926 + | .streaming_blob
|
2927 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
2928 + | .unwrap_or_default(),
|
2929 + | /* ServerBuilderGenerator.kt:542 */
|
2045 2930 | }
|
2931 + | /* ServerBuilderGenerator.kt:283 */
|
2046 2932 | }
|
2933 + | /* ServerBuilderGenerator.kt:215 */
|
2047 2934 | }
|
2935 + |
|
2936 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2048 2937 | }
|
2049 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2938 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2050 2939 | pub mod streaming_blob_operation_input {
|
2051 2940 |
|
2941 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2052 2942 | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
2053 2943 | fn from(builder: Builder) -> Self {
|
2054 2944 | builder.build()
|
2055 2945 | }
|
2056 2946 | }
|
2057 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2947 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2948 + | /* RustType.kt:516 */
|
2058 2949 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2950 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2059 2951 | pub struct Builder {
|
2952 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2060 2953 | pub(crate) streaming_blob:
|
2061 2954 | ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
2955 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2062 2956 | }
|
2957 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2063 2958 | impl Builder {
|
2959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2064 2960 | #[allow(missing_docs)] // documentation missing in model
|
2961 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2065 2962 | pub fn streaming_blob(
|
2066 2963 | mut self,
|
2067 2964 | input: ::aws_smithy_http_server_python::types::ByteStream,
|
2068 2965 | ) -> Self {
|
2069 - | self.streaming_blob = Some(input);
|
2966 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2967 + | self.streaming_blob =
|
2968 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
2969 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2970 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
2971 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2070 2972 | self
|
2973 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2071 2974 | }
|
2072 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2975 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2976 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2073 2977 | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
2074 2978 | self.build_enforcing_required_and_enum_traits()
|
2075 2979 | }
|
2980 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2076 2981 | fn build_enforcing_required_and_enum_traits(
|
2077 2982 | self,
|
2078 2983 | ) -> crate::input::StreamingBlobOperationInput {
|
2984 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2079 2985 | crate::input::StreamingBlobOperationInput {
|
2080 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
2986 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2987 + | streaming_blob: self
|
2988 + | .streaming_blob
|
2989 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
2990 + | .unwrap_or_default(),
|
2991 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2081 2992 | }
|
2993 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2082 2994 | }
|
2995 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2083 2996 | }
|
2997 + |
|
2998 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2084 2999 | }
|
2085 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
3000 + | /// /* ServerBuilderGenerator.kt:171 */See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2086 3001 | pub(crate) mod non_streaming_blob_operation_input_internal {
|
2087 3002 |
|
3003 + | /* ServerBuilderGenerator.kt:461 */
|
2088 3004 | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
2089 3005 | fn from(builder: Builder) -> Self {
|
2090 3006 | builder.build()
|
2091 3007 | }
|
2092 3008 | }
|
2093 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
3009 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
3010 + | /* RustType.kt:516 */
|
2094 3011 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3012 + | /* ServerBuilderGenerator.kt:211 */
|
2095 3013 | pub(crate) struct Builder {
|
3014 + | /* ServerBuilderGenerator.kt:308 */
|
2096 3015 | pub(crate) non_streaming_blob:
|
2097 3016 | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
3017 + | /* ServerBuilderGenerator.kt:211 */
|
2098 3018 | }
|
3019 + | /* ServerBuilderGenerator.kt:215 */
|
2099 3020 | impl Builder {
|
3021 + | /* ServerBuilderGenerator.kt:426 */
|
2100 3022 | #[allow(missing_docs)] // documentation missing in model
|
3023 + | /* ServerBuilderGenerator.kt:428 */
|
2101 3024 | pub(crate) fn set_non_streaming_blob(
|
2102 3025 | mut self,
|
2103 3026 | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
2104 3027 | ) -> Self {
|
3028 + | /* ServerBuilderGenerator.kt:429 */
|
2105 3029 | self.non_streaming_blob = input.map(|v| v.into());
|
2106 3030 | self
|
3031 + | /* ServerBuilderGenerator.kt:428 */
|
2107 3032 | }
|
2108 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
3033 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
3034 + | /* ServerBuilderGenerator.kt:271 */
|
2109 3035 | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
2110 3036 | self.build_enforcing_all_constraints()
|
2111 3037 | }
|
3038 + | /* ServerBuilderGenerator.kt:283 */
|
2112 3039 | fn build_enforcing_all_constraints(self) -> crate::input::NonStreamingBlobOperationInput {
|
3040 + | /* ServerBuilderGenerator.kt:542 */
|
2113 3041 | crate::input::NonStreamingBlobOperationInput {
|
3042 + | /* ServerBuilderGenerator.kt:546 */
|
2114 3043 | non_streaming_blob: self.non_streaming_blob,
|
3044 + | /* ServerBuilderGenerator.kt:542 */
|
2115 3045 | }
|
3046 + | /* ServerBuilderGenerator.kt:283 */
|
2116 3047 | }
|
3048 + | /* ServerBuilderGenerator.kt:215 */
|
2117 3049 | }
|
3050 + |
|
3051 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2118 3052 | }
|
2119 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
3053 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2120 3054 | pub mod non_streaming_blob_operation_input {
|
2121 3055 |
|
3056 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2122 3057 | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
2123 3058 | fn from(builder: Builder) -> Self {
|
2124 3059 | builder.build()
|
2125 3060 | }
|
2126 3061 | }
|
2127 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
3062 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
3063 + | /* RustType.kt:516 */
|
2128 3064 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3065 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2129 3066 | pub struct Builder {
|
3067 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2130 3068 | pub(crate) non_streaming_blob:
|
2131 3069 | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
3070 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2132 3071 | }
|
3072 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2133 3073 | impl Builder {
|
3074 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2134 3075 | #[allow(missing_docs)] // documentation missing in model
|
3076 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2135 3077 | pub fn non_streaming_blob(
|
2136 3078 | mut self,
|
2137 3079 | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
2138 3080 | ) -> Self {
|
2139 - | self.non_streaming_blob = input;
|
3081 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3082 + | self.non_streaming_blob =
|
3083 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3084 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2140 3085 | self
|
3086 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2141 3087 | }
|
2142 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
3088 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
3089 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2143 3090 | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
2144 3091 | self.build_enforcing_required_and_enum_traits()
|
2145 3092 | }
|
3093 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2146 3094 | fn build_enforcing_required_and_enum_traits(
|
2147 3095 | self,
|
2148 3096 | ) -> crate::input::NonStreamingBlobOperationInput {
|
3097 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2149 3098 | crate::input::NonStreamingBlobOperationInput {
|
3099 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2150 3100 | non_streaming_blob: self.non_streaming_blob,
|
3101 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2151 3102 | }
|
3103 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2152 3104 | }
|
3105 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2153 3106 | }
|
3107 + |
|
3108 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2154 3109 | }
|
2155 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
3110 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2156 3111 | pub(crate) mod query_params_targeting_map_of_enum_string_operation_input_internal {
|
2157 3112 |
|
3113 + | /* RustType.kt:516 */
|
2158 3114 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2159 - | /// Holds one variant for each of the ways the builder can fail.
|
3115 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3116 + | /* RustType.kt:516 */
|
2160 3117 | #[non_exhaustive]
|
3118 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2161 3119 | #[allow(clippy::enum_variant_names)]
|
2162 3120 | pub(crate) enum ConstraintViolation {
|
2163 - | /// Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
3121 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
3122 + | /* RustType.kt:516 */
|
2164 3123 | #[doc(hidden)]
|
3124 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2165 3125 | MapOfEnumString(crate::model::map_of_enum_string_internal::ConstraintViolation),
|
3126 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2166 3127 | }
|
3128 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2167 3129 | impl ::std::fmt::Display for ConstraintViolation {
|
3130 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2168 3131 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3132 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2169 3133 | match self {
|
2170 - | ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
2171 - | }
|
3134 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
3135 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3136 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2172 3137 | }
|
3138 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2173 3139 | }
|
3140 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2174 3141 | impl ::std::error::Error for ConstraintViolation {}
|
3142 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2175 3143 | impl ConstraintViolation {
|
2176 3144 | pub(crate) fn as_validation_exception_field(
|
2177 3145 | self,
|
2178 3146 | path: ::std::string::String,
|
2179 3147 | ) -> crate::model::ValidationExceptionField {
|
2180 3148 | match self {
|
2181 3149 | ConstraintViolation::MapOfEnumString(inner) => {
|
2182 3150 | inner.as_validation_exception_field(path + "/mapOfEnumString")
|
2183 3151 | }
|
2184 3152 | }
|
2185 3153 | }
|
2186 3154 | }
|
3155 + | /* ServerBuilderGenerator.kt:234 */
|
2187 3156 | impl ::std::convert::From<ConstraintViolation>
|
2188 3157 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2189 3158 | {
|
2190 3159 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2191 3160 | let first_validation_exception_field =
|
2192 3161 | constraint_violation.as_validation_exception_field("".to_owned());
|
2193 3162 | let validation_exception = crate::error::ValidationException {
|
2194 3163 | message: format!(
|
2195 3164 | "1 validation error detected. {}",
|
2196 3165 | &first_validation_exception_field.message
|
2197 3166 | ),
|
2198 3167 | field_list: Some(vec![first_validation_exception_field]),
|
2199 3168 | };
|
2200 3169 | Self::ConstraintViolation(
|
2201 3170 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2202 3171 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2203 3172 | )
|
2204 3173 | }
|
2205 3174 | }
|
3175 + | /* ServerBuilderGenerator.kt:244 */
|
2206 3176 | impl ::std::convert::From<Builder>
|
2207 3177 | for crate::constrained::MaybeConstrained<
|
2208 3178 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
2209 3179 | >
|
2210 3180 | {
|
2211 3181 | fn from(builder: Builder) -> Self {
|
2212 3182 | Self::Unconstrained(builder)
|
2213 3183 | }
|
2214 3184 | }
|
3185 + | /* ServerBuilderGenerator.kt:446 */
|
2215 3186 | impl ::std::convert::TryFrom<Builder>
|
2216 3187 | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
2217 3188 | {
|
2218 3189 | type Error = ConstraintViolation;
|
2219 3190 |
|
2220 3191 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2221 3192 | builder.build()
|
2222 3193 | }
|
2223 3194 | }
|
2224 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
3195 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
3196 + | /* RustType.kt:516 */
|
2225 3197 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3198 + | /* ServerBuilderGenerator.kt:211 */
|
2226 3199 | pub(crate) struct Builder {
|
3200 + | /* ServerBuilderGenerator.kt:308 */
|
2227 3201 | pub(crate) map_of_enum_string: ::std::option::Option<
|
2228 3202 | crate::constrained::MaybeConstrained<
|
2229 3203 | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
2230 3204 | >,
|
2231 3205 | >,
|
3206 + | /* ServerBuilderGenerator.kt:211 */
|
2232 3207 | }
|
3208 + | /* ServerBuilderGenerator.kt:215 */
|
2233 3209 | impl Builder {
|
3210 + | /* ServerBuilderGenerator.kt:426 */
|
2234 3211 | #[allow(missing_docs)] // documentation missing in model
|
3212 + | /* ServerBuilderGenerator.kt:428 */
|
2235 3213 | pub(crate) fn set_map_of_enum_string(
|
2236 3214 | mut self,
|
2237 3215 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained>>>,
|
2238 3216 | ) -> Self {
|
3217 + | /* ServerBuilderGenerator.kt:429 */
|
2239 3218 | self.map_of_enum_string = input.map(|v| v.into());
|
2240 3219 | self
|
3220 + | /* ServerBuilderGenerator.kt:428 */
|
2241 3221 | }
|
2242 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2243 - | ///
|
3222 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
3223 + | /// /* ServerBuilderGenerator.kt:260 */
|
2244 3224 | /// The builder fails to construct a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2245 3225 | ///
|
3226 + | /* ServerBuilderGenerator.kt:271 */
|
2246 3227 | pub fn build(
|
2247 3228 | self,
|
2248 3229 | ) -> Result<
|
2249 3230 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
2250 3231 | ConstraintViolation,
|
2251 3232 | > {
|
2252 3233 | self.build_enforcing_all_constraints()
|
2253 3234 | }
|
3235 + | /* ServerBuilderGenerator.kt:283 */
|
2254 3236 | fn build_enforcing_all_constraints(
|
2255 3237 | self,
|
2256 3238 | ) -> Result<
|
2257 3239 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
2258 3240 | ConstraintViolation,
|
2259 3241 | > {
|
3242 + | /* ServerBuilderGenerator.kt:287 */
|
2260 3243 | Ok(
|
3244 + | /* ServerBuilderGenerator.kt:542 */
|
2261 3245 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
3246 + | /* ServerBuilderGenerator.kt:546 */
|
2262 3247 | map_of_enum_string: self
|
2263 3248 | .map_of_enum_string
|
3249 + | /* ServerBuilderGenerator.kt:602 */
|
2264 3250 | .map(|v| match v {
|
2265 3251 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2266 3252 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2267 3253 | })
|
3254 + | /* ServerBuilderGenerator.kt:614 */
|
2268 3255 | .map(|res| {
|
2269 3256 | res.map(|v| v.into())
|
2270 3257 | .map_err(ConstraintViolation::MapOfEnumString)
|
2271 3258 | })
|
2272 3259 | .transpose()?,
|
2273 - | },
|
3260 + | /* ServerBuilderGenerator.kt:542 */
|
3261 + | }, /* ServerBuilderGenerator.kt:287 */
|
2274 3262 | )
|
3263 + | /* ServerBuilderGenerator.kt:283 */
|
2275 3264 | }
|
3265 + | /* ServerBuilderGenerator.kt:215 */
|
2276 3266 | }
|
3267 + |
|
3268 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2277 3269 | }
|
2278 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
3270 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2279 3271 | pub mod query_params_targeting_map_of_enum_string_operation_input {
|
2280 3272 |
|
3273 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2281 3274 | impl ::std::convert::From<Builder>
|
2282 3275 | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
2283 3276 | {
|
2284 3277 | fn from(builder: Builder) -> Self {
|
2285 3278 | builder.build()
|
2286 3279 | }
|
2287 3280 | }
|
2288 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
3281 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
3282 + | /* RustType.kt:516 */
|
2289 3283 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3284 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2290 3285 | pub struct Builder {
|
3286 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2291 3287 | pub(crate) map_of_enum_string: ::std::option::Option<
|
2292 3288 | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
2293 3289 | >,
|
3290 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2294 3291 | }
|
3292 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2295 3293 | impl Builder {
|
3294 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2296 3295 | #[allow(missing_docs)] // documentation missing in model
|
3296 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2297 3297 | pub fn map_of_enum_string(
|
2298 3298 | mut self,
|
2299 3299 | input: ::std::option::Option<
|
2300 3300 | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
2301 3301 | >,
|
2302 3302 | ) -> Self {
|
2303 - | self.map_of_enum_string = input;
|
3303 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3304 + | self.map_of_enum_string =
|
3305 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3306 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2304 3307 | self
|
3308 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2305 3309 | }
|
2306 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
3310 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
3311 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2307 3312 | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2308 3313 | self.build_enforcing_required_and_enum_traits()
|
2309 3314 | }
|
3315 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2310 3316 | fn build_enforcing_required_and_enum_traits(
|
2311 3317 | self,
|
2312 3318 | ) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
3319 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2313 3320 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
3321 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2314 3322 | map_of_enum_string: self.map_of_enum_string,
|
3323 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2315 3324 | }
|
3325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2316 3326 | }
|
3327 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2317 3328 | }
|
3329 + |
|
3330 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2318 3331 | }
|
2319 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
3332 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2320 3333 | pub(crate) mod http_prefix_headers_targeting_length_map_operation_input_internal {
|
2321 3334 |
|
3335 + | /* RustType.kt:516 */
|
2322 3336 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2323 - | /// Holds one variant for each of the ways the builder can fail.
|
3337 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3338 + | /* RustType.kt:516 */
|
2324 3339 | #[non_exhaustive]
|
3340 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2325 3341 | #[allow(clippy::enum_variant_names)]
|
2326 3342 | pub(crate) enum ConstraintViolation {
|
2327 - | /// Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
3343 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
3344 + | /* RustType.kt:516 */
|
2328 3345 | #[doc(hidden)]
|
3346 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2329 3347 | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
3348 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2330 3349 | }
|
3350 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2331 3351 | impl ::std::fmt::Display for ConstraintViolation {
|
3352 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2332 3353 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3354 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2333 3355 | match self {
|
2334 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
2335 - | }
|
3356 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
3357 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3358 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2336 3359 | }
|
3360 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2337 3361 | }
|
3362 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2338 3363 | impl ::std::error::Error for ConstraintViolation {}
|
3364 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2339 3365 | impl ConstraintViolation {
|
2340 3366 | pub(crate) fn as_validation_exception_field(
|
2341 3367 | self,
|
2342 3368 | path: ::std::string::String,
|
2343 3369 | ) -> crate::model::ValidationExceptionField {
|
2344 3370 | match self {
|
2345 3371 | ConstraintViolation::LengthMap(inner) => {
|
2346 3372 | inner.as_validation_exception_field(path + "/lengthMap")
|
2347 3373 | }
|
2348 3374 | }
|
2349 3375 | }
|
2350 3376 | }
|
3377 + | /* ServerBuilderGenerator.kt:234 */
|
2351 3378 | impl ::std::convert::From<ConstraintViolation>
|
2352 3379 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2353 3380 | {
|
2354 3381 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2355 3382 | let first_validation_exception_field =
|
2356 3383 | constraint_violation.as_validation_exception_field("".to_owned());
|
2357 3384 | let validation_exception = crate::error::ValidationException {
|
2358 3385 | message: format!(
|
2359 3386 | "1 validation error detected. {}",
|
2360 3387 | &first_validation_exception_field.message
|
2361 3388 | ),
|
2362 3389 | field_list: Some(vec![first_validation_exception_field]),
|
2363 3390 | };
|
2364 3391 | Self::ConstraintViolation(
|
2365 3392 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2366 3393 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2367 3394 | )
|
2368 3395 | }
|
2369 3396 | }
|
3397 + | /* ServerBuilderGenerator.kt:244 */
|
2370 3398 | impl ::std::convert::From<Builder>
|
2371 3399 | for crate::constrained::MaybeConstrained<
|
2372 3400 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
2373 3401 | >
|
2374 3402 | {
|
2375 3403 | fn from(builder: Builder) -> Self {
|
2376 3404 | Self::Unconstrained(builder)
|
2377 3405 | }
|
2378 3406 | }
|
3407 + | /* ServerBuilderGenerator.kt:446 */
|
2379 3408 | impl ::std::convert::TryFrom<Builder>
|
2380 3409 | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
2381 3410 | {
|
2382 3411 | type Error = ConstraintViolation;
|
2383 3412 |
|
2384 3413 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2385 3414 | builder.build()
|
2386 3415 | }
|
2387 3416 | }
|
2388 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
3417 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
3418 + | /* RustType.kt:516 */
|
2389 3419 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3420 + | /* ServerBuilderGenerator.kt:211 */
|
2390 3421 | pub(crate) struct Builder {
|
3422 + | /* ServerBuilderGenerator.kt:308 */
|
2391 3423 | pub(crate) length_map:
|
2392 3424 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
3425 + | /* ServerBuilderGenerator.kt:211 */
|
2393 3426 | }
|
3427 + | /* ServerBuilderGenerator.kt:215 */
|
2394 3428 | impl Builder {
|
3429 + | /* ServerBuilderGenerator.kt:426 */
|
2395 3430 | #[allow(missing_docs)] // documentation missing in model
|
3431 + | /* ServerBuilderGenerator.kt:428 */
|
2396 3432 | pub(crate) fn set_length_map(
|
2397 3433 | mut self,
|
2398 3434 | input: Option<
|
2399 3435 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
2400 3436 | >,
|
2401 3437 | ) -> Self {
|
3438 + | /* ServerBuilderGenerator.kt:429 */
|
2402 3439 | self.length_map = input.map(|v| v.into());
|
2403 3440 | self
|
3441 + | /* ServerBuilderGenerator.kt:428 */
|
2404 3442 | }
|
2405 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2406 - | ///
|
3443 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
3444 + | /// /* ServerBuilderGenerator.kt:260 */
|
2407 3445 | /// The builder fails to construct a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
2408 3446 | ///
|
3447 + | /* ServerBuilderGenerator.kt:271 */
|
2409 3448 | pub fn build(
|
2410 3449 | self,
|
2411 3450 | ) -> Result<
|
2412 3451 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
2413 3452 | ConstraintViolation,
|
2414 3453 | > {
|
2415 3454 | self.build_enforcing_all_constraints()
|
2416 3455 | }
|
3456 + | /* ServerBuilderGenerator.kt:283 */
|
2417 3457 | fn build_enforcing_all_constraints(
|
2418 3458 | self,
|
2419 3459 | ) -> Result<
|
2420 3460 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
2421 3461 | ConstraintViolation,
|
2422 3462 | > {
|
3463 + | /* ServerBuilderGenerator.kt:287 */
|
2423 3464 | Ok(
|
3465 + | /* ServerBuilderGenerator.kt:542 */
|
2424 3466 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
3467 + | /* ServerBuilderGenerator.kt:546 */
|
2425 3468 | length_map: self
|
2426 3469 | .length_map
|
3470 + | /* ServerBuilderGenerator.kt:602 */
|
2427 3471 | .map(|v| match v {
|
2428 3472 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2429 3473 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2430 3474 | })
|
3475 + | /* ServerBuilderGenerator.kt:614 */
|
2431 3476 | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
2432 3477 | .transpose()?
|
3478 + | /* ServerBuilderGenerator.kt:630 */
|
2433 3479 | .map(|v: crate::model::ConBMap| v.into()),
|
2434 - | },
|
3480 + | /* ServerBuilderGenerator.kt:542 */
|
3481 + | }, /* ServerBuilderGenerator.kt:287 */
|
2435 3482 | )
|
3483 + | /* ServerBuilderGenerator.kt:283 */
|
2436 3484 | }
|
3485 + | /* ServerBuilderGenerator.kt:215 */
|
2437 3486 | }
|
3487 + |
|
3488 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2438 3489 | }
|
2439 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
3490 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2440 3491 | pub mod http_prefix_headers_targeting_length_map_operation_input {
|
2441 3492 |
|
3493 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2442 3494 | impl ::std::convert::From<Builder>
|
2443 3495 | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
2444 3496 | {
|
2445 3497 | fn from(builder: Builder) -> Self {
|
2446 3498 | builder.build()
|
2447 3499 | }
|
2448 3500 | }
|
2449 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
3501 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
3502 + | /* RustType.kt:516 */
|
2450 3503 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3504 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2451 3505 | pub struct Builder {
|
3506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2452 3507 | pub(crate) length_map: ::std::option::Option<
|
2453 3508 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2454 3509 | >,
|
3510 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2455 3511 | }
|
3512 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2456 3513 | impl Builder {
|
3514 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2457 3515 | #[allow(missing_docs)] // documentation missing in model
|
3516 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2458 3517 | pub fn length_map(
|
2459 3518 | mut self,
|
2460 3519 | input: ::std::option::Option<
|
2461 3520 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2462 3521 | >,
|
2463 3522 | ) -> Self {
|
2464 - | self.length_map = input;
|
3523 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3524 + | self.length_map =
|
3525 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3526 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2465 3527 | self
|
3528 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2466 3529 | }
|
2467 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
3530 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
3531 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2468 3532 | pub fn build(self) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2469 3533 | self.build_enforcing_required_and_enum_traits()
|
2470 3534 | }
|
3535 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2471 3536 | fn build_enforcing_required_and_enum_traits(
|
2472 3537 | self,
|
2473 3538 | ) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
3539 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2474 3540 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
3541 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2475 3542 | length_map: self.length_map,
|
3543 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2476 3544 | }
|
3545 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2477 3546 | }
|
3547 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2478 3548 | }
|
3549 + |
|
3550 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2479 3551 | }
|
2480 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
3552 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2481 3553 | pub(crate) mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal {
|
2482 3554 |
|
3555 + | /* RustType.kt:516 */
|
2483 3556 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2484 - | /// Holds one variant for each of the ways the builder can fail.
|
3557 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3558 + | /* RustType.kt:516 */
|
2485 3559 | #[non_exhaustive]
|
3560 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2486 3561 | #[allow(clippy::enum_variant_names)]
|
2487 3562 | pub(crate) enum ConstraintViolation {
|
2488 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
3563 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
3564 + | /* RustType.kt:516 */
|
2489 3565 | #[doc(hidden)]
|
3566 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2490 3567 | MapOfLengthPatternString(
|
2491 3568 | crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation,
|
2492 3569 | ),
|
3570 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2493 3571 | }
|
3572 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2494 3573 | impl ::std::fmt::Display for ConstraintViolation {
|
3574 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2495 3575 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3576 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2496 3577 | match self {
|
2497 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
2498 - | }
|
3578 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
3579 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3580 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2499 3581 | }
|
3582 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2500 3583 | }
|
3584 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2501 3585 | impl ::std::error::Error for ConstraintViolation {}
|
3586 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2502 3587 | impl ConstraintViolation {
|
2503 3588 | pub(crate) fn as_validation_exception_field(
|
2504 3589 | self,
|
2505 3590 | path: ::std::string::String,
|
2506 3591 | ) -> crate::model::ValidationExceptionField {
|
2507 3592 | match self {
|
2508 3593 | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
2509 3594 | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
2510 3595 | }
|
2511 3596 | }
|
2512 3597 | }
|
2513 3598 | }
|
3599 + | /* ServerBuilderGenerator.kt:234 */
|
2514 3600 | impl ::std::convert::From<ConstraintViolation>
|
2515 3601 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2516 3602 | {
|
2517 3603 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2518 3604 | let first_validation_exception_field =
|
2519 3605 | constraint_violation.as_validation_exception_field("".to_owned());
|
2520 3606 | let validation_exception = crate::error::ValidationException {
|
2521 3607 | message: format!(
|
2522 3608 | "1 validation error detected. {}",
|
2523 3609 | &first_validation_exception_field.message
|
2524 3610 | ),
|
2525 3611 | field_list: Some(vec![first_validation_exception_field]),
|
2526 3612 | };
|
2527 3613 | Self::ConstraintViolation(
|
2528 3614 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2529 3615 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2530 3616 | )
|
2531 3617 | }
|
2532 3618 | }
|
3619 + | /* ServerBuilderGenerator.kt:244 */
|
2533 3620 | impl ::std::convert::From<Builder>
|
2534 3621 | for crate::constrained::MaybeConstrained<
|
2535 3622 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
2536 3623 | >
|
2537 3624 | {
|
2538 3625 | fn from(builder: Builder) -> Self {
|
2539 3626 | Self::Unconstrained(builder)
|
2540 3627 | }
|
2541 3628 | }
|
3629 + | /* ServerBuilderGenerator.kt:446 */
|
2542 3630 | impl ::std::convert::TryFrom<Builder>
|
2543 3631 | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2544 3632 | {
|
2545 3633 | type Error = ConstraintViolation;
|
2546 3634 |
|
2547 3635 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2548 3636 | builder.build()
|
2549 3637 | }
|
2550 3638 | }
|
2551 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
3639 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
3640 + | /* RustType.kt:516 */
|
2552 3641 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3642 + | /* ServerBuilderGenerator.kt:211 */
|
2553 3643 | pub(crate) struct Builder {
|
2554 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
|
2555 - | }
|
3644 + | /* 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>>,
|
3645 + | /* ServerBuilderGenerator.kt:211 */}
|
3646 + | /* ServerBuilderGenerator.kt:215 */
|
2556 3647 | impl Builder {
|
3648 + | /* ServerBuilderGenerator.kt:426 */
|
2557 3649 | #[allow(missing_docs)] // documentation missing in model
|
3650 + | /* ServerBuilderGenerator.kt:428 */
|
2558 3651 | pub(crate) fn set_map_of_length_pattern_string(
|
2559 3652 | mut self,
|
2560 3653 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>>,
|
2561 3654 | ) -> Self {
|
3655 + | /* ServerBuilderGenerator.kt:429 */
|
2562 3656 | self.map_of_length_pattern_string = input.map(|v| v.into());
|
2563 3657 | self
|
3658 + | /* ServerBuilderGenerator.kt:428 */
|
2564 3659 | }
|
2565 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2566 - | ///
|
3660 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
3661 + | /// /* ServerBuilderGenerator.kt:260 */
|
2567 3662 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2568 3663 | ///
|
3664 + | /* ServerBuilderGenerator.kt:271 */
|
2569 3665 | pub fn build(
|
2570 3666 | self,
|
2571 3667 | ) -> Result<
|
2572 3668 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
2573 3669 | ConstraintViolation,
|
2574 3670 | > {
|
2575 3671 | self.build_enforcing_all_constraints()
|
2576 3672 | }
|
3673 + | /* ServerBuilderGenerator.kt:283 */
|
2577 3674 | fn build_enforcing_all_constraints(
|
2578 3675 | self,
|
2579 3676 | ) -> Result<
|
2580 3677 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
2581 3678 | ConstraintViolation,
|
2582 3679 | > {
|
3680 + | /* ServerBuilderGenerator.kt:287 */
|
2583 3681 | Ok(
|
3682 + | /* ServerBuilderGenerator.kt:542 */
|
2584 3683 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
3684 + | /* ServerBuilderGenerator.kt:546 */
|
2585 3685 | map_of_length_pattern_string: self
|
2586 3686 | .map_of_length_pattern_string
|
3687 + | /* ServerBuilderGenerator.kt:602 */
|
2587 3688 | .map(|v| match v {
|
2588 3689 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2589 3690 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2590 3691 | })
|
3692 + | /* ServerBuilderGenerator.kt:614 */
|
2591 3693 | .map(|res| {
|
2592 3694 | res.map(|v| v.into())
|
2593 3695 | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
2594 3696 | })
|
2595 3697 | .transpose()?,
|
2596 - | },
|
3698 + | /* ServerBuilderGenerator.kt:542 */
|
3699 + | }, /* ServerBuilderGenerator.kt:287 */
|
2597 3700 | )
|
3701 + | /* ServerBuilderGenerator.kt:283 */
|
2598 3702 | }
|
3703 + | /* ServerBuilderGenerator.kt:215 */
|
2599 3704 | }
|
3705 + |
|
3706 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2600 3707 | }
|
2601 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
3708 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2602 3709 | pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input {
|
2603 3710 |
|
3711 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2604 3712 | impl ::std::convert::From<Builder>
|
2605 3713 | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2606 3714 | {
|
2607 3715 | fn from(builder: Builder) -> Self {
|
2608 3716 | builder.build()
|
2609 3717 | }
|
2610 3718 | }
|
2611 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
3719 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
3720 + | /* RustType.kt:516 */
|
2612 3721 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3722 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2613 3723 | pub struct Builder {
|
3724 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2614 3725 | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
2615 3726 | ::std::collections::HashMap<
|
2616 3727 | ::std::string::String,
|
2617 3728 | ::std::vec::Vec<::std::string::String>,
|
2618 3729 | >,
|
2619 3730 | >,
|
3731 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2620 3732 | }
|
3733 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2621 3734 | impl Builder {
|
3735 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2622 3736 | #[allow(missing_docs)] // documentation missing in model
|
3737 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2623 3738 | pub fn map_of_length_pattern_string(
|
2624 3739 | mut self,
|
2625 3740 | input: ::std::option::Option<
|
2626 3741 | ::std::collections::HashMap<
|
2627 3742 | ::std::string::String,
|
2628 3743 | ::std::vec::Vec<::std::string::String>,
|
2629 3744 | >,
|
2630 3745 | >,
|
2631 3746 | ) -> Self {
|
2632 - | self.map_of_length_pattern_string = input;
|
3747 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3748 + | self.map_of_length_pattern_string =
|
3749 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3750 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2633 3751 | self
|
3752 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2634 3753 | }
|
2635 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
3754 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
3755 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2636 3756 | pub fn build(
|
2637 3757 | self,
|
2638 3758 | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2639 3759 | {
|
2640 3760 | self.build_enforcing_required_and_enum_traits()
|
2641 3761 | }
|
3762 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2642 3763 | fn build_enforcing_required_and_enum_traits(
|
2643 3764 | self,
|
2644 3765 | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2645 3766 | {
|
3767 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2646 3768 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
3769 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2647 3770 | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
3771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2648 3772 | }
|
3773 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2649 3774 | }
|
3775 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2650 3776 | }
|
3777 + |
|
3778 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2651 3779 | }
|
2652 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
3780 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2653 3781 | pub(crate) mod query_params_targeting_map_of_length_pattern_string_operation_input_internal {
|
2654 3782 |
|
3783 + | /* RustType.kt:516 */
|
2655 3784 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2656 - | /// Holds one variant for each of the ways the builder can fail.
|
3785 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3786 + | /* RustType.kt:516 */
|
2657 3787 | #[non_exhaustive]
|
3788 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2658 3789 | #[allow(clippy::enum_variant_names)]
|
2659 3790 | pub(crate) enum ConstraintViolation {
|
2660 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
3791 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
3792 + | /* RustType.kt:516 */
|
2661 3793 | #[doc(hidden)]
|
3794 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2662 3795 | MapOfLengthPatternString(
|
2663 3796 | crate::model::map_of_length_pattern_string_internal::ConstraintViolation,
|
2664 3797 | ),
|
3798 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2665 3799 | }
|
3800 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2666 3801 | impl ::std::fmt::Display for ConstraintViolation {
|
3802 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2667 3803 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3804 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2668 3805 | match self {
|
2669 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
2670 - | }
|
3806 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
3807 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3808 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2671 3809 | }
|
3810 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2672 3811 | }
|
3812 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2673 3813 | impl ::std::error::Error for ConstraintViolation {}
|
3814 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2674 3815 | impl ConstraintViolation {
|
2675 3816 | pub(crate) fn as_validation_exception_field(
|
2676 3817 | self,
|
2677 3818 | path: ::std::string::String,
|
2678 3819 | ) -> crate::model::ValidationExceptionField {
|
2679 3820 | match self {
|
2680 3821 | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
2681 3822 | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
2682 3823 | }
|
2683 3824 | }
|
2684 3825 | }
|
2685 3826 | }
|
3827 + | /* ServerBuilderGenerator.kt:234 */
|
2686 3828 | impl ::std::convert::From<ConstraintViolation>
|
2687 3829 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2688 3830 | {
|
2689 3831 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2690 3832 | let first_validation_exception_field =
|
2691 3833 | constraint_violation.as_validation_exception_field("".to_owned());
|
2692 3834 | let validation_exception = crate::error::ValidationException {
|
2693 3835 | message: format!(
|
2694 3836 | "1 validation error detected. {}",
|
2695 3837 | &first_validation_exception_field.message
|
2696 3838 | ),
|
2697 3839 | field_list: Some(vec![first_validation_exception_field]),
|
2698 3840 | };
|
2699 3841 | Self::ConstraintViolation(
|
2700 3842 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2701 3843 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2702 3844 | )
|
2703 3845 | }
|
2704 3846 | }
|
3847 + | /* ServerBuilderGenerator.kt:244 */
|
2705 3848 | impl ::std::convert::From<Builder>
|
2706 3849 | for crate::constrained::MaybeConstrained<
|
2707 3850 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
2708 3851 | >
|
2709 3852 | {
|
2710 3853 | fn from(builder: Builder) -> Self {
|
2711 3854 | Self::Unconstrained(builder)
|
2712 3855 | }
|
2713 3856 | }
|
3857 + | /* ServerBuilderGenerator.kt:446 */
|
2714 3858 | impl ::std::convert::TryFrom<Builder>
|
2715 3859 | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
2716 3860 | {
|
2717 3861 | type Error = ConstraintViolation;
|
2718 3862 |
|
2719 3863 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2720 3864 | builder.build()
|
2721 3865 | }
|
2722 3866 | }
|
2723 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
3867 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
3868 + | /* RustType.kt:516 */
|
2724 3869 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3870 + | /* ServerBuilderGenerator.kt:211 */
|
2725 3871 | pub(crate) struct Builder {
|
2726 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
2727 - | }
|
3872 + | /* 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>>,
|
3873 + | /* ServerBuilderGenerator.kt:211 */}
|
3874 + | /* ServerBuilderGenerator.kt:215 */
|
2728 3875 | impl Builder {
|
3876 + | /* ServerBuilderGenerator.kt:426 */
|
2729 3877 | #[allow(missing_docs)] // documentation missing in model
|
3878 + | /* ServerBuilderGenerator.kt:428 */
|
2730 3879 | pub(crate) fn set_map_of_length_pattern_string(
|
2731 3880 | mut self,
|
2732 3881 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
|
2733 3882 | ) -> Self {
|
3883 + | /* ServerBuilderGenerator.kt:429 */
|
2734 3884 | self.map_of_length_pattern_string = input.map(|v| v.into());
|
2735 3885 | self
|
3886 + | /* ServerBuilderGenerator.kt:428 */
|
2736 3887 | }
|
2737 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2738 - | ///
|
3888 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
3889 + | /// /* ServerBuilderGenerator.kt:260 */
|
2739 3890 | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2740 3891 | ///
|
3892 + | /* ServerBuilderGenerator.kt:271 */
|
2741 3893 | pub fn build(
|
2742 3894 | self,
|
2743 3895 | ) -> Result<
|
2744 3896 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
2745 3897 | ConstraintViolation,
|
2746 3898 | > {
|
2747 3899 | self.build_enforcing_all_constraints()
|
2748 3900 | }
|
3901 + | /* ServerBuilderGenerator.kt:283 */
|
2749 3902 | fn build_enforcing_all_constraints(
|
2750 3903 | self,
|
2751 3904 | ) -> Result<
|
2752 3905 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
2753 3906 | ConstraintViolation,
|
2754 3907 | > {
|
3908 + | /* ServerBuilderGenerator.kt:287 */
|
2755 3909 | Ok(
|
3910 + | /* ServerBuilderGenerator.kt:542 */
|
2756 3911 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
3912 + | /* ServerBuilderGenerator.kt:546 */
|
2757 3913 | map_of_length_pattern_string: self
|
2758 3914 | .map_of_length_pattern_string
|
3915 + | /* ServerBuilderGenerator.kt:602 */
|
2759 3916 | .map(|v| match v {
|
2760 3917 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2761 3918 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2762 3919 | })
|
3920 + | /* ServerBuilderGenerator.kt:614 */
|
2763 3921 | .map(|res| {
|
2764 3922 | res.map(|v| v.into())
|
2765 3923 | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
2766 3924 | })
|
2767 3925 | .transpose()?,
|
2768 - | },
|
3926 + | /* ServerBuilderGenerator.kt:542 */
|
3927 + | }, /* ServerBuilderGenerator.kt:287 */
|
2769 3928 | )
|
3929 + | /* ServerBuilderGenerator.kt:283 */
|
2770 3930 | }
|
3931 + | /* ServerBuilderGenerator.kt:215 */
|
2771 3932 | }
|
3933 + |
|
3934 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2772 3935 | }
|
2773 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
3936 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2774 3937 | pub mod query_params_targeting_map_of_length_pattern_string_operation_input {
|
2775 3938 |
|
3939 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2776 3940 | impl ::std::convert::From<Builder>
|
2777 3941 | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
2778 3942 | {
|
2779 3943 | fn from(builder: Builder) -> Self {
|
2780 3944 | builder.build()
|
2781 3945 | }
|
2782 3946 | }
|
2783 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
3947 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
3948 + | /* RustType.kt:516 */
|
2784 3949 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3950 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2785 3951 | pub struct Builder {
|
3952 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2786 3953 | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
2787 3954 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2788 3955 | >,
|
3956 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2789 3957 | }
|
3958 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2790 3959 | impl Builder {
|
3960 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2791 3961 | #[allow(missing_docs)] // documentation missing in model
|
3962 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2792 3963 | pub fn map_of_length_pattern_string(
|
2793 3964 | mut self,
|
2794 3965 | input: ::std::option::Option<
|
2795 3966 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2796 3967 | >,
|
2797 3968 | ) -> Self {
|
2798 - | self.map_of_length_pattern_string = input;
|
3969 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3970 + | self.map_of_length_pattern_string =
|
3971 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3972 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2799 3973 | self
|
3974 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2800 3975 | }
|
2801 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
3976 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
3977 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2802 3978 | pub fn build(
|
2803 3979 | self,
|
2804 3980 | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2805 3981 | self.build_enforcing_required_and_enum_traits()
|
2806 3982 | }
|
3983 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2807 3984 | fn build_enforcing_required_and_enum_traits(
|
2808 3985 | self,
|
2809 3986 | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
3987 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2810 3988 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
3989 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2811 3990 | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
3991 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2812 3992 | }
|
3993 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2813 3994 | }
|
3995 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2814 3996 | }
|
3997 + |
|
3998 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2815 3999 | }
|
2816 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4000 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2817 4001 | pub(crate) mod query_params_targeting_map_of_list_of_pattern_string_operation_input_internal {
|
2818 4002 |
|
4003 + | /* RustType.kt:516 */
|
2819 4004 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2820 - | /// Holds one variant for each of the ways the builder can fail.
|
4005 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4006 + | /* RustType.kt:516 */
|
2821 4007 | #[non_exhaustive]
|
4008 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2822 4009 | #[allow(clippy::enum_variant_names)]
|
2823 4010 | pub(crate) enum ConstraintViolation {
|
2824 - | /// Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
4011 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
4012 + | /* RustType.kt:516 */
|
2825 4013 | #[doc(hidden)]
|
4014 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2826 4015 | MapOfListOfPatternString(
|
2827 4016 | crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation,
|
2828 4017 | ),
|
4018 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2829 4019 | }
|
4020 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2830 4021 | impl ::std::fmt::Display for ConstraintViolation {
|
4022 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2831 4023 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4024 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2832 4025 | match self {
|
2833 - | ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
2834 - | }
|
4026 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
4027 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4028 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2835 4029 | }
|
4030 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2836 4031 | }
|
4032 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2837 4033 | impl ::std::error::Error for ConstraintViolation {}
|
4034 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2838 4035 | impl ConstraintViolation {
|
2839 4036 | pub(crate) fn as_validation_exception_field(
|
2840 4037 | self,
|
2841 4038 | path: ::std::string::String,
|
2842 4039 | ) -> crate::model::ValidationExceptionField {
|
2843 4040 | match self {
|
2844 4041 | ConstraintViolation::MapOfListOfPatternString(inner) => {
|
2845 4042 | inner.as_validation_exception_field(path + "/mapOfListOfPatternString")
|
2846 4043 | }
|
2847 4044 | }
|
2848 4045 | }
|
2849 4046 | }
|
4047 + | /* ServerBuilderGenerator.kt:234 */
|
2850 4048 | impl ::std::convert::From<ConstraintViolation>
|
2851 4049 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2852 4050 | {
|
2853 4051 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2854 4052 | let first_validation_exception_field =
|
2855 4053 | constraint_violation.as_validation_exception_field("".to_owned());
|
2856 4054 | let validation_exception = crate::error::ValidationException {
|
2857 4055 | message: format!(
|
2858 4056 | "1 validation error detected. {}",
|
2859 4057 | &first_validation_exception_field.message
|
2860 4058 | ),
|
2861 4059 | field_list: Some(vec![first_validation_exception_field]),
|
2862 4060 | };
|
2863 4061 | Self::ConstraintViolation(
|
2864 4062 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2865 4063 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2866 4064 | )
|
2867 4065 | }
|
2868 4066 | }
|
4067 + | /* ServerBuilderGenerator.kt:244 */
|
2869 4068 | impl ::std::convert::From<Builder>
|
2870 4069 | for crate::constrained::MaybeConstrained<
|
2871 4070 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
2872 4071 | >
|
2873 4072 | {
|
2874 4073 | fn from(builder: Builder) -> Self {
|
2875 4074 | Self::Unconstrained(builder)
|
2876 4075 | }
|
2877 4076 | }
|
4077 + | /* ServerBuilderGenerator.kt:446 */
|
2878 4078 | impl ::std::convert::TryFrom<Builder>
|
2879 4079 | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
2880 4080 | {
|
2881 4081 | type Error = ConstraintViolation;
|
2882 4082 |
|
2883 4083 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2884 4084 | builder.build()
|
2885 4085 | }
|
2886 4086 | }
|
2887 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4087 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4088 + | /* RustType.kt:516 */
|
2888 4089 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4090 + | /* ServerBuilderGenerator.kt:211 */
|
2889 4091 | pub(crate) struct Builder {
|
2890 - | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
|
2891 - | }
|
4092 + | /* 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>>,
|
4093 + | /* ServerBuilderGenerator.kt:211 */}
|
4094 + | /* ServerBuilderGenerator.kt:215 */
|
2892 4095 | impl Builder {
|
4096 + | /* ServerBuilderGenerator.kt:426 */
|
2893 4097 | #[allow(missing_docs)] // documentation missing in model
|
4098 + | /* ServerBuilderGenerator.kt:428 */
|
2894 4099 | pub(crate) fn set_map_of_list_of_pattern_string(
|
2895 4100 | mut self,
|
2896 4101 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>>,
|
2897 4102 | ) -> Self {
|
4103 + | /* ServerBuilderGenerator.kt:429 */
|
2898 4104 | self.map_of_list_of_pattern_string = input.map(|v| v.into());
|
2899 4105 | self
|
4106 + | /* ServerBuilderGenerator.kt:428 */
|
2900 4107 | }
|
2901 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2902 - | ///
|
4108 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4109 + | /// /* ServerBuilderGenerator.kt:260 */
|
2903 4110 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2904 4111 | ///
|
4112 + | /* ServerBuilderGenerator.kt:271 */
|
2905 4113 | pub fn build(
|
2906 4114 | self,
|
2907 4115 | ) -> Result<
|
2908 4116 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
2909 4117 | ConstraintViolation,
|
2910 4118 | > {
|
2911 4119 | self.build_enforcing_all_constraints()
|
2912 4120 | }
|
4121 + | /* ServerBuilderGenerator.kt:283 */
|
2913 4122 | fn build_enforcing_all_constraints(
|
2914 4123 | self,
|
2915 4124 | ) -> Result<
|
2916 4125 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
2917 4126 | ConstraintViolation,
|
2918 4127 | > {
|
4128 + | /* ServerBuilderGenerator.kt:287 */
|
2919 4129 | Ok(
|
4130 + | /* ServerBuilderGenerator.kt:542 */
|
2920 4131 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
4132 + | /* ServerBuilderGenerator.kt:546 */
|
2921 4133 | map_of_list_of_pattern_string: self
|
2922 4134 | .map_of_list_of_pattern_string
|
4135 + | /* ServerBuilderGenerator.kt:602 */
|
2923 4136 | .map(|v| match v {
|
2924 4137 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2925 4138 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2926 4139 | })
|
4140 + | /* ServerBuilderGenerator.kt:614 */
|
2927 4141 | .map(|res| {
|
2928 4142 | res.map(|v| v.into())
|
2929 4143 | .map_err(ConstraintViolation::MapOfListOfPatternString)
|
2930 4144 | })
|
2931 4145 | .transpose()?,
|
2932 - | },
|
4146 + | /* ServerBuilderGenerator.kt:542 */
|
4147 + | }, /* ServerBuilderGenerator.kt:287 */
|
2933 4148 | )
|
4149 + | /* ServerBuilderGenerator.kt:283 */
|
2934 4150 | }
|
4151 + | /* ServerBuilderGenerator.kt:215 */
|
2935 4152 | }
|
4153 + |
|
4154 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2936 4155 | }
|
2937 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4156 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2938 4157 | pub mod query_params_targeting_map_of_list_of_pattern_string_operation_input {
|
2939 4158 |
|
4159 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2940 4160 | impl ::std::convert::From<Builder>
|
2941 4161 | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
2942 4162 | {
|
2943 4163 | fn from(builder: Builder) -> Self {
|
2944 4164 | builder.build()
|
2945 4165 | }
|
2946 4166 | }
|
2947 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4167 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4168 + | /* RustType.kt:516 */
|
2948 4169 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4170 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2949 4171 | pub struct Builder {
|
4172 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2950 4173 | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<
|
2951 4174 | ::std::collections::HashMap<
|
2952 4175 | ::std::string::String,
|
2953 4176 | ::std::vec::Vec<::std::string::String>,
|
2954 4177 | >,
|
2955 4178 | >,
|
4179 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2956 4180 | }
|
4181 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2957 4182 | impl Builder {
|
4183 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2958 4184 | #[allow(missing_docs)] // documentation missing in model
|
4185 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2959 4186 | pub fn map_of_list_of_pattern_string(
|
2960 4187 | mut self,
|
2961 4188 | input: ::std::option::Option<
|
2962 4189 | ::std::collections::HashMap<
|
2963 4190 | ::std::string::String,
|
2964 4191 | ::std::vec::Vec<::std::string::String>,
|
2965 4192 | >,
|
2966 4193 | >,
|
2967 4194 | ) -> Self {
|
2968 - | self.map_of_list_of_pattern_string = input;
|
4195 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
4196 + | self.map_of_list_of_pattern_string =
|
4197 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
4198 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2969 4199 | self
|
4200 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2970 4201 | }
|
2971 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4202 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
4203 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2972 4204 | pub fn build(
|
2973 4205 | self,
|
2974 4206 | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2975 4207 | self.build_enforcing_required_and_enum_traits()
|
2976 4208 | }
|
4209 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2977 4210 | fn build_enforcing_required_and_enum_traits(
|
2978 4211 | self,
|
2979 4212 | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
4213 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2980 4214 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
4215 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2981 4216 | map_of_list_of_pattern_string: self.map_of_list_of_pattern_string,
|
4217 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2982 4218 | }
|
4219 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2983 4220 | }
|
4221 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2984 4222 | }
|
4223 + |
|
4224 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2985 4225 | }
|
2986 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4226 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2987 4227 | pub(crate) mod query_params_targeting_map_of_pattern_string_operation_input_internal {
|
2988 4228 |
|
4229 + | /* RustType.kt:516 */
|
2989 4230 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2990 - | /// Holds one variant for each of the ways the builder can fail.
|
4231 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4232 + | /* RustType.kt:516 */
|
2991 4233 | #[non_exhaustive]
|
4234 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2992 4235 | #[allow(clippy::enum_variant_names)]
|
2993 4236 | pub(crate) enum ConstraintViolation {
|
2994 - | /// Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
4237 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
4238 + | /* RustType.kt:516 */
|
2995 4239 | #[doc(hidden)]
|
4240 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2996 4241 | MapOfPatternString(crate::model::map_of_pattern_string_internal::ConstraintViolation),
|
4242 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2997 4243 | }
|
4244 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2998 4245 | impl ::std::fmt::Display for ConstraintViolation {
|
4246 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2999 4247 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4248 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3000 4249 | match self {
|
3001 - | ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
3002 - | }
|
4250 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
4251 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4252 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3003 4253 | }
|
4254 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3004 4255 | }
|
4256 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3005 4257 | impl ::std::error::Error for ConstraintViolation {}
|
4258 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3006 4259 | impl ConstraintViolation {
|
3007 4260 | pub(crate) fn as_validation_exception_field(
|
3008 4261 | self,
|
3009 4262 | path: ::std::string::String,
|
3010 4263 | ) -> crate::model::ValidationExceptionField {
|
3011 4264 | match self {
|
3012 4265 | ConstraintViolation::MapOfPatternString(inner) => {
|
3013 4266 | inner.as_validation_exception_field(path + "/mapOfPatternString")
|
3014 4267 | }
|
3015 4268 | }
|
3016 4269 | }
|
3017 4270 | }
|
4271 + | /* ServerBuilderGenerator.kt:234 */
|
3018 4272 | impl ::std::convert::From<ConstraintViolation>
|
3019 4273 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3020 4274 | {
|
3021 4275 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3022 4276 | let first_validation_exception_field =
|
3023 4277 | constraint_violation.as_validation_exception_field("".to_owned());
|
3024 4278 | let validation_exception = crate::error::ValidationException {
|
3025 4279 | message: format!(
|
3026 4280 | "1 validation error detected. {}",
|
3027 4281 | &first_validation_exception_field.message
|
3028 4282 | ),
|
3029 4283 | field_list: Some(vec![first_validation_exception_field]),
|
3030 4284 | };
|
3031 4285 | Self::ConstraintViolation(
|
3032 4286 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3033 4287 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3034 4288 | )
|
3035 4289 | }
|
3036 4290 | }
|
4291 + | /* ServerBuilderGenerator.kt:244 */
|
3037 4292 | impl ::std::convert::From<Builder>
|
3038 4293 | for crate::constrained::MaybeConstrained<
|
3039 4294 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
3040 4295 | >
|
3041 4296 | {
|
3042 4297 | fn from(builder: Builder) -> Self {
|
3043 4298 | Self::Unconstrained(builder)
|
3044 4299 | }
|
3045 4300 | }
|
4301 + | /* ServerBuilderGenerator.kt:446 */
|
3046 4302 | impl ::std::convert::TryFrom<Builder>
|
3047 4303 | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
3048 4304 | {
|
3049 4305 | type Error = ConstraintViolation;
|
3050 4306 |
|
3051 4307 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3052 4308 | builder.build()
|
3053 4309 | }
|
3054 4310 | }
|
3055 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4311 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4312 + | /* RustType.kt:516 */
|
3056 4313 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4314 + | /* ServerBuilderGenerator.kt:211 */
|
3057 4315 | pub(crate) struct Builder {
|
3058 - | pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
3059 - | }
|
4316 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
4317 + | /* ServerBuilderGenerator.kt:211 */}
|
4318 + | /* ServerBuilderGenerator.kt:215 */
|
3060 4319 | impl Builder {
|
4320 + | /* ServerBuilderGenerator.kt:426 */
|
3061 4321 | #[allow(missing_docs)] // documentation missing in model
|
4322 + | /* ServerBuilderGenerator.kt:428 */
|
3062 4323 | pub(crate) fn set_map_of_pattern_string(
|
3063 4324 | mut self,
|
3064 4325 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
|
3065 4326 | ) -> Self {
|
4327 + | /* ServerBuilderGenerator.kt:429 */
|
3066 4328 | self.map_of_pattern_string = input.map(|v| v.into());
|
3067 4329 | self
|
4330 + | /* ServerBuilderGenerator.kt:428 */
|
3068 4331 | }
|
3069 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3070 - | ///
|
4332 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4333 + | /// /* ServerBuilderGenerator.kt:260 */
|
3071 4334 | /// The builder fails to construct a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3072 4335 | ///
|
4336 + | /* ServerBuilderGenerator.kt:271 */
|
3073 4337 | pub fn build(
|
3074 4338 | self,
|
3075 4339 | ) -> Result<
|
3076 4340 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
3077 4341 | ConstraintViolation,
|
3078 4342 | > {
|
3079 4343 | self.build_enforcing_all_constraints()
|
3080 4344 | }
|
4345 + | /* ServerBuilderGenerator.kt:283 */
|
3081 4346 | fn build_enforcing_all_constraints(
|
3082 4347 | self,
|
3083 4348 | ) -> Result<
|
3084 4349 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
3085 4350 | ConstraintViolation,
|
3086 4351 | > {
|
4352 + | /* ServerBuilderGenerator.kt:287 */
|
3087 4353 | Ok(
|
4354 + | /* ServerBuilderGenerator.kt:542 */
|
3088 4355 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
4356 + | /* ServerBuilderGenerator.kt:546 */
|
3089 4357 | map_of_pattern_string: self
|
3090 4358 | .map_of_pattern_string
|
4359 + | /* ServerBuilderGenerator.kt:602 */
|
3091 4360 | .map(|v| match v {
|
3092 4361 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3093 4362 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3094 4363 | })
|
4364 + | /* ServerBuilderGenerator.kt:614 */
|
3095 4365 | .map(|res| {
|
3096 4366 | res.map(|v| v.into())
|
3097 4367 | .map_err(ConstraintViolation::MapOfPatternString)
|
3098 4368 | })
|
3099 4369 | .transpose()?,
|
3100 - | },
|
4370 + | /* ServerBuilderGenerator.kt:542 */
|
4371 + | }, /* ServerBuilderGenerator.kt:287 */
|
3101 4372 | )
|
4373 + | /* ServerBuilderGenerator.kt:283 */
|
3102 4374 | }
|
4375 + | /* ServerBuilderGenerator.kt:215 */
|
3103 4376 | }
|
4377 + |
|
4378 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3104 4379 | }
|
3105 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4380 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3106 4381 | pub mod query_params_targeting_map_of_pattern_string_operation_input {
|
3107 4382 |
|
4383 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
3108 4384 | impl ::std::convert::From<Builder>
|
3109 4385 | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
3110 4386 | {
|
3111 4387 | fn from(builder: Builder) -> Self {
|
3112 4388 | builder.build()
|
3113 4389 | }
|
3114 4390 | }
|
3115 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4391 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4392 + | /* RustType.kt:516 */
|
3116 4393 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4394 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3117 4395 | pub struct Builder {
|
4396 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
3118 4397 | pub(crate) map_of_pattern_string: ::std::option::Option<
|
3119 4398 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3120 4399 | >,
|
4400 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3121 4401 | }
|
4402 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3122 4403 | impl Builder {
|
4404 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
3123 4405 | #[allow(missing_docs)] // documentation missing in model
|
4406 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3124 4407 | pub fn map_of_pattern_string(
|
3125 4408 | mut self,
|
3126 4409 | input: ::std::option::Option<
|
3127 4410 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3128 4411 | >,
|
3129 4412 | ) -> Self {
|
3130 - | self.map_of_pattern_string = input;
|
4413 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
4414 + | self.map_of_pattern_string =
|
4415 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
4416 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
3131 4417 | self
|
4418 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3132 4419 | }
|
3133 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4420 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
4421 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
3134 4422 | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3135 4423 | self.build_enforcing_required_and_enum_traits()
|
3136 4424 | }
|
4425 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3137 4426 | fn build_enforcing_required_and_enum_traits(
|
3138 4427 | self,
|
3139 4428 | ) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
4429 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3140 4430 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
4431 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3141 4432 | map_of_pattern_string: self.map_of_pattern_string,
|
4433 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3142 4434 | }
|
4435 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3143 4436 | }
|
4437 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3144 4438 | }
|
4439 + |
|
4440 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3145 4441 | }
|
3146 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4442 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3147 4443 | pub(crate) mod query_params_targeting_map_of_list_of_enum_string_operation_input_internal {
|
3148 4444 |
|
4445 + | /* RustType.kt:516 */
|
3149 4446 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3150 - | /// Holds one variant for each of the ways the builder can fail.
|
4447 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4448 + | /* RustType.kt:516 */
|
3151 4449 | #[non_exhaustive]
|
4450 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3152 4451 | #[allow(clippy::enum_variant_names)]
|
3153 4452 | pub(crate) enum ConstraintViolation {
|
3154 - | /// Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
4453 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
4454 + | /* RustType.kt:516 */
|
3155 4455 | #[doc(hidden)]
|
4456 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3156 4457 | MapOfListOfEnumString(
|
3157 4458 | crate::model::map_of_list_of_enum_string_internal::ConstraintViolation,
|
3158 4459 | ),
|
4460 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3159 4461 | }
|
4462 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3160 4463 | impl ::std::fmt::Display for ConstraintViolation {
|
4464 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3161 4465 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4466 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3162 4467 | match self {
|
3163 - | ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
3164 - | }
|
4468 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
4469 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4470 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3165 4471 | }
|
4472 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3166 4473 | }
|
4474 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3167 4475 | impl ::std::error::Error for ConstraintViolation {}
|
4476 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3168 4477 | impl ConstraintViolation {
|
3169 4478 | pub(crate) fn as_validation_exception_field(
|
3170 4479 | self,
|
3171 4480 | path: ::std::string::String,
|
3172 4481 | ) -> crate::model::ValidationExceptionField {
|
3173 4482 | match self {
|
3174 4483 | ConstraintViolation::MapOfListOfEnumString(inner) => {
|
3175 4484 | inner.as_validation_exception_field(path + "/mapOfListOfEnumString")
|
3176 4485 | }
|
3177 4486 | }
|
3178 4487 | }
|
3179 4488 | }
|
4489 + | /* ServerBuilderGenerator.kt:234 */
|
3180 4490 | impl ::std::convert::From<ConstraintViolation>
|
3181 4491 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3182 4492 | {
|
3183 4493 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3184 4494 | let first_validation_exception_field =
|
3185 4495 | constraint_violation.as_validation_exception_field("".to_owned());
|
3186 4496 | let validation_exception = crate::error::ValidationException {
|
3187 4497 | message: format!(
|
3188 4498 | "1 validation error detected. {}",
|
3189 4499 | &first_validation_exception_field.message
|
3190 4500 | ),
|
3191 4501 | field_list: Some(vec![first_validation_exception_field]),
|
3192 4502 | };
|
3193 4503 | Self::ConstraintViolation(
|
3194 4504 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3195 4505 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3196 4506 | )
|
3197 4507 | }
|
3198 4508 | }
|
4509 + | /* ServerBuilderGenerator.kt:244 */
|
3199 4510 | impl ::std::convert::From<Builder>
|
3200 4511 | for crate::constrained::MaybeConstrained<
|
3201 4512 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
3202 4513 | >
|
3203 4514 | {
|
3204 4515 | fn from(builder: Builder) -> Self {
|
3205 4516 | Self::Unconstrained(builder)
|
3206 4517 | }
|
3207 4518 | }
|
4519 + | /* ServerBuilderGenerator.kt:446 */
|
3208 4520 | impl ::std::convert::TryFrom<Builder>
|
3209 4521 | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
3210 4522 | {
|
3211 4523 | type Error = ConstraintViolation;
|
3212 4524 |
|
3213 4525 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3214 4526 | builder.build()
|
3215 4527 | }
|
3216 4528 | }
|
3217 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4529 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4530 + | /* RustType.kt:516 */
|
3218 4531 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4532 + | /* ServerBuilderGenerator.kt:211 */
|
3219 4533 | pub(crate) struct Builder {
|
3220 - | pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
|
3221 - | }
|
4534 + | /* 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>>,
|
4535 + | /* ServerBuilderGenerator.kt:211 */}
|
4536 + | /* ServerBuilderGenerator.kt:215 */
|
3222 4537 | impl Builder {
|
4538 + | /* ServerBuilderGenerator.kt:426 */
|
3223 4539 | #[allow(missing_docs)] // documentation missing in model
|
4540 + | /* ServerBuilderGenerator.kt:428 */
|
3224 4541 | pub(crate) fn set_map_of_list_of_enum_string(
|
3225 4542 | mut self,
|
3226 4543 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>>,
|
3227 4544 | ) -> Self {
|
4545 + | /* ServerBuilderGenerator.kt:429 */
|
3228 4546 | self.map_of_list_of_enum_string = input.map(|v| v.into());
|
3229 4547 | self
|
4548 + | /* ServerBuilderGenerator.kt:428 */
|
3230 4549 | }
|
3231 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3232 - | ///
|
4550 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4551 + | /// /* ServerBuilderGenerator.kt:260 */
|
3233 4552 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3234 4553 | ///
|
4554 + | /* ServerBuilderGenerator.kt:271 */
|
3235 4555 | pub fn build(
|
3236 4556 | self,
|
3237 4557 | ) -> Result<
|
3238 4558 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
3239 4559 | ConstraintViolation,
|
3240 4560 | > {
|
3241 4561 | self.build_enforcing_all_constraints()
|
3242 4562 | }
|
4563 + | /* ServerBuilderGenerator.kt:283 */
|
3243 4564 | fn build_enforcing_all_constraints(
|
3244 4565 | self,
|
3245 4566 | ) -> Result<
|
3246 4567 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
3247 4568 | ConstraintViolation,
|
3248 4569 | > {
|
4570 + | /* ServerBuilderGenerator.kt:287 */
|
3249 4571 | Ok(
|
4572 + | /* ServerBuilderGenerator.kt:542 */
|
3250 4573 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
4574 + | /* ServerBuilderGenerator.kt:546 */
|
3251 4575 | map_of_list_of_enum_string: self
|
3252 4576 | .map_of_list_of_enum_string
|
4577 + | /* ServerBuilderGenerator.kt:602 */
|
3253 4578 | .map(|v| match v {
|
3254 4579 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3255 4580 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3256 4581 | })
|
4582 + | /* ServerBuilderGenerator.kt:614 */
|
3257 4583 | .map(|res| {
|
3258 4584 | res.map(|v| v.into())
|
3259 4585 | .map_err(ConstraintViolation::MapOfListOfEnumString)
|
3260 4586 | })
|
3261 4587 | .transpose()?,
|
3262 - | },
|
4588 + | /* ServerBuilderGenerator.kt:542 */
|
4589 + | }, /* ServerBuilderGenerator.kt:287 */
|
3263 4590 | )
|
4591 + | /* ServerBuilderGenerator.kt:283 */
|
3264 4592 | }
|
4593 + | /* ServerBuilderGenerator.kt:215 */
|
3265 4594 | }
|
4595 + |
|
4596 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3266 4597 | }
|
3267 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4598 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3268 4599 | pub mod query_params_targeting_map_of_list_of_enum_string_operation_input {
|
3269 4600 |
|
4601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
3270 4602 | impl ::std::convert::From<Builder>
|
3271 4603 | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
3272 4604 | {
|
3273 4605 | fn from(builder: Builder) -> Self {
|
3274 4606 | builder.build()
|
3275 4607 | }
|
3276 4608 | }
|
3277 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4609 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4610 + | /* RustType.kt:516 */
|
3278 4611 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4612 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3279 4613 | pub struct Builder {
|
4614 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
3280 4615 | pub(crate) map_of_list_of_enum_string: ::std::option::Option<
|
3281 4616 | ::std::collections::HashMap<
|
3282 4617 | crate::model::EnumString,
|
3283 4618 | ::std::vec::Vec<crate::model::EnumString>,
|
3284 4619 | >,
|
3285 4620 | >,
|
4621 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3286 4622 | }
|
4623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3287 4624 | impl Builder {
|
4625 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
3288 4626 | #[allow(missing_docs)] // documentation missing in model
|
4627 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3289 4628 | pub fn map_of_list_of_enum_string(
|
3290 4629 | mut self,
|
3291 4630 | input: ::std::option::Option<
|
3292 4631 | ::std::collections::HashMap<
|
3293 4632 | crate::model::EnumString,
|
3294 4633 | ::std::vec::Vec<crate::model::EnumString>,
|
3295 4634 | >,
|
3296 4635 | >,
|
3297 4636 | ) -> Self {
|
3298 - | self.map_of_list_of_enum_string = input;
|
4637 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
4638 + | self.map_of_list_of_enum_string =
|
4639 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
4640 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
3299 4641 | self
|
4642 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3300 4643 | }
|
3301 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4644 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4645 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
3302 4646 | pub fn build(
|
3303 4647 | self,
|
3304 4648 | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3305 4649 | self.build_enforcing_required_and_enum_traits()
|
3306 4650 | }
|
4651 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3307 4652 | fn build_enforcing_required_and_enum_traits(
|
3308 4653 | self,
|
3309 4654 | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
4655 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3310 4656 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
4657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3311 4658 | map_of_list_of_enum_string: self.map_of_list_of_enum_string,
|
4659 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3312 4660 | }
|
4661 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3313 4662 | }
|
4663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3314 4664 | }
|
4665 + |
|
4666 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3315 4667 | }
|
3316 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4668 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3317 4669 | pub(crate) mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal {
|
3318 4670 |
|
4671 + | /* RustType.kt:516 */
|
3319 4672 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3320 - | /// Holds one variant for each of the ways the builder can fail.
|
4673 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4674 + | /* RustType.kt:516 */
|
3321 4675 | #[non_exhaustive]
|
4676 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3322 4677 | #[allow(clippy::enum_variant_names)]
|
3323 4678 | pub(crate) enum ConstraintViolation {
|
3324 - | /// Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
4679 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
4680 + | /* RustType.kt:516 */
|
3325 4681 | #[doc(hidden)]
|
4682 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3326 4683 | MapOfLengthListOfPatternString(
|
3327 4684 | crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation,
|
3328 4685 | ),
|
4686 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3329 4687 | }
|
4688 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3330 4689 | impl ::std::fmt::Display for ConstraintViolation {
|
4690 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3331 4691 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4692 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3332 4693 | match self {
|
3333 - | ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
3334 - | }
|
4694 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
4695 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4696 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3335 4697 | }
|
4698 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3336 4699 | }
|
4700 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3337 4701 | impl ::std::error::Error for ConstraintViolation {}
|
4702 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3338 4703 | impl ConstraintViolation {
|
3339 4704 | pub(crate) fn as_validation_exception_field(
|
3340 4705 | self,
|
3341 4706 | path: ::std::string::String,
|
3342 4707 | ) -> crate::model::ValidationExceptionField {
|
3343 4708 | match self {
|
3344 4709 | ConstraintViolation::MapOfLengthListOfPatternString(inner) => {
|
3345 4710 | inner.as_validation_exception_field(path + "/mapOfLengthListOfPatternString")
|
3346 4711 | }
|
3347 4712 | }
|
3348 4713 | }
|
3349 4714 | }
|
4715 + | /* ServerBuilderGenerator.kt:234 */
|
3350 4716 | impl ::std::convert::From<ConstraintViolation>
|
3351 4717 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3352 4718 | {
|
3353 4719 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3354 4720 | let first_validation_exception_field =
|
3355 4721 | constraint_violation.as_validation_exception_field("".to_owned());
|
3356 4722 | let validation_exception = crate::error::ValidationException {
|
3357 4723 | message: format!(
|
3358 4724 | "1 validation error detected. {}",
|
3359 4725 | &first_validation_exception_field.message
|
3360 4726 | ),
|
3361 4727 | field_list: Some(vec![first_validation_exception_field]),
|
3362 4728 | };
|
3363 4729 | Self::ConstraintViolation(
|
3364 4730 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3365 4731 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3366 4732 | )
|
3367 4733 | }
|
3368 4734 | }
|
4735 + | /* ServerBuilderGenerator.kt:244 */
|
3369 4736 | impl ::std::convert::From<Builder>
|
3370 4737 | for crate::constrained::MaybeConstrained<
|
3371 4738 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3372 4739 | >
|
3373 4740 | {
|
3374 4741 | fn from(builder: Builder) -> Self {
|
3375 4742 | Self::Unconstrained(builder)
|
3376 4743 | }
|
3377 4744 | }
|
4745 + | /* ServerBuilderGenerator.kt:446 */
|
3378 4746 | impl ::std::convert::TryFrom<Builder>
|
3379 4747 | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3380 4748 | {
|
3381 4749 | type Error = ConstraintViolation;
|
3382 4750 |
|
3383 4751 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3384 4752 | builder.build()
|
3385 4753 | }
|
3386 4754 | }
|
3387 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4755 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4756 + | /* RustType.kt:516 */
|
3388 4757 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4758 + | /* ServerBuilderGenerator.kt:211 */
|
3389 4759 | pub(crate) struct Builder {
|
3390 - | 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>>,
|
3391 - | }
|
4760 + | /* 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>>,
|
4761 + | /* ServerBuilderGenerator.kt:211 */}
|
4762 + | /* ServerBuilderGenerator.kt:215 */
|
3392 4763 | impl Builder {
|
4764 + | /* ServerBuilderGenerator.kt:426 */
|
3393 4765 | #[allow(missing_docs)] // documentation missing in model
|
4766 + | /* ServerBuilderGenerator.kt:428 */
|
3394 4767 | pub(crate) fn set_map_of_length_list_of_pattern_string(
|
3395 4768 | mut self,
|
3396 4769 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>>,
|
3397 4770 | ) -> Self {
|
4771 + | /* ServerBuilderGenerator.kt:429 */
|
3398 4772 | self.map_of_length_list_of_pattern_string = input.map(|v| v.into());
|
3399 4773 | self
|
4774 + | /* ServerBuilderGenerator.kt:428 */
|
3400 4775 | }
|
3401 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3402 - | ///
|
4776 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4777 + | /// /* ServerBuilderGenerator.kt:260 */
|
3403 4778 | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3404 4779 | ///
|
4780 + | /* ServerBuilderGenerator.kt:271 */
|
3405 4781 | pub fn build(
|
3406 4782 | self,
|
3407 4783 | ) -> Result<
|
3408 4784 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3409 4785 | ConstraintViolation,
|
3410 4786 | > {
|
3411 4787 | self.build_enforcing_all_constraints()
|
3412 4788 | }
|
4789 + | /* ServerBuilderGenerator.kt:283 */
|
3413 4790 | fn build_enforcing_all_constraints(
|
3414 4791 | self,
|
3415 4792 | ) -> Result<
|
3416 4793 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3417 4794 | ConstraintViolation,
|
3418 4795 | > {
|
4796 + | /* ServerBuilderGenerator.kt:287 */
|
3419 4797 | Ok(
|
4798 + | /* ServerBuilderGenerator.kt:542 */
|
3420 4799 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
4800 + | /* ServerBuilderGenerator.kt:546 */
|
3421 4801 | map_of_length_list_of_pattern_string: self
|
3422 4802 | .map_of_length_list_of_pattern_string
|
4803 + | /* ServerBuilderGenerator.kt:602 */
|
3423 4804 | .map(|v| match v {
|
3424 4805 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3425 4806 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3426 4807 | })
|
4808 + | /* ServerBuilderGenerator.kt:614 */
|
3427 4809 | .map(|res| {
|
3428 4810 | res.map(|v| v.into())
|
3429 4811 | .map_err(ConstraintViolation::MapOfLengthListOfPatternString)
|
3430 4812 | })
|
3431 4813 | .transpose()?,
|
3432 - | },
|
4814 + | /* ServerBuilderGenerator.kt:542 */
|
4815 + | }, /* ServerBuilderGenerator.kt:287 */
|
3433 4816 | )
|
4817 + | /* ServerBuilderGenerator.kt:283 */
|
3434 4818 | }
|
4819 + | /* ServerBuilderGenerator.kt:215 */
|
3435 4820 | }
|
4821 + |
|
4822 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3436 4823 | }
|
3437 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4824 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3438 4825 | pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input {
|
3439 4826 |
|
4827 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
3440 4828 | impl ::std::convert::From<Builder>
|
3441 4829 | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3442 4830 | {
|
3443 4831 | fn from(builder: Builder) -> Self {
|
3444 4832 | builder.build()
|
3445 4833 | }
|
3446 4834 | }
|
3447 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4835 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4836 + | /* RustType.kt:516 */
|
3448 4837 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4838 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3449 4839 | pub struct Builder {
|
4840 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
3450 4841 | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<
|
3451 4842 | ::std::collections::HashMap<
|
3452 4843 | ::std::string::String,
|
3453 4844 | ::std::vec::Vec<::std::string::String>,
|
3454 4845 | >,
|
3455 4846 | >,
|
4847 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3456 4848 | }
|
4849 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3457 4850 | impl Builder {
|
4851 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
3458 4852 | #[allow(missing_docs)] // documentation missing in model
|
4853 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3459 4854 | pub fn map_of_length_list_of_pattern_string(
|
3460 4855 | mut self,
|
3461 4856 | input: ::std::option::Option<
|
3462 4857 | ::std::collections::HashMap<
|
3463 4858 | ::std::string::String,
|
3464 4859 | ::std::vec::Vec<::std::string::String>,
|
3465 4860 | >,
|
3466 4861 | >,
|
3467 4862 | ) -> Self {
|
3468 - | self.map_of_length_list_of_pattern_string = input;
|
4863 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
4864 + | self.map_of_length_list_of_pattern_string =
|
4865 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
4866 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
3469 4867 | self
|
4868 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3470 4869 | }
|
3471 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4870 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4871 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
3472 4872 | pub fn build(
|
3473 4873 | self,
|
3474 4874 | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3475 4875 | {
|
3476 4876 | self.build_enforcing_required_and_enum_traits()
|
3477 4877 | }
|
4878 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3478 4879 | fn build_enforcing_required_and_enum_traits(
|
3479 4880 | self,
|
3480 4881 | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3481 4882 | {
|
4883 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3482 4884 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
4885 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3483 4886 | map_of_length_list_of_pattern_string: self.map_of_length_list_of_pattern_string,
|
4887 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3484 4888 | }
|
4889 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3485 4890 | }
|
4891 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3486 4892 | }
|
4893 + |
|
4894 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3487 4895 | }
|
3488 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4896 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3489 4897 | pub(crate) mod query_params_targeting_map_of_set_of_length_string_operation_input_internal {
|
3490 4898 |
|
4899 + | /* RustType.kt:516 */
|
3491 4900 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3492 - | /// Holds one variant for each of the ways the builder can fail.
|
4901 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4902 + | /* RustType.kt:516 */
|
3493 4903 | #[non_exhaustive]
|
4904 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3494 4905 | #[allow(clippy::enum_variant_names)]
|
3495 4906 | pub(crate) enum ConstraintViolation {
|
3496 - | /// Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
4907 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
4908 + | /* RustType.kt:516 */
|
3497 4909 | #[doc(hidden)]
|
4910 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3498 4911 | MapOfSetOfLengthString(
|
3499 4912 | crate::model::map_of_set_of_length_string_internal::ConstraintViolation,
|
3500 4913 | ),
|
4914 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3501 4915 | }
|
4916 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3502 4917 | impl ::std::fmt::Display for ConstraintViolation {
|
4918 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3503 4919 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4920 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3504 4921 | match self {
|
3505 - | ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
3506 - | }
|
4922 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
4923 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4924 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3507 4925 | }
|
4926 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3508 4927 | }
|
4928 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3509 4929 | impl ::std::error::Error for ConstraintViolation {}
|
4930 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3510 4931 | impl ConstraintViolation {
|
3511 4932 | pub(crate) fn as_validation_exception_field(
|
3512 4933 | self,
|
3513 4934 | path: ::std::string::String,
|
3514 4935 | ) -> crate::model::ValidationExceptionField {
|
3515 4936 | match self {
|
3516 4937 | ConstraintViolation::MapOfSetOfLengthString(inner) => {
|
3517 4938 | inner.as_validation_exception_field(path + "/mapOfSetOfLengthString")
|
3518 4939 | }
|
3519 4940 | }
|
3520 4941 | }
|
3521 4942 | }
|
4943 + | /* ServerBuilderGenerator.kt:234 */
|
3522 4944 | impl ::std::convert::From<ConstraintViolation>
|
3523 4945 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3524 4946 | {
|
3525 4947 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3526 4948 | let first_validation_exception_field =
|
3527 4949 | constraint_violation.as_validation_exception_field("".to_owned());
|
3528 4950 | let validation_exception = crate::error::ValidationException {
|
3529 4951 | message: format!(
|
3530 4952 | "1 validation error detected. {}",
|
3531 4953 | &first_validation_exception_field.message
|
3532 4954 | ),
|
3533 4955 | field_list: Some(vec![first_validation_exception_field]),
|
3534 4956 | };
|
3535 4957 | Self::ConstraintViolation(
|
3536 4958 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3537 4959 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3538 4960 | )
|
3539 4961 | }
|
3540 4962 | }
|
4963 + | /* ServerBuilderGenerator.kt:244 */
|
3541 4964 | impl ::std::convert::From<Builder>
|
3542 4965 | for crate::constrained::MaybeConstrained<
|
3543 4966 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3544 4967 | >
|
3545 4968 | {
|
3546 4969 | fn from(builder: Builder) -> Self {
|
3547 4970 | Self::Unconstrained(builder)
|
3548 4971 | }
|
3549 4972 | }
|
4973 + | /* ServerBuilderGenerator.kt:446 */
|
3550 4974 | impl ::std::convert::TryFrom<Builder>
|
3551 4975 | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
3552 4976 | {
|
3553 4977 | type Error = ConstraintViolation;
|
3554 4978 |
|
3555 4979 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3556 4980 | builder.build()
|
3557 4981 | }
|
3558 4982 | }
|
3559 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4983 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4984 + | /* RustType.kt:516 */
|
3560 4985 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4986 + | /* ServerBuilderGenerator.kt:211 */
|
3561 4987 | pub(crate) struct Builder {
|
3562 - | pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
|
3563 - | }
|
4988 + | /* 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>>,
|
4989 + | /* ServerBuilderGenerator.kt:211 */}
|
4990 + | /* ServerBuilderGenerator.kt:215 */
|
3564 4991 | impl Builder {
|
4992 + | /* ServerBuilderGenerator.kt:426 */
|
3565 4993 | #[allow(missing_docs)] // documentation missing in model
|
4994 + | /* ServerBuilderGenerator.kt:428 */
|
3566 4995 | pub(crate) fn set_map_of_set_of_length_string(
|
3567 4996 | mut self,
|
3568 4997 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>>,
|
3569 4998 | ) -> Self {
|
4999 + | /* ServerBuilderGenerator.kt:429 */
|
3570 5000 | self.map_of_set_of_length_string = input.map(|v| v.into());
|
3571 5001 | self
|
5002 + | /* ServerBuilderGenerator.kt:428 */
|
3572 5003 | }
|
3573 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3574 - | ///
|
5004 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
5005 + | /// /* ServerBuilderGenerator.kt:260 */
|
3575 5006 | /// The builder fails to construct a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3576 5007 | ///
|
5008 + | /* ServerBuilderGenerator.kt:271 */
|
3577 5009 | pub fn build(
|
3578 5010 | self,
|
3579 5011 | ) -> Result<
|
3580 5012 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3581 5013 | ConstraintViolation,
|
3582 5014 | > {
|
3583 5015 | self.build_enforcing_all_constraints()
|
3584 5016 | }
|
5017 + | /* ServerBuilderGenerator.kt:283 */
|
3585 5018 | fn build_enforcing_all_constraints(
|
3586 5019 | self,
|
3587 5020 | ) -> Result<
|
3588 5021 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3589 5022 | ConstraintViolation,
|
3590 5023 | > {
|
5024 + | /* ServerBuilderGenerator.kt:287 */
|
3591 5025 | Ok(
|
5026 + | /* ServerBuilderGenerator.kt:542 */
|
3592 5027 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
5028 + | /* ServerBuilderGenerator.kt:546 */
|
3593 5029 | map_of_set_of_length_string: self
|
3594 5030 | .map_of_set_of_length_string
|
5031 + | /* ServerBuilderGenerator.kt:602 */
|
3595 5032 | .map(|v| match v {
|
3596 5033 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3597 5034 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3598 5035 | })
|
5036 + | /* ServerBuilderGenerator.kt:614 */
|
3599 5037 | .map(|res| {
|
3600 5038 | res.map(|v| v.into())
|
3601 5039 | .map_err(ConstraintViolation::MapOfSetOfLengthString)
|
3602 5040 | })
|
3603 5041 | .transpose()?,
|
3604 - | },
|
5042 + | /* ServerBuilderGenerator.kt:542 */
|
5043 + | }, /* ServerBuilderGenerator.kt:287 */
|
3605 5044 | )
|
5045 + | /* ServerBuilderGenerator.kt:283 */
|
3606 5046 | }
|
5047 + | /* ServerBuilderGenerator.kt:215 */
|
3607 5048 | }
|
5049 + |
|
5050 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3608 5051 | }
|
3609 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
5052 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3610 5053 | pub mod query_params_targeting_map_of_set_of_length_string_operation_input {
|
3611 5054 |
|
5055 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
3612 5056 | impl ::std::convert::From<Builder>
|
3613 5057 | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
3614 5058 | {
|
3615 5059 | fn from(builder: Builder) -> Self {
|
3616 5060 | builder.build()
|
3617 5061 | }
|
3618 5062 | }
|
3619 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
5063 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
5064 + | /* RustType.kt:516 */
|
3620 5065 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5066 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3621 5067 | pub struct Builder {
|
5068 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
3622 5069 | pub(crate) map_of_set_of_length_string: ::std::option::Option<
|
3623 5070 | ::std::collections::HashMap<
|
3624 5071 | ::std::string::String,
|
3625 5072 | ::std::vec::Vec<::std::string::String>,
|
3626 5073 | >,
|
3627 5074 | >,
|
5075 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3628 5076 | }
|
5077 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3629 5078 | impl Builder {
|
5079 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
3630 5080 | #[allow(missing_docs)] // documentation missing in model
|
5081 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3631 5082 | pub fn map_of_set_of_length_string(
|
3632 5083 | mut self,
|
3633 5084 | input: ::std::option::Option<
|
3634 5085 | ::std::collections::HashMap<
|
3635 5086 | ::std::string::String,
|
3636 5087 | ::std::vec::Vec<::std::string::String>,
|
3637 5088 | >,
|
3638 5089 | >,
|
3639 5090 | ) -> Self {
|
3640 - | self.map_of_set_of_length_string = input;
|
5091 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
5092 + | self.map_of_set_of_length_string =
|
5093 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
5094 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
3641 5095 | self
|
5096 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3642 5097 | }
|
3643 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
5098 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
5099 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
3644 5100 | pub fn build(
|
3645 5101 | self,
|
3646 5102 | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3647 5103 | self.build_enforcing_required_and_enum_traits()
|
3648 5104 | }
|
5105 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3649 5106 | fn build_enforcing_required_and_enum_traits(
|
3650 5107 | self,
|
3651 5108 | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
5109 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3652 5110 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
5111 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3653 5112 | map_of_set_of_length_string: self.map_of_set_of_length_string,
|
5113 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3654 5114 | }
|
5115 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3655 5116 | }
|
5117 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3656 5118 | }
|
5119 + |
|
5120 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3657 5121 | }
|
3658 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
5122 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3659 5123 | pub(crate) mod query_params_targeting_map_of_list_of_length_string_operation_input_internal {
|
3660 5124 |
|
5125 + | /* RustType.kt:516 */
|
3661 5126 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3662 - | /// Holds one variant for each of the ways the builder can fail.
|
5127 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5128 + | /* RustType.kt:516 */
|
3663 5129 | #[non_exhaustive]
|
5130 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3664 5131 | #[allow(clippy::enum_variant_names)]
|
3665 5132 | pub(crate) enum ConstraintViolation {
|
3666 - | /// Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
5133 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
5134 + | /* RustType.kt:516 */
|
3667 5135 | #[doc(hidden)]
|
5136 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3668 5137 | MapOfListOfLengthString(
|
3669 5138 | crate::model::map_of_list_of_length_string_internal::ConstraintViolation,
|
3670 5139 | ),
|
5140 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3671 5141 | }
|
5142 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3672 5143 | impl ::std::fmt::Display for ConstraintViolation {
|
5144 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3673 5145 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5146 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3674 5147 | match self {
|
3675 - | ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
3676 - | }
|
5148 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
5149 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
5150 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3677 5151 | }
|
5152 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3678 5153 | }
|
5154 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3679 5155 | impl ::std::error::Error for ConstraintViolation {}
|
5156 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3680 5157 | impl ConstraintViolation {
|
3681 5158 | pub(crate) fn as_validation_exception_field(
|
3682 5159 | self,
|
3683 5160 | path: ::std::string::String,
|
3684 5161 | ) -> crate::model::ValidationExceptionField {
|
3685 5162 | match self {
|
3686 5163 | ConstraintViolation::MapOfListOfLengthString(inner) => {
|
3687 5164 | inner.as_validation_exception_field(path + "/mapOfListOfLengthString")
|
3688 5165 | }
|
3689 5166 | }
|
3690 5167 | }
|
3691 5168 | }
|
5169 + | /* ServerBuilderGenerator.kt:234 */
|
3692 5170 | impl ::std::convert::From<ConstraintViolation>
|
3693 5171 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3694 5172 | {
|
3695 5173 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3696 5174 | let first_validation_exception_field =
|
3697 5175 | constraint_violation.as_validation_exception_field("".to_owned());
|
3698 5176 | let validation_exception = crate::error::ValidationException {
|
3699 5177 | message: format!(
|
3700 5178 | "1 validation error detected. {}",
|
3701 5179 | &first_validation_exception_field.message
|
3702 5180 | ),
|
3703 5181 | field_list: Some(vec![first_validation_exception_field]),
|
3704 5182 | };
|
3705 5183 | Self::ConstraintViolation(
|
3706 5184 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3707 5185 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3708 5186 | )
|
3709 5187 | }
|
3710 5188 | }
|
5189 + | /* ServerBuilderGenerator.kt:244 */
|
3711 5190 | impl ::std::convert::From<Builder>
|
3712 5191 | for crate::constrained::MaybeConstrained<
|
3713 5192 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3714 5193 | >
|
3715 5194 | {
|
3716 5195 | fn from(builder: Builder) -> Self {
|
3717 5196 | Self::Unconstrained(builder)
|
3718 5197 | }
|
3719 5198 | }
|
5199 + | /* ServerBuilderGenerator.kt:446 */
|
3720 5200 | impl ::std::convert::TryFrom<Builder>
|
3721 5201 | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
3722 5202 | {
|
3723 5203 | type Error = ConstraintViolation;
|
3724 5204 |
|
3725 5205 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3726 5206 | builder.build()
|
3727 5207 | }
|
3728 5208 | }
|
3729 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
5209 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
5210 + | /* RustType.kt:516 */
|
3730 5211 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5212 + | /* ServerBuilderGenerator.kt:211 */
|
3731 5213 | pub(crate) struct Builder {
|
3732 - | pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
|
3733 - | }
|
5214 + | /* 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>>,
|
5215 + | /* ServerBuilderGenerator.kt:211 */}
|
5216 + | /* ServerBuilderGenerator.kt:215 */
|
3734 5217 | impl Builder {
|
5218 + | /* ServerBuilderGenerator.kt:426 */
|
3735 5219 | #[allow(missing_docs)] // documentation missing in model
|
5220 + | /* ServerBuilderGenerator.kt:428 */
|
3736 5221 | pub(crate) fn set_map_of_list_of_length_string(
|
3737 5222 | mut self,
|
3738 5223 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>>,
|
3739 5224 | ) -> Self {
|
5225 + | /* ServerBuilderGenerator.kt:429 */
|
3740 5226 | self.map_of_list_of_length_string = input.map(|v| v.into());
|
3741 5227 | self
|
5228 + | /* ServerBuilderGenerator.kt:428 */
|
3742 5229 | }
|
3743 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3744 - | ///
|
5230 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
5231 + | /// /* ServerBuilderGenerator.kt:260 */
|
3745 5232 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3746 5233 | ///
|
5234 + | /* ServerBuilderGenerator.kt:271 */
|
3747 5235 | pub fn build(
|
3748 5236 | self,
|
3749 5237 | ) -> Result<
|
3750 5238 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3751 5239 | ConstraintViolation,
|
3752 5240 | > {
|
3753 5241 | self.build_enforcing_all_constraints()
|
3754 5242 | }
|
5243 + | /* ServerBuilderGenerator.kt:283 */
|
3755 5244 | fn build_enforcing_all_constraints(
|
3756 5245 | self,
|
3757 5246 | ) -> Result<
|
3758 5247 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3759 5248 | ConstraintViolation,
|
3760 5249 | > {
|
5250 + | /* ServerBuilderGenerator.kt:287 */
|
3761 5251 | Ok(
|
5252 + | /* ServerBuilderGenerator.kt:542 */
|
3762 5253 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
5254 + | /* ServerBuilderGenerator.kt:546 */
|
3763 5255 | map_of_list_of_length_string: self
|
3764 5256 | .map_of_list_of_length_string
|
5257 + | /* ServerBuilderGenerator.kt:602 */
|
3765 5258 | .map(|v| match v {
|
3766 5259 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3767 5260 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3768 5261 | })
|
5262 + | /* ServerBuilderGenerator.kt:614 */
|
3769 5263 | .map(|res| {
|
3770 5264 | res.map(|v| v.into())
|
3771 5265 | .map_err(ConstraintViolation::MapOfListOfLengthString)
|
3772 5266 | })
|
3773 5267 | .transpose()?,
|
3774 - | },
|
5268 + | /* ServerBuilderGenerator.kt:542 */
|
5269 + | }, /* ServerBuilderGenerator.kt:287 */
|
3775 5270 | )
|
5271 + | /* ServerBuilderGenerator.kt:283 */
|
3776 5272 | }
|
5273 + | /* ServerBuilderGenerator.kt:215 */
|
3777 5274 | }
|
5275 + |
|
5276 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3778 5277 | }
|
3779 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
5278 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3780 5279 | pub mod query_params_targeting_map_of_list_of_length_string_operation_input {
|
3781 5280 |
|
5281 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
3782 5282 | impl ::std::convert::From<Builder>
|
3783 5283 | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
3784 5284 | {
|
3785 5285 | fn from(builder: Builder) -> Self {
|
3786 5286 | builder.build()
|
3787 5287 | }
|
3788 5288 | }
|
3789 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
5289 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
5290 + | /* RustType.kt:516 */
|
3790 5291 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5292 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3791 5293 | pub struct Builder {
|
5294 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
3792 5295 | pub(crate) map_of_list_of_length_string: ::std::option::Option<
|
3793 5296 | ::std::collections::HashMap<
|
3794 5297 | ::std::string::String,
|
3795 5298 | ::std::vec::Vec<::std::string::String>,
|
3796 5299 | >,
|
3797 5300 | >,
|
5301 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3798 5302 | }
|
5303 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3799 5304 | impl Builder {
|
5305 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
3800 5306 | #[allow(missing_docs)] // documentation missing in model
|
5307 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3801 5308 | pub fn map_of_list_of_length_string(
|
3802 5309 | mut self,
|
3803 5310 | input: ::std::option::Option<
|
3804 5311 | ::std::collections::HashMap<
|
3805 5312 | ::std::string::String,
|
3806 5313 | ::std::vec::Vec<::std::string::String>,
|
3807 5314 | >,
|
3808 5315 | >,
|
3809 5316 | ) -> Self {
|
3810 - | self.map_of_list_of_length_string = input;
|
5317 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
5318 + | self.map_of_list_of_length_string =
|
5319 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
5320 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
3811 5321 | self
|
5322 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3812 5323 | }
|
3813 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
5324 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
5325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
3814 5326 | pub fn build(
|
3815 5327 | self,
|
3816 5328 | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3817 5329 | self.build_enforcing_required_and_enum_traits()
|
3818 5330 | }
|
5331 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3819 5332 | fn build_enforcing_required_and_enum_traits(
|
3820 5333 | self,
|
3821 5334 | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
5335 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3822 5336 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
5337 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3823 5338 | map_of_list_of_length_string: self.map_of_list_of_length_string,
|
5339 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3824 5340 | }
|
5341 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3825 5342 | }
|
5343 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3826 5344 | }
|
5345 + |
|
5346 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3827 5347 | }
|
3828 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
5348 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3829 5349 | pub(crate) mod query_params_targeting_map_of_length_string_operation_input_internal {
|
3830 5350 |
|
5351 + | /* RustType.kt:516 */
|
3831 5352 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3832 - | /// Holds one variant for each of the ways the builder can fail.
|
5353 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5354 + | /* RustType.kt:516 */
|
3833 5355 | #[non_exhaustive]
|
5356 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3834 5357 | #[allow(clippy::enum_variant_names)]
|
3835 5358 | pub(crate) enum ConstraintViolation {
|
3836 - | /// Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
5359 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
5360 + | /* RustType.kt:516 */
|
3837 5361 | #[doc(hidden)]
|
5362 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3838 5363 | MapOfLengthString(crate::model::map_of_length_string_internal::ConstraintViolation),
|
5364 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3839 5365 | }
|
5366 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3840 5367 | impl ::std::fmt::Display for ConstraintViolation {
|
5368 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3841 5369 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5370 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3842 5371 | match self {
|
3843 - | ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
3844 - | }
|
5372 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
5373 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
5374 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3845 5375 | }
|
5376 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3846 5377 | }
|
5378 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3847 5379 | impl ::std::error::Error for ConstraintViolation {}
|
5380 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3848 5381 | impl ConstraintViolation {
|
3849 5382 | pub(crate) fn as_validation_exception_field(
|
3850 5383 | self,
|
3851 5384 | path: ::std::string::String,
|
3852 5385 | ) -> crate::model::ValidationExceptionField {
|
3853 5386 | match self {
|
3854 5387 | ConstraintViolation::MapOfLengthString(inner) => {
|
3855 5388 | inner.as_validation_exception_field(path + "/mapOfLengthString")
|
3856 5389 | }
|
3857 5390 | }
|
3858 5391 | }
|
3859 5392 | }
|
5393 + | /* ServerBuilderGenerator.kt:234 */
|
3860 5394 | impl ::std::convert::From<ConstraintViolation>
|
3861 5395 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3862 5396 | {
|
3863 5397 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3864 5398 | let first_validation_exception_field =
|
3865 5399 | constraint_violation.as_validation_exception_field("".to_owned());
|
3866 5400 | let validation_exception = crate::error::ValidationException {
|
3867 5401 | message: format!(
|
3868 5402 | "1 validation error detected. {}",
|
3869 5403 | &first_validation_exception_field.message
|
3870 5404 | ),
|
3871 5405 | field_list: Some(vec![first_validation_exception_field]),
|
3872 5406 | };
|
3873 5407 | Self::ConstraintViolation(
|
3874 5408 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3875 5409 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3876 5410 | )
|
3877 5411 | }
|
3878 5412 | }
|
5413 + | /* ServerBuilderGenerator.kt:244 */
|
3879 5414 | impl ::std::convert::From<Builder>
|
3880 5415 | for crate::constrained::MaybeConstrained<
|
3881 5416 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3882 5417 | >
|
3883 5418 | {
|
3884 5419 | fn from(builder: Builder) -> Self {
|
3885 5420 | Self::Unconstrained(builder)
|
3886 5421 | }
|
3887 5422 | }
|
5423 + | /* ServerBuilderGenerator.kt:446 */
|
3888 5424 | impl ::std::convert::TryFrom<Builder>
|
3889 5425 | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
3890 5426 | {
|
3891 5427 | type Error = ConstraintViolation;
|
3892 5428 |
|
3893 5429 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3894 5430 | builder.build()
|
3895 5431 | }
|
3896 5432 | }
|
3897 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
5433 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
5434 + | /* RustType.kt:516 */
|
3898 5435 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5436 + | /* ServerBuilderGenerator.kt:211 */
|
3899 5437 | pub(crate) struct Builder {
|
5438 + | /* ServerBuilderGenerator.kt:308 */
|
3900 5439 | pub(crate) map_of_length_string: ::std::option::Option<
|
3901 5440 | crate::constrained::MaybeConstrained<
|
3902 5441 | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
3903 5442 | >,
|
3904 5443 | >,
|
5444 + | /* ServerBuilderGenerator.kt:211 */
|
3905 5445 | }
|
5446 + | /* ServerBuilderGenerator.kt:215 */
|
3906 5447 | impl Builder {
|
5448 + | /* ServerBuilderGenerator.kt:426 */
|
3907 5449 | #[allow(missing_docs)] // documentation missing in model
|
5450 + | /* ServerBuilderGenerator.kt:428 */
|
3908 5451 | pub(crate) fn set_map_of_length_string(
|
3909 5452 | mut self,
|
3910 5453 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
|
3911 5454 | ) -> Self {
|
5455 + | /* ServerBuilderGenerator.kt:429 */
|
3912 5456 | self.map_of_length_string = input.map(|v| v.into());
|
3913 5457 | self
|
5458 + | /* ServerBuilderGenerator.kt:428 */
|
3914 5459 | }
|
3915 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3916 - | ///
|
5460 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
5461 + | /// /* ServerBuilderGenerator.kt:260 */
|
3917 5462 | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3918 5463 | ///
|
5464 + | /* ServerBuilderGenerator.kt:271 */
|
3919 5465 | pub fn build(
|
3920 5466 | self,
|
3921 5467 | ) -> Result<
|
3922 5468 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3923 5469 | ConstraintViolation,
|
3924 5470 | > {
|
3925 5471 | self.build_enforcing_all_constraints()
|
3926 5472 | }
|
5473 + | /* ServerBuilderGenerator.kt:283 */
|
3927 5474 | fn build_enforcing_all_constraints(
|
3928 5475 | self,
|
3929 5476 | ) -> Result<
|
3930 5477 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3931 5478 | ConstraintViolation,
|
3932 5479 | > {
|
5480 + | /* ServerBuilderGenerator.kt:287 */
|
3933 5481 | Ok(
|
5482 + | /* ServerBuilderGenerator.kt:542 */
|
3934 5483 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
5484 + | /* ServerBuilderGenerator.kt:546 */
|
3935 5485 | map_of_length_string: self
|
3936 5486 | .map_of_length_string
|
5487 + | /* ServerBuilderGenerator.kt:602 */
|
3937 5488 | .map(|v| match v {
|
3938 5489 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3939 5490 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3940 5491 | })
|
5492 + | /* ServerBuilderGenerator.kt:614 */
|
3941 5493 | .map(|res| {
|
3942 5494 | res.map(|v| v.into())
|
3943 5495 | .map_err(ConstraintViolation::MapOfLengthString)
|
3944 5496 | })
|
3945 5497 | .transpose()?,
|
3946 - | },
|
5498 + | /* ServerBuilderGenerator.kt:542 */
|
5499 + | }, /* ServerBuilderGenerator.kt:287 */
|
3947 5500 | )
|
5501 + | /* ServerBuilderGenerator.kt:283 */
|
3948 5502 | }
|
5503 + | /* ServerBuilderGenerator.kt:215 */
|
3949 5504 | }
|
5505 + |
|
5506 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3950 5507 | }
|
3951 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
5508 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3952 5509 | pub mod query_params_targeting_map_of_length_string_operation_input {
|
3953 5510 |
|
5511 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
3954 5512 | impl ::std::convert::From<Builder>
|
3955 5513 | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
3956 5514 | {
|
3957 5515 | fn from(builder: Builder) -> Self {
|
3958 5516 | builder.build()
|
3959 5517 | }
|
3960 5518 | }
|
3961 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
5519 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
5520 + | /* RustType.kt:516 */
|
3962 5521 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5522 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3963 5523 | pub struct Builder {
|
5524 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
3964 5525 | pub(crate) map_of_length_string: ::std::option::Option<
|
3965 5526 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3966 5527 | >,
|
5528 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3967 5529 | }
|
5530 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3968 5531 | impl Builder {
|
5532 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
3969 5533 | #[allow(missing_docs)] // documentation missing in model
|
5534 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3970 5535 | pub fn map_of_length_string(
|
3971 5536 | mut self,
|
3972 5537 | input: ::std::option::Option<
|
3973 5538 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3974 5539 | >,
|
3975 5540 | ) -> Self {
|
3976 - | self.map_of_length_string = input;
|
5541 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
5542 + | self.map_of_length_string =
|
5543 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
5544 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
3977 5545 | self
|
5546 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3978 5547 | }
|
3979 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
5548 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
5549 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
3980 5550 | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3981 5551 | self.build_enforcing_required_and_enum_traits()
|
3982 5552 | }
|
5553 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3983 5554 | fn build_enforcing_required_and_enum_traits(
|
3984 5555 | self,
|
3985 5556 | ) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
5557 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3986 5558 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
5559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3987 5560 | map_of_length_string: self.map_of_length_string,
|
5561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3988 5562 | }
|
5563 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3989 5564 | }
|
5565 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3990 5566 | }
|
5567 + |
|
5568 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3991 5569 | }
|
3992 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
5570 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3993 5571 | pub(crate) mod query_params_targeting_length_map_operation_input_internal {
|
3994 5572 |
|
5573 + | /* RustType.kt:516 */
|
3995 5574 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3996 - | /// Holds one variant for each of the ways the builder can fail.
|
5575 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5576 + | /* RustType.kt:516 */
|
3997 5577 | #[non_exhaustive]
|
5578 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3998 5579 | #[allow(clippy::enum_variant_names)]
|
3999 5580 | pub(crate) enum ConstraintViolation {
|
4000 - | /// Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
5581 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
5582 + | /* RustType.kt:516 */
|
4001 5583 | #[doc(hidden)]
|
5584 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4002 5585 | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
5586 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4003 5587 | }
|
5588 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4004 5589 | impl ::std::fmt::Display for ConstraintViolation {
|
5590 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4005 5591 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5592 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4006 5593 | match self {
|
4007 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
4008 - | }
|
5594 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
5595 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
5596 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4009 5597 | }
|
5598 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4010 5599 | }
|
5600 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4011 5601 | impl ::std::error::Error for ConstraintViolation {}
|
5602 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4012 5603 | impl ConstraintViolation {
|
4013 5604 | pub(crate) fn as_validation_exception_field(
|
4014 5605 | self,
|
4015 5606 | path: ::std::string::String,
|
4016 5607 | ) -> crate::model::ValidationExceptionField {
|
4017 5608 | match self {
|
4018 5609 | ConstraintViolation::LengthMap(inner) => {
|
4019 5610 | inner.as_validation_exception_field(path + "/lengthMap")
|
4020 5611 | }
|
4021 5612 | }
|
4022 5613 | }
|
4023 5614 | }
|
5615 + | /* ServerBuilderGenerator.kt:234 */
|
4024 5616 | impl ::std::convert::From<ConstraintViolation>
|
4025 5617 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4026 5618 | {
|
4027 5619 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4028 5620 | let first_validation_exception_field =
|
4029 5621 | constraint_violation.as_validation_exception_field("".to_owned());
|
4030 5622 | let validation_exception = crate::error::ValidationException {
|
4031 5623 | message: format!(
|
4032 5624 | "1 validation error detected. {}",
|
4033 5625 | &first_validation_exception_field.message
|
4034 5626 | ),
|
4035 5627 | field_list: Some(vec![first_validation_exception_field]),
|
4036 5628 | };
|
4037 5629 | Self::ConstraintViolation(
|
4038 5630 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4039 5631 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4040 5632 | )
|
4041 5633 | }
|
4042 5634 | }
|
5635 + | /* ServerBuilderGenerator.kt:244 */
|
4043 5636 | impl ::std::convert::From<Builder>
|
4044 5637 | for crate::constrained::MaybeConstrained<
|
4045 5638 | crate::input::QueryParamsTargetingLengthMapOperationInput,
|
4046 5639 | >
|
4047 5640 | {
|
4048 5641 | fn from(builder: Builder) -> Self {
|
4049 5642 | Self::Unconstrained(builder)
|
4050 5643 | }
|
4051 5644 | }
|
5645 + | /* ServerBuilderGenerator.kt:446 */
|
4052 5646 | impl ::std::convert::TryFrom<Builder>
|
4053 5647 | for crate::input::QueryParamsTargetingLengthMapOperationInput
|
4054 5648 | {
|
4055 5649 | type Error = ConstraintViolation;
|
4056 5650 |
|
4057 5651 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4058 5652 | builder.build()
|
4059 5653 | }
|
4060 5654 | }
|
4061 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
5655 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
5656 + | /* RustType.kt:516 */
|
4062 5657 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5658 + | /* ServerBuilderGenerator.kt:211 */
|
4063 5659 | pub(crate) struct Builder {
|
5660 + | /* ServerBuilderGenerator.kt:308 */
|
4064 5661 | pub(crate) length_map:
|
4065 5662 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
5663 + | /* ServerBuilderGenerator.kt:211 */
|
4066 5664 | }
|
5665 + | /* ServerBuilderGenerator.kt:215 */
|
4067 5666 | impl Builder {
|
5667 + | /* ServerBuilderGenerator.kt:426 */
|
4068 5668 | #[allow(missing_docs)] // documentation missing in model
|
5669 + | /* ServerBuilderGenerator.kt:428 */
|
4069 5670 | pub(crate) fn set_length_map(
|
4070 5671 | mut self,
|
4071 5672 | input: Option<
|
4072 5673 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4073 5674 | >,
|
4074 5675 | ) -> Self {
|
5676 + | /* ServerBuilderGenerator.kt:429 */
|
4075 5677 | self.length_map = input.map(|v| v.into());
|
4076 5678 | self
|
5679 + | /* ServerBuilderGenerator.kt:428 */
|
4077 5680 | }
|
4078 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4079 - | ///
|
5681 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
5682 + | /// /* ServerBuilderGenerator.kt:260 */
|
4080 5683 | /// The builder fails to construct a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
4081 5684 | ///
|
5685 + | /* ServerBuilderGenerator.kt:271 */
|
4082 5686 | pub fn build(
|
4083 5687 | self,
|
4084 5688 | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
4085 5689 | {
|
4086 5690 | self.build_enforcing_all_constraints()
|
4087 5691 | }
|
5692 + | /* ServerBuilderGenerator.kt:283 */
|
4088 5693 | fn build_enforcing_all_constraints(
|
4089 5694 | self,
|
4090 5695 | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
4091 5696 | {
|
4092 - | Ok(crate::input::QueryParamsTargetingLengthMapOperationInput {
|
5697 + | /* ServerBuilderGenerator.kt:287 */
|
5698 + | Ok(
|
5699 + | /* ServerBuilderGenerator.kt:542 */
|
5700 + | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
5701 + | /* ServerBuilderGenerator.kt:546 */
|
4093 5702 | length_map: self
|
4094 5703 | .length_map
|
5704 + | /* ServerBuilderGenerator.kt:602 */
|
4095 5705 | .map(|v| match v {
|
4096 5706 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4097 5707 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4098 5708 | })
|
5709 + | /* ServerBuilderGenerator.kt:614 */
|
4099 5710 | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
4100 5711 | .transpose()?
|
5712 + | /* ServerBuilderGenerator.kt:630 */
|
4101 5713 | .map(|v: crate::model::ConBMap| v.into()),
|
4102 - | })
|
5714 + | /* ServerBuilderGenerator.kt:542 */
|
5715 + | }, /* ServerBuilderGenerator.kt:287 */
|
5716 + | )
|
5717 + | /* ServerBuilderGenerator.kt:283 */
|
4103 5718 | }
|
5719 + | /* ServerBuilderGenerator.kt:215 */
|
4104 5720 | }
|
5721 + |
|
5722 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4105 5723 | }
|
4106 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
5724 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4107 5725 | pub mod query_params_targeting_length_map_operation_input {
|
4108 5726 |
|
5727 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
4109 5728 | impl ::std::convert::From<Builder> for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4110 5729 | fn from(builder: Builder) -> Self {
|
4111 5730 | builder.build()
|
4112 5731 | }
|
4113 5732 | }
|
4114 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
5733 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
5734 + | /* RustType.kt:516 */
|
4115 5735 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5736 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4116 5737 | pub struct Builder {
|
5738 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4117 5739 | pub(crate) length_map: ::std::option::Option<
|
4118 5740 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4119 5741 | >,
|
5742 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4120 5743 | }
|
5744 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4121 5745 | impl Builder {
|
5746 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4122 5747 | #[allow(missing_docs)] // documentation missing in model
|
5748 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4123 5749 | pub fn length_map(
|
4124 5750 | mut self,
|
4125 5751 | input: ::std::option::Option<
|
4126 5752 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4127 5753 | >,
|
4128 5754 | ) -> Self {
|
4129 - | self.length_map = input;
|
5755 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
5756 + | self.length_map =
|
5757 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
5758 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4130 5759 | self
|
5760 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4131 5761 | }
|
4132 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
5762 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
5763 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
4133 5764 | pub fn build(self) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4134 5765 | self.build_enforcing_required_and_enum_traits()
|
4135 5766 | }
|
5767 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
4136 5768 | fn build_enforcing_required_and_enum_traits(
|
4137 5769 | self,
|
4138 5770 | ) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
5771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
4139 5772 | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
5773 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
4140 5774 | length_map: self.length_map,
|
5775 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
4141 5776 | }
|
5777 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
4142 5778 | }
|
5779 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4143 5780 | }
|
5781 + |
|
5782 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4144 5783 | }
|
4145 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
5784 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4146 5785 | pub(crate) mod constrained_recursive_shapes_operation_input_internal {
|
4147 5786 |
|
5787 + | /* RustType.kt:516 */
|
4148 5788 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4149 - | /// Holds one variant for each of the ways the builder can fail.
|
5789 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5790 + | /* RustType.kt:516 */
|
4150 5791 | #[non_exhaustive]
|
5792 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4151 5793 | #[allow(clippy::enum_variant_names)]
|
4152 5794 | pub(crate) enum ConstraintViolation {
|
4153 - | /// Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
5795 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
5796 + | /* RustType.kt:516 */
|
4154 5797 | #[doc(hidden)]
|
5798 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4155 5799 | Nested(crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation),
|
4156 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
5800 + | /// /* ServerBuilderConstraintViolations.kt:138 */`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
5801 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4157 5802 | MissingRecursiveList,
|
4158 - | /// Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
5803 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
5804 + | /* RustType.kt:516 */
|
4159 5805 | #[doc(hidden)]
|
5806 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4160 5807 | RecursiveList(crate::model::recursive_list_internal::ConstraintViolation),
|
5808 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4161 5809 | }
|
5810 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4162 5811 | impl ::std::fmt::Display for ConstraintViolation {
|
5812 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4163 5813 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5814 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4164 5815 | match self {
|
4165 - | ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
4166 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4167 - | ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
4168 - | }
|
5816 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
5817 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
5818 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
5819 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
5820 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4169 5821 | }
|
5822 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4170 5823 | }
|
5824 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4171 5825 | impl ::std::error::Error for ConstraintViolation {}
|
5826 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4172 5827 | impl ConstraintViolation {
|
4173 5828 | pub(crate) fn as_validation_exception_field(
|
4174 5829 | self,
|
4175 5830 | path: ::std::string::String,
|
4176 5831 | ) -> crate::model::ValidationExceptionField {
|
4177 5832 | match self {
|
4178 5833 | ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
|
4179 5834 | ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
|
4180 5835 | message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
|
4181 5836 | path: path + "/recursiveList",
|
4182 5837 | },
|
4183 5838 | ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
|
4184 5839 | }
|
4185 5840 | }
|
4186 5841 | }
|
5842 + | /* ServerBuilderGenerator.kt:234 */
|
4187 5843 | impl ::std::convert::From<ConstraintViolation>
|
4188 5844 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4189 5845 | {
|
4190 5846 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4191 5847 | let first_validation_exception_field =
|
4192 5848 | constraint_violation.as_validation_exception_field("".to_owned());
|
4193 5849 | let validation_exception = crate::error::ValidationException {
|
4194 5850 | message: format!(
|
4195 5851 | "1 validation error detected. {}",
|
4196 5852 | &first_validation_exception_field.message
|
4197 5853 | ),
|
4198 5854 | field_list: Some(vec![first_validation_exception_field]),
|
4199 5855 | };
|
4200 5856 | Self::ConstraintViolation(
|
4201 5857 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4202 5858 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4203 5859 | )
|
4204 5860 | }
|
4205 5861 | }
|
5862 + | /* ServerBuilderGenerator.kt:244 */
|
4206 5863 | impl ::std::convert::From<Builder>
|
4207 5864 | for crate::constrained::MaybeConstrained<
|
4208 5865 | crate::input::ConstrainedRecursiveShapesOperationInput,
|
4209 5866 | >
|
4210 5867 | {
|
4211 5868 | fn from(builder: Builder) -> Self {
|
4212 5869 | Self::Unconstrained(builder)
|
4213 5870 | }
|
4214 5871 | }
|
5872 + | /* ServerBuilderGenerator.kt:446 */
|
4215 5873 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
4216 5874 | type Error = ConstraintViolation;
|
4217 5875 |
|
4218 5876 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4219 5877 | builder.build()
|
4220 5878 | }
|
4221 5879 | }
|
4222 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
5880 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
5881 + | /* RustType.kt:516 */
|
4223 5882 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5883 + | /* ServerBuilderGenerator.kt:211 */
|
4224 5884 | pub(crate) struct Builder {
|
5885 + | /* ServerBuilderGenerator.kt:308 */
|
4225 5886 | pub(crate) nested: ::std::option::Option<
|
4226 5887 | crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
|
4227 5888 | >,
|
5889 + | /* ServerBuilderGenerator.kt:308 */
|
4228 5890 | pub(crate) recursive_list: ::std::option::Option<
|
4229 5891 | crate::constrained::MaybeConstrained<
|
4230 5892 | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
4231 5893 | >,
|
4232 5894 | >,
|
5895 + | /* ServerBuilderGenerator.kt:211 */
|
4233 5896 | }
|
5897 + | /* ServerBuilderGenerator.kt:215 */
|
4234 5898 | impl Builder {
|
5899 + | /* ServerBuilderGenerator.kt:426 */
|
4235 5900 | #[allow(missing_docs)] // documentation missing in model
|
5901 + | /* ServerBuilderGenerator.kt:428 */
|
4236 5902 | pub(crate) fn set_nested(
|
4237 5903 | mut self,
|
4238 5904 | input: Option<
|
4239 5905 | impl ::std::convert::Into<
|
4240 5906 | crate::constrained::MaybeConstrained<
|
4241 5907 | crate::model::RecursiveShapesInputOutputNested1,
|
4242 5908 | >,
|
4243 5909 | >,
|
4244 5910 | >,
|
4245 5911 | ) -> Self {
|
5912 + | /* ServerBuilderGenerator.kt:429 */
|
4246 5913 | self.nested = input.map(|v| v.into());
|
4247 5914 | self
|
5915 + | /* ServerBuilderGenerator.kt:428 */
|
4248 5916 | }
|
5917 + | /* ServerBuilderGenerator.kt:426 */
|
4249 5918 | #[allow(missing_docs)] // documentation missing in model
|
5919 + | /* ServerBuilderGenerator.kt:428 */
|
4250 5920 | pub(crate) fn set_recursive_list(
|
4251 5921 | mut self,
|
4252 5922 | input: impl ::std::convert::Into<
|
4253 5923 | crate::constrained::MaybeConstrained<
|
4254 5924 | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
4255 5925 | >,
|
4256 5926 | >,
|
4257 5927 | ) -> Self {
|
5928 + | /* ServerBuilderGenerator.kt:429 */
|
4258 5929 | self.recursive_list = Some(input.into());
|
4259 5930 | self
|
5931 + | /* ServerBuilderGenerator.kt:428 */
|
4260 5932 | }
|
4261 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4262 - | ///
|
5933 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
5934 + | /// /* ServerBuilderGenerator.kt:260 */
|
4263 5935 | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
4264 5936 | ///
|
4265 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5937 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5938 + | /* ServerBuilderGenerator.kt:271 */
|
4266 5939 | pub fn build(
|
4267 5940 | self,
|
4268 5941 | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4269 5942 | {
|
4270 5943 | self.build_enforcing_all_constraints()
|
4271 5944 | }
|
5945 + | /* ServerBuilderGenerator.kt:283 */
|
4272 5946 | fn build_enforcing_all_constraints(
|
4273 5947 | self,
|
4274 5948 | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4275 5949 | {
|
4276 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
5950 + | /* ServerBuilderGenerator.kt:287 */
|
5951 + | Ok(
|
5952 + | /* ServerBuilderGenerator.kt:542 */
|
5953 + | crate::input::ConstrainedRecursiveShapesOperationInput {
|
5954 + | /* ServerBuilderGenerator.kt:546 */
|
4277 5955 | nested: self
|
4278 5956 | .nested
|
5957 + | /* ServerBuilderGenerator.kt:602 */
|
4279 5958 | .map(|v| match v {
|
4280 5959 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4281 5960 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4282 5961 | })
|
5962 + | /* ServerBuilderGenerator.kt:614 */
|
4283 5963 | .map(|res| res.map_err(ConstraintViolation::Nested))
|
4284 5964 | .transpose()?,
|
5965 + | /* ServerBuilderGenerator.kt:546 */
|
4285 5966 | recursive_list: self
|
4286 5967 | .recursive_list
|
5968 + | /* ServerBuilderGenerator.kt:602 */
|
4287 5969 | .map(|v| match v {
|
4288 5970 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4289 5971 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4290 5972 | })
|
5973 + | /* ServerBuilderGenerator.kt:614 */
|
4291 5974 | .map(|res| {
|
4292 5975 | res.map(|v| v.into())
|
4293 5976 | .map_err(ConstraintViolation::RecursiveList)
|
4294 5977 | })
|
4295 5978 | .transpose()?
|
5979 + | /* ServerBuilderGenerator.kt:569 */
|
4296 5980 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4297 - | })
|
5981 + | /* ServerBuilderGenerator.kt:542 */
|
5982 + | }, /* ServerBuilderGenerator.kt:287 */
|
5983 + | )
|
5984 + | /* ServerBuilderGenerator.kt:283 */
|
4298 5985 | }
|
5986 + | /* ServerBuilderGenerator.kt:215 */
|
4299 5987 | }
|
5988 + |
|
5989 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4300 5990 | }
|
4301 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
5991 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4302 5992 | pub mod constrained_recursive_shapes_operation_input {
|
4303 5993 |
|
5994 + | /* RustType.kt:516 */
|
4304 5995 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4305 - | /// Holds one variant for each of the ways the builder can fail.
|
4306 - |
|
5996 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5997 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4307 5998 | #[allow(clippy::enum_variant_names)]
|
4308 5999 | pub enum ConstraintViolation {
|
4309 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
6000 + | /// /* ServerBuilderConstraintViolations.kt:138 */`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
6001 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4310 6002 | MissingRecursiveList,
|
6003 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4311 6004 | }
|
6005 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4312 6006 | impl ::std::fmt::Display for ConstraintViolation {
|
6007 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4313 6008 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6009 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4314 6010 | match self {
|
4315 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4316 - | }
|
6011 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
6012 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
6013 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4317 6014 | }
|
6015 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4318 6016 | }
|
6017 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4319 6018 | impl ::std::error::Error for ConstraintViolation {}
|
6019 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
4320 6020 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
4321 6021 | type Error = ConstraintViolation;
|
4322 6022 |
|
4323 6023 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4324 6024 | builder.build()
|
4325 6025 | }
|
4326 6026 | }
|
4327 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
6027 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
6028 + | /* RustType.kt:516 */
|
4328 6029 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6030 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4329 6031 | pub struct Builder {
|
6032 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4330 6033 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
6034 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4331 6035 | pub(crate) recursive_list:
|
4332 6036 | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
6037 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4333 6038 | }
|
6039 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4334 6040 | impl Builder {
|
6041 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4335 6042 | #[allow(missing_docs)] // documentation missing in model
|
6043 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4336 6044 | pub fn nested(
|
4337 6045 | mut self,
|
4338 6046 | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4339 6047 | ) -> Self {
|
4340 - | self.nested = input;
|
6048 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6049 + | self.nested =
|
6050 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6051 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4341 6052 | self
|
6053 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4342 6054 | }
|
6055 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4343 6056 | #[allow(missing_docs)] // documentation missing in model
|
6057 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4344 6058 | pub fn recursive_list(
|
4345 6059 | mut self,
|
4346 6060 | input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
4347 6061 | ) -> Self {
|
4348 - | self.recursive_list = Some(input);
|
6062 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6063 + | self.recursive_list =
|
6064 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
6065 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6066 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
6067 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4349 6068 | self
|
6069 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4350 6070 | }
|
4351 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4352 - | ///
|
6071 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
6072 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
4353 6073 | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
4354 6074 | ///
|
6075 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
4355 6076 | pub fn build(
|
4356 6077 | self,
|
4357 6078 | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4358 6079 | {
|
4359 6080 | self.build_enforcing_required_and_enum_traits()
|
4360 6081 | }
|
6082 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
4361 6083 | fn build_enforcing_required_and_enum_traits(
|
4362 6084 | self,
|
4363 6085 | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4364 6086 | {
|
4365 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
6087 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
6088 + | Ok(
|
6089 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
6090 + | crate::input::ConstrainedRecursiveShapesOperationInput {
|
6091 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
4366 6092 | nested: self.nested,
|
6093 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
4367 6094 | recursive_list: self
|
4368 6095 | .recursive_list
|
6096 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
4369 6097 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4370 - | })
|
6098 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
6099 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
6100 + | )
|
6101 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
4371 6102 | }
|
6103 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4372 6104 | }
|
6105 + |
|
6106 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4373 6107 | }
|
4374 - | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
6108 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4375 6109 | pub(crate) mod constrained_http_payload_bound_shape_operation_input_internal {
|
4376 6110 |
|
6111 + | /* RustType.kt:516 */
|
4377 6112 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4378 - | /// Holds one variant for each of the ways the builder can fail.
|
6113 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
6114 + | /* RustType.kt:516 */
|
4379 6115 | #[non_exhaustive]
|
6116 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4380 6117 | #[allow(clippy::enum_variant_names)]
|
4381 6118 | pub(crate) enum ConstraintViolation {
|
4382 - | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
6119 + | /// /* ServerBuilderConstraintViolations.kt:138 */`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
6120 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4383 6121 | MissingHttpPayloadBoundConstrainedShape,
|
4384 - | /// Constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
6122 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
6123 + | /* RustType.kt:516 */
|
4385 6124 | #[doc(hidden)]
|
6125 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4386 6126 | HttpPayloadBoundConstrainedShape(crate::model::con_a_internal::ConstraintViolation),
|
6127 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4387 6128 | }
|
6129 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4388 6130 | impl ::std::fmt::Display for ConstraintViolation {
|
6131 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4389 6132 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6133 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4390 6134 | match self {
|
4391 - | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4392 - | ConstraintViolation::HttpPayloadBoundConstrainedShape(_) => write!(f, "constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4393 - | }
|
6135 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
6136 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::HttpPayloadBoundConstrainedShape(_) => write!(f, "constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
6137 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
6138 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4394 6139 | }
|
6140 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4395 6141 | }
|
6142 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4396 6143 | impl ::std::error::Error for ConstraintViolation {}
|
6144 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4397 6145 | impl ConstraintViolation {
|
4398 6146 | pub(crate) fn as_validation_exception_field(
|
4399 6147 | self,
|
4400 6148 | path: ::std::string::String,
|
4401 6149 | ) -> crate::model::ValidationExceptionField {
|
4402 6150 | match self {
|
4403 6151 | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => crate::model::ValidationExceptionField {
|
4404 6152 | message: format!("Value at '{}/httpPayloadBoundConstrainedShape' failed to satisfy constraint: Member must not be null", path),
|
4405 6153 | path: path + "/httpPayloadBoundConstrainedShape",
|
4406 6154 | },
|
4407 6155 | ConstraintViolation::HttpPayloadBoundConstrainedShape(inner) => inner.as_validation_exception_field(path + "/httpPayloadBoundConstrainedShape"),
|
4408 6156 | }
|
4409 6157 | }
|
4410 6158 | }
|
6159 + | /* ServerBuilderGenerator.kt:234 */
|
4411 6160 | impl ::std::convert::From<ConstraintViolation>
|
4412 6161 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4413 6162 | {
|
4414 6163 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4415 6164 | let first_validation_exception_field =
|
4416 6165 | constraint_violation.as_validation_exception_field("".to_owned());
|
4417 6166 | let validation_exception = crate::error::ValidationException {
|
4418 6167 | message: format!(
|
4419 6168 | "1 validation error detected. {}",
|
4420 6169 | &first_validation_exception_field.message
|
4421 6170 | ),
|
4422 6171 | field_list: Some(vec![first_validation_exception_field]),
|
4423 6172 | };
|
4424 6173 | Self::ConstraintViolation(
|
4425 6174 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4426 6175 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4427 6176 | )
|
4428 6177 | }
|
4429 6178 | }
|
6179 + | /* ServerBuilderGenerator.kt:244 */
|
4430 6180 | impl ::std::convert::From<Builder>
|
4431 6181 | for crate::constrained::MaybeConstrained<
|
4432 6182 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput,
|
4433 6183 | >
|
4434 6184 | {
|
4435 6185 | fn from(builder: Builder) -> Self {
|
4436 6186 | Self::Unconstrained(builder)
|
4437 6187 | }
|
4438 6188 | }
|
6189 + | /* ServerBuilderGenerator.kt:446 */
|
4439 6190 | impl ::std::convert::TryFrom<Builder>
|
4440 6191 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
4441 6192 | {
|
4442 6193 | type Error = ConstraintViolation;
|
4443 6194 |
|
4444 6195 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4445 6196 | builder.build()
|
4446 6197 | }
|
4447 6198 | }
|
4448 - | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
6199 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
6200 + | /* RustType.kt:516 */
|
4449 6201 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6202 + | /* ServerBuilderGenerator.kt:211 */
|
4450 6203 | pub(crate) struct Builder {
|
6204 + | /* ServerBuilderGenerator.kt:308 */
|
4451 6205 | pub(crate) http_payload_bound_constrained_shape:
|
4452 6206 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
6207 + | /* ServerBuilderGenerator.kt:211 */
|
4453 6208 | }
|
6209 + | /* ServerBuilderGenerator.kt:215 */
|
4454 6210 | impl Builder {
|
6211 + | /* ServerBuilderGenerator.kt:426 */
|
4455 6212 | #[allow(missing_docs)] // documentation missing in model
|
6213 + | /* ServerBuilderGenerator.kt:428 */
|
4456 6214 | pub(crate) fn set_http_payload_bound_constrained_shape(
|
4457 6215 | mut self,
|
4458 6216 | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
4459 6217 | ) -> Self {
|
6218 + | /* ServerBuilderGenerator.kt:429 */
|
4460 6219 | self.http_payload_bound_constrained_shape = Some(input.into());
|
4461 6220 | self
|
6221 + | /* ServerBuilderGenerator.kt:428 */
|
4462 6222 | }
|
4463 - | /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4464 - | ///
|
6223 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
6224 + | /// /* ServerBuilderGenerator.kt:260 */
|
4465 6225 | /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) if a [`ConstraintViolation`] occurs.
|
4466 6226 | ///
|
4467 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6227 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6228 + | /* ServerBuilderGenerator.kt:271 */
|
4468 6229 | pub fn build(
|
4469 6230 | self,
|
4470 6231 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
4471 6232 | {
|
4472 6233 | self.build_enforcing_all_constraints()
|
4473 6234 | }
|
6235 + | /* ServerBuilderGenerator.kt:283 */
|
4474 6236 | fn build_enforcing_all_constraints(
|
4475 6237 | self,
|
4476 6238 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
4477 6239 | {
|
6240 + | /* ServerBuilderGenerator.kt:287 */
|
4478 6241 | Ok(
|
6242 + | /* ServerBuilderGenerator.kt:542 */
|
4479 6243 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
6244 + | /* ServerBuilderGenerator.kt:546 */
|
4480 6245 | http_payload_bound_constrained_shape: self
|
4481 6246 | .http_payload_bound_constrained_shape
|
6247 + | /* ServerBuilderGenerator.kt:602 */
|
4482 6248 | .map(|v| match v {
|
4483 6249 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4484 6250 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4485 6251 | })
|
6252 + | /* ServerBuilderGenerator.kt:614 */
|
4486 6253 | .map(|res| {
|
4487 6254 | res.map_err(ConstraintViolation::HttpPayloadBoundConstrainedShape)
|
4488 6255 | })
|
4489 6256 | .transpose()?
|
6257 + | /* ServerBuilderGenerator.kt:569 */
|
4490 6258 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
4491 - | },
|
6259 + | /* ServerBuilderGenerator.kt:542 */
|
6260 + | }, /* ServerBuilderGenerator.kt:287 */
|
4492 6261 | )
|
6262 + | /* ServerBuilderGenerator.kt:283 */
|
4493 6263 | }
|
6264 + | /* ServerBuilderGenerator.kt:215 */
|
4494 6265 | }
|
6266 + |
|
6267 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4495 6268 | }
|
4496 - | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
6269 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4497 6270 | pub mod constrained_http_payload_bound_shape_operation_input {
|
4498 6271 |
|
6272 + | /* RustType.kt:516 */
|
4499 6273 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4500 - | /// Holds one variant for each of the ways the builder can fail.
|
4501 - |
|
6274 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
6275 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4502 6276 | #[allow(clippy::enum_variant_names)]
|
4503 6277 | pub enum ConstraintViolation {
|
4504 - | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
6278 + | /// /* ServerBuilderConstraintViolations.kt:138 */`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
6279 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4505 6280 | MissingHttpPayloadBoundConstrainedShape,
|
6281 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4506 6282 | }
|
6283 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4507 6284 | impl ::std::fmt::Display for ConstraintViolation {
|
6285 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4508 6286 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6287 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4509 6288 | match self {
|
4510 - | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4511 - | }
|
6289 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
6290 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
6291 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4512 6292 | }
|
6293 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4513 6294 | }
|
6295 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4514 6296 | impl ::std::error::Error for ConstraintViolation {}
|
6297 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
4515 6298 | impl ::std::convert::TryFrom<Builder>
|
4516 6299 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
4517 6300 | {
|
4518 6301 | type Error = ConstraintViolation;
|
4519 6302 |
|
4520 6303 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4521 6304 | builder.build()
|
4522 6305 | }
|
4523 6306 | }
|
4524 - | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
6307 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
6308 + | /* RustType.kt:516 */
|
4525 6309 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6310 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4526 6311 | pub struct Builder {
|
6312 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4527 6313 | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
6314 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4528 6315 | }
|
6316 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4529 6317 | impl Builder {
|
6318 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4530 6319 | #[allow(missing_docs)] // documentation missing in model
|
6320 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4531 6321 | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
4532 - | self.http_payload_bound_constrained_shape = Some(input);
|
6322 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6323 + | self.http_payload_bound_constrained_shape =
|
6324 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
6325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6326 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
6327 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4533 6328 | self
|
6329 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4534 6330 | }
|
4535 - | /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4536 - | ///
|
6331 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
6332 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
4537 6333 | /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) if you do not provide a value for all non-`Option`al members.
|
4538 6334 | ///
|
6335 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
4539 6336 | pub fn build(
|
4540 6337 | self,
|
4541 6338 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
4542 6339 | {
|
4543 6340 | self.build_enforcing_required_and_enum_traits()
|
4544 6341 | }
|
6342 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
4545 6343 | fn build_enforcing_required_and_enum_traits(
|
4546 6344 | self,
|
4547 6345 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
4548 6346 | {
|
6347 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
4549 6348 | Ok(
|
6349 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
4550 6350 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
6351 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
4551 6352 | http_payload_bound_constrained_shape: self
|
4552 6353 | .http_payload_bound_constrained_shape
|
6354 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
4553 6355 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
4554 - | },
|
6356 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
6357 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
4555 6358 | )
|
6359 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
4556 6360 | }
|
6361 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4557 6362 | }
|
6363 + |
|
6364 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4558 6365 | }
|
4559 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
6366 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4560 6367 | pub(crate) mod constrained_http_bound_shapes_operation_input_internal {
|
4561 6368 |
|
6369 + | /* RustType.kt:516 */
|
4562 6370 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4563 - | /// Holds one variant for each of the ways the builder can fail.
|
6371 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
6372 + | /* RustType.kt:516 */
|
4564 6373 | #[non_exhaustive]
|
6374 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4565 6375 | #[allow(clippy::enum_variant_names)]
|
4566 6376 | pub(crate) enum ConstraintViolation {
|
4567 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6377 + | /// /* ServerBuilderConstraintViolations.kt:138 */`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6378 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4568 6379 | MissingLengthStringLabel,
|
4569 - | /// Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6380 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6381 + | /* RustType.kt:516 */
|
4570 6382 | #[doc(hidden)]
|
6383 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4571 6384 | LengthStringLabel(crate::model::length_string_internal::ConstraintViolation),
|
4572 - | /// Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6385 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6386 + | /* RustType.kt:516 */
|
4573 6387 | #[doc(hidden)]
|
6388 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4574 6389 | RangeIntegerLabel(crate::model::range_integer_internal::ConstraintViolation),
|
4575 - | /// Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6390 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6391 + | /* RustType.kt:516 */
|
4576 6392 | #[doc(hidden)]
|
6393 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4577 6394 | RangeShortLabel(crate::model::range_short_internal::ConstraintViolation),
|
4578 - | /// Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6395 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6396 + | /* RustType.kt:516 */
|
4579 6397 | #[doc(hidden)]
|
6398 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4580 6399 | RangeLongLabel(crate::model::range_long_internal::ConstraintViolation),
|
4581 - | /// Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6400 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6401 + | /* RustType.kt:516 */
|
4582 6402 | #[doc(hidden)]
|
6403 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4583 6404 | RangeByteLabel(crate::model::range_byte_internal::ConstraintViolation),
|
4584 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6405 + | /// /* ServerBuilderConstraintViolations.kt:138 */`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6406 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4585 6407 | MissingEnumStringLabel,
|
4586 - | /// Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6408 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6409 + | /* RustType.kt:516 */
|
4587 6410 | #[doc(hidden)]
|
6411 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4588 6412 | EnumStringLabel(crate::model::enum_string_internal::ConstraintViolation),
|
4589 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6413 + | /// /* ServerBuilderConstraintViolations.kt:138 */`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6414 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4590 6415 | MissingLengthStringHeaderMap,
|
4591 - | /// Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6416 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6417 + | /* RustType.kt:516 */
|
4592 6418 | #[doc(hidden)]
|
6419 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4593 6420 | LengthStringHeaderMap(crate::model::map_of_length_string_internal::ConstraintViolation),
|
4594 - | /// Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6421 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6422 + | /* RustType.kt:516 */
|
4595 6423 | #[doc(hidden)]
|
6424 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4596 6425 | LengthStringHeader(crate::model::length_string_internal::ConstraintViolation),
|
4597 - | /// Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6426 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6427 + | /* RustType.kt:516 */
|
4598 6428 | #[doc(hidden)]
|
6429 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4599 6430 | RangeIntegerHeader(crate::model::range_integer_internal::ConstraintViolation),
|
4600 - | /// Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6431 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6432 + | /* RustType.kt:516 */
|
4601 6433 | #[doc(hidden)]
|
6434 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4602 6435 | RangeShortHeader(crate::model::range_short_internal::ConstraintViolation),
|
4603 - | /// Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6436 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6437 + | /* RustType.kt:516 */
|
4604 6438 | #[doc(hidden)]
|
6439 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4605 6440 | RangeLongHeader(crate::model::range_long_internal::ConstraintViolation),
|
4606 - | /// Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6441 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6442 + | /* RustType.kt:516 */
|
4607 6443 | #[doc(hidden)]
|
6444 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4608 6445 | RangeByteHeader(crate::model::range_byte_internal::ConstraintViolation),
|
4609 - | /// Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6446 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6447 + | /* RustType.kt:516 */
|
4610 6448 | #[doc(hidden)]
|
6449 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4611 6450 | LengthStringSetHeader(crate::model::set_of_length_string_internal::ConstraintViolation),
|
4612 - | /// Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6451 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6452 + | /* RustType.kt:516 */
|
4613 6453 | #[doc(hidden)]
|
6454 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4614 6455 | ListLengthStringHeader(crate::model::list_of_length_string_internal::ConstraintViolation),
|
4615 - | /// Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6456 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6457 + | /* RustType.kt:516 */
|
4616 6458 | #[doc(hidden)]
|
6459 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4617 6460 | LengthListPatternStringHeader(
|
4618 6461 | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
4619 6462 | ),
|
4620 - | /// Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6463 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6464 + | /* RustType.kt:516 */
|
4621 6465 | #[doc(hidden)]
|
6466 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4622 6467 | LengthSetPatternStringHeader(
|
4623 6468 | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
4624 6469 | ),
|
4625 - | /// Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6470 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6471 + | /* RustType.kt:516 */
|
4626 6472 | #[doc(hidden)]
|
6473 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4627 6474 | RangeByteSetHeader(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
4628 - | /// Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6475 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6476 + | /* RustType.kt:516 */
|
4629 6477 | #[doc(hidden)]
|
6478 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4630 6479 | RangeShortSetHeader(crate::model::set_of_range_short_internal::ConstraintViolation),
|
4631 - | /// Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6480 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6481 + | /* RustType.kt:516 */
|
4632 6482 | #[doc(hidden)]
|
6483 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4633 6484 | RangeIntegerSetHeader(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
4634 - | /// Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6485 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6486 + | /* RustType.kt:516 */
|
4635 6487 | #[doc(hidden)]
|
6488 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4636 6489 | RangeLongSetHeader(crate::model::set_of_range_long_internal::ConstraintViolation),
|
4637 - | /// Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6490 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6491 + | /* RustType.kt:516 */
|
4638 6492 | #[doc(hidden)]
|
6493 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4639 6494 | RangeByteListHeader(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
4640 - | /// Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6495 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6496 + | /* RustType.kt:516 */
|
4641 6497 | #[doc(hidden)]
|
6498 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4642 6499 | RangeShortListHeader(crate::model::list_of_range_short_internal::ConstraintViolation),
|
4643 - | /// Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6500 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6501 + | /* RustType.kt:516 */
|
4644 6502 | #[doc(hidden)]
|
6503 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4645 6504 | RangeIntegerListHeader(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
4646 - | /// Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6505 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6506 + | /* RustType.kt:516 */
|
4647 6507 | #[doc(hidden)]
|
6508 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4648 6509 | RangeLongListHeader(crate::model::list_of_range_long_internal::ConstraintViolation),
|
4649 - | /// Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6510 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6511 + | /* RustType.kt:516 */
|
4650 6512 | #[doc(hidden)]
|
6513 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4651 6514 | LengthStringQuery(crate::model::length_string_internal::ConstraintViolation),
|
4652 - | /// Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6515 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6516 + | /* RustType.kt:516 */
|
4653 6517 | #[doc(hidden)]
|
6518 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4654 6519 | RangeByteQuery(crate::model::range_byte_internal::ConstraintViolation),
|
4655 - | /// Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6520 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6521 + | /* RustType.kt:516 */
|
4656 6522 | #[doc(hidden)]
|
6523 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4657 6524 | RangeShortQuery(crate::model::range_short_internal::ConstraintViolation),
|
4658 - | /// Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6525 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6526 + | /* RustType.kt:516 */
|
4659 6527 | #[doc(hidden)]
|
6528 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4660 6529 | RangeIntegerQuery(crate::model::range_integer_internal::ConstraintViolation),
|
4661 - | /// Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6530 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6531 + | /* RustType.kt:516 */
|
4662 6532 | #[doc(hidden)]
|
6533 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4663 6534 | RangeLongQuery(crate::model::range_long_internal::ConstraintViolation),
|
4664 - | /// Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6535 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6536 + | /* RustType.kt:516 */
|
4665 6537 | #[doc(hidden)]
|
6538 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4666 6539 | EnumStringQuery(crate::model::enum_string_internal::ConstraintViolation),
|
4667 - | /// Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6540 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6541 + | /* RustType.kt:516 */
|
4668 6542 | #[doc(hidden)]
|
6543 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4669 6544 | LengthStringListQuery(crate::model::list_of_length_string_internal::ConstraintViolation),
|
4670 - | /// Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6545 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6546 + | /* RustType.kt:516 */
|
4671 6547 | #[doc(hidden)]
|
6548 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4672 6549 | LengthListPatternStringQuery(
|
4673 6550 | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
4674 6551 | ),
|
4675 - | /// Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6552 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6553 + | /* RustType.kt:516 */
|
4676 6554 | #[doc(hidden)]
|
6555 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4677 6556 | LengthStringSetQuery(crate::model::set_of_length_string_internal::ConstraintViolation),
|
4678 - | /// Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6557 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6558 + | /* RustType.kt:516 */
|
4679 6559 | #[doc(hidden)]
|
6560 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4680 6561 | RangeByteListQuery(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
4681 - | /// Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6562 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6563 + | /* RustType.kt:516 */
|
4682 6564 | #[doc(hidden)]
|
6565 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4683 6566 | RangeShortListQuery(crate::model::list_of_range_short_internal::ConstraintViolation),
|
4684 - | /// Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6567 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6568 + | /* RustType.kt:516 */
|
4685 6569 | #[doc(hidden)]
|
6570 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4686 6571 | RangeIntegerListQuery(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
4687 - | /// Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6572 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6573 + | /* RustType.kt:516 */
|
4688 6574 | #[doc(hidden)]
|
6575 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4689 6576 | RangeLongListQuery(crate::model::list_of_range_long_internal::ConstraintViolation),
|
4690 - | /// Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6577 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6578 + | /* RustType.kt:516 */
|
4691 6579 | #[doc(hidden)]
|
6580 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4692 6581 | RangeByteSetQuery(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
4693 - | /// Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6582 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6583 + | /* RustType.kt:516 */
|
4694 6584 | #[doc(hidden)]
|
6585 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4695 6586 | RangeShortSetQuery(crate::model::set_of_range_short_internal::ConstraintViolation),
|
4696 - | /// Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6587 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6588 + | /* RustType.kt:516 */
|
4697 6589 | #[doc(hidden)]
|
6590 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4698 6591 | RangeIntegerSetQuery(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
4699 - | /// Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6592 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6593 + | /* RustType.kt:516 */
|
4700 6594 | #[doc(hidden)]
|
6595 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4701 6596 | RangeLongSetQuery(crate::model::set_of_range_long_internal::ConstraintViolation),
|
4702 - | /// Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6597 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
6598 + | /* RustType.kt:516 */
|
4703 6599 | #[doc(hidden)]
|
6600 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4704 6601 | EnumStringListQuery(crate::model::list_of_enum_string_internal::ConstraintViolation),
|
6602 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4705 6603 | }
|
6604 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4706 6605 | impl ::std::fmt::Display for ConstraintViolation {
|
6606 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4707 6607 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6608 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4708 6609 | match self {
|
4709 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4710 - | ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4711 - | ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4712 - | ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4713 - | ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4714 - | ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4715 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4716 - | ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4717 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4718 - | ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4719 - | ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4720 - | ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4721 - | ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4722 - | ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4723 - | ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4724 - | ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4725 - | ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4726 - | ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4727 - | ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4728 - | ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4729 - | ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4730 - | ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4731 - | ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4732 - | ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4733 - | ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4734 - | ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4735 - | ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4736 - | ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4737 - | ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4738 - | ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4739 - | ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4740 - | ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4741 - | ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4742 - | ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4743 - | ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4744 - | ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4745 - | ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4746 - | ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4747 - | ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4748 - | ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4749 - | ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4750 - | ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4751 - | ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4752 - | ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4753 - | ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4754 - | }
|
4755 - | }
|
4756 - | }
|
6610 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6611 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6612 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6613 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6614 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6615 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6616 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6617 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6618 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6619 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6620 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6621 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6622 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6623 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6624 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6625 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6626 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6627 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6628 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6629 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6630 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6631 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6632 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6633 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6634 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6635 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6636 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6637 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6638 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6639 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6640 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6641 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6642 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6643 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6644 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6645 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6646 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6647 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6648 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6649 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6650 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6651 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6652 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6653 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6654 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6655 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
6656 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6657 + | }
|
6658 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6659 + | }
|
6660 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4757 6661 | impl ::std::error::Error for ConstraintViolation {}
|
6662 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4758 6663 | impl ConstraintViolation {
|
4759 6664 | pub(crate) fn as_validation_exception_field(
|
4760 6665 | self,
|
4761 6666 | path: ::std::string::String,
|
4762 6667 | ) -> crate::model::ValidationExceptionField {
|
4763 6668 | match self {
|
4764 6669 | ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
|
4765 6670 | message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
|
4766 6671 | path: path + "/lengthStringLabel",
|
4767 6672 | },
|
4811 6716 | ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
|
4812 6717 | ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
|
4813 6718 | ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
|
4814 6719 | ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
|
4815 6720 | ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
|
4816 6721 | ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
|
4817 6722 | ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
|
4818 6723 | }
|
4819 6724 | }
|
4820 6725 | }
|
6726 + | /* ServerBuilderGenerator.kt:234 */
|
4821 6727 | impl ::std::convert::From<ConstraintViolation>
|
4822 6728 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4823 6729 | {
|
4824 6730 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4825 6731 | let first_validation_exception_field =
|
4826 6732 | constraint_violation.as_validation_exception_field("".to_owned());
|
4827 6733 | let validation_exception = crate::error::ValidationException {
|
4828 6734 | message: format!(
|
4829 6735 | "1 validation error detected. {}",
|
4830 6736 | &first_validation_exception_field.message
|
4831 6737 | ),
|
4832 6738 | field_list: Some(vec![first_validation_exception_field]),
|
4833 6739 | };
|
4834 6740 | Self::ConstraintViolation(
|
4835 6741 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4836 6742 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4837 6743 | )
|
4838 6744 | }
|
4839 6745 | }
|
6746 + | /* ServerBuilderGenerator.kt:244 */
|
4840 6747 | impl ::std::convert::From<Builder>
|
4841 6748 | for crate::constrained::MaybeConstrained<
|
4842 6749 | crate::input::ConstrainedHttpBoundShapesOperationInput,
|
4843 6750 | >
|
4844 6751 | {
|
4845 6752 | fn from(builder: Builder) -> Self {
|
4846 6753 | Self::Unconstrained(builder)
|
4847 6754 | }
|
4848 6755 | }
|
6756 + | /* ServerBuilderGenerator.kt:446 */
|
4849 6757 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
4850 6758 | type Error = ConstraintViolation;
|
4851 6759 |
|
4852 6760 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4853 6761 | builder.build()
|
4854 6762 | }
|
4855 6763 | }
|
4856 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
6764 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
6765 + | /* RustType.kt:516 */
|
4857 6766 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6767 + | /* ServerBuilderGenerator.kt:211 */
|
4858 6768 | pub(crate) struct Builder {
|
4859 - | pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4860 - | pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4861 - | pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4862 - | pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4863 - | pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4864 - | pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
4865 - | pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
4866 - | pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4867 - | pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4868 - | pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4869 - | pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4870 - | pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4871 - | pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
4872 - | pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
4873 - | pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
4874 - | pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
4875 - | pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
4876 - | pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
4877 - | pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
4878 - | pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
4879 - | pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
4880 - | pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
4881 - | pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
4882 - | pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
4883 - | pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4884 - | pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4885 - | pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4886 - | pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4887 - | pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4888 - | pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
4889 - | pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
4890 - | pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
4891 - | pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
4892 - | pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
4893 - | pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
4894 - | pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
4895 - | pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
4896 - | pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
4897 - | pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
4898 - | pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
4899 - | pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
4900 - | pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
4901 - | }
|
6769 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
6770 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
6771 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
6772 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
6773 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
6774 + | /* ServerBuilderGenerator.kt:308 */pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
6775 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
6776 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
6777 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
6778 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
6779 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
6780 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
6781 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
6782 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
6783 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
6784 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
6785 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
6786 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
6787 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
6788 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
6789 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
6790 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
6791 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
6792 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
6793 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
6794 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
6795 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
6796 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
6797 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
6798 + | /* ServerBuilderGenerator.kt:308 */pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
6799 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
6800 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
6801 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
6802 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
6803 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
6804 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
6805 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
6806 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
6807 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
6808 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
6809 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
6810 + | /* ServerBuilderGenerator.kt:308 */pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
6811 + | /* ServerBuilderGenerator.kt:211 */}
|
6812 + | /* ServerBuilderGenerator.kt:215 */
|
4902 6813 | impl Builder {
|
6814 + | /* ServerBuilderGenerator.kt:426 */
|
4903 6815 | #[allow(missing_docs)] // documentation missing in model
|
6816 + | /* ServerBuilderGenerator.kt:428 */
|
4904 6817 | pub(crate) fn set_length_string_label(
|
4905 6818 | mut self,
|
4906 6819 | input: impl ::std::convert::Into<
|
4907 6820 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
4908 6821 | >,
|
4909 6822 | ) -> Self {
|
6823 + | /* ServerBuilderGenerator.kt:429 */
|
4910 6824 | self.length_string_label = Some(input.into());
|
4911 6825 | self
|
6826 + | /* ServerBuilderGenerator.kt:428 */
|
4912 6827 | }
|
6828 + | /* ServerBuilderGenerator.kt:426 */
|
4913 6829 | #[allow(missing_docs)] // documentation missing in model
|
6830 + | /* ServerBuilderGenerator.kt:428 */
|
4914 6831 | pub(crate) fn set_range_integer_label(
|
4915 6832 | mut self,
|
4916 6833 | input: impl ::std::convert::Into<
|
4917 6834 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
4918 6835 | >,
|
4919 6836 | ) -> Self {
|
6837 + | /* ServerBuilderGenerator.kt:429 */
|
4920 6838 | self.range_integer_label = Some(input.into());
|
4921 6839 | self
|
6840 + | /* ServerBuilderGenerator.kt:428 */
|
4922 6841 | }
|
6842 + | /* ServerBuilderGenerator.kt:426 */
|
4923 6843 | #[allow(missing_docs)] // documentation missing in model
|
6844 + | /* ServerBuilderGenerator.kt:428 */
|
4924 6845 | pub(crate) fn set_range_short_label(
|
4925 6846 | mut self,
|
4926 6847 | input: impl ::std::convert::Into<
|
4927 6848 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
4928 6849 | >,
|
4929 6850 | ) -> Self {
|
6851 + | /* ServerBuilderGenerator.kt:429 */
|
4930 6852 | self.range_short_label = Some(input.into());
|
4931 6853 | self
|
6854 + | /* ServerBuilderGenerator.kt:428 */
|
4932 6855 | }
|
6856 + | /* ServerBuilderGenerator.kt:426 */
|
4933 6857 | #[allow(missing_docs)] // documentation missing in model
|
6858 + | /* ServerBuilderGenerator.kt:428 */
|
4934 6859 | pub(crate) fn set_range_long_label(
|
4935 6860 | mut self,
|
4936 6861 | input: impl ::std::convert::Into<
|
4937 6862 | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
4938 6863 | >,
|
4939 6864 | ) -> Self {
|
6865 + | /* ServerBuilderGenerator.kt:429 */
|
4940 6866 | self.range_long_label = Some(input.into());
|
4941 6867 | self
|
6868 + | /* ServerBuilderGenerator.kt:428 */
|
4942 6869 | }
|
6870 + | /* ServerBuilderGenerator.kt:426 */
|
4943 6871 | #[allow(missing_docs)] // documentation missing in model
|
6872 + | /* ServerBuilderGenerator.kt:428 */
|
4944 6873 | pub(crate) fn set_range_byte_label(
|
4945 6874 | mut self,
|
4946 6875 | input: impl ::std::convert::Into<
|
4947 6876 | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
4948 6877 | >,
|
4949 6878 | ) -> Self {
|
6879 + | /* ServerBuilderGenerator.kt:429 */
|
4950 6880 | self.range_byte_label = Some(input.into());
|
4951 6881 | self
|
6882 + | /* ServerBuilderGenerator.kt:428 */
|
4952 6883 | }
|
6884 + | /* ServerBuilderGenerator.kt:426 */
|
4953 6885 | #[allow(missing_docs)] // documentation missing in model
|
6886 + | /* ServerBuilderGenerator.kt:428 */
|
4954 6887 | pub(crate) fn set_enum_string_label(
|
4955 6888 | mut self,
|
4956 6889 | input: impl ::std::convert::Into<
|
4957 6890 | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
4958 6891 | >,
|
4959 6892 | ) -> Self {
|
6893 + | /* ServerBuilderGenerator.kt:429 */
|
4960 6894 | self.enum_string_label = Some(input.into());
|
4961 6895 | self
|
6896 + | /* ServerBuilderGenerator.kt:428 */
|
4962 6897 | }
|
6898 + | /* ServerBuilderGenerator.kt:426 */
|
4963 6899 | #[allow(missing_docs)] // documentation missing in model
|
6900 + | /* ServerBuilderGenerator.kt:428 */
|
4964 6901 | pub(crate) fn set_length_string_header_map(
|
4965 6902 | mut self,
|
4966 6903 | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
4967 6904 | ) -> Self {
|
6905 + | /* ServerBuilderGenerator.kt:429 */
|
4968 6906 | self.length_string_header_map = Some(input.into());
|
4969 6907 | self
|
6908 + | /* ServerBuilderGenerator.kt:428 */
|
4970 6909 | }
|
6910 + | /* ServerBuilderGenerator.kt:426 */
|
4971 6911 | #[allow(missing_docs)] // documentation missing in model
|
6912 + | /* ServerBuilderGenerator.kt:428 */
|
4972 6913 | pub(crate) fn set_length_string_header(
|
4973 6914 | mut self,
|
4974 6915 | input: Option<
|
4975 6916 | impl ::std::convert::Into<
|
4976 6917 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
4977 6918 | >,
|
4978 6919 | >,
|
4979 6920 | ) -> Self {
|
6921 + | /* ServerBuilderGenerator.kt:429 */
|
4980 6922 | self.length_string_header = input.map(|v| v.into());
|
4981 6923 | self
|
6924 + | /* ServerBuilderGenerator.kt:428 */
|
4982 6925 | }
|
6926 + | /* ServerBuilderGenerator.kt:426 */
|
4983 6927 | #[allow(missing_docs)] // documentation missing in model
|
6928 + | /* ServerBuilderGenerator.kt:428 */
|
4984 6929 | pub(crate) fn set_range_integer_header(
|
4985 6930 | mut self,
|
4986 6931 | input: impl ::std::convert::Into<
|
4987 6932 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
4988 6933 | >,
|
4989 6934 | ) -> Self {
|
6935 + | /* ServerBuilderGenerator.kt:429 */
|
4990 6936 | self.range_integer_header = Some(input.into());
|
4991 6937 | self
|
6938 + | /* ServerBuilderGenerator.kt:428 */
|
4992 6939 | }
|
6940 + | /* ServerBuilderGenerator.kt:426 */
|
4993 6941 | #[allow(missing_docs)] // documentation missing in model
|
6942 + | /* ServerBuilderGenerator.kt:428 */
|
4994 6943 | pub(crate) fn set_range_short_header(
|
4995 6944 | mut self,
|
4996 6945 | input: impl ::std::convert::Into<
|
4997 6946 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
4998 6947 | >,
|
4999 6948 | ) -> Self {
|
6949 + | /* ServerBuilderGenerator.kt:429 */
|
5000 6950 | self.range_short_header = Some(input.into());
|
5001 6951 | self
|
6952 + | /* ServerBuilderGenerator.kt:428 */
|
5002 6953 | }
|
6954 + | /* ServerBuilderGenerator.kt:426 */
|
5003 6955 | #[allow(missing_docs)] // documentation missing in model
|
6956 + | /* ServerBuilderGenerator.kt:428 */
|
5004 6957 | pub(crate) fn set_range_long_header(
|
5005 6958 | mut self,
|
5006 6959 | input: impl ::std::convert::Into<
|
5007 6960 | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
5008 6961 | >,
|
5009 6962 | ) -> Self {
|
6963 + | /* ServerBuilderGenerator.kt:429 */
|
5010 6964 | self.range_long_header = Some(input.into());
|
5011 6965 | self
|
6966 + | /* ServerBuilderGenerator.kt:428 */
|
5012 6967 | }
|
6968 + | /* ServerBuilderGenerator.kt:426 */
|
5013 6969 | #[allow(missing_docs)] // documentation missing in model
|
6970 + | /* ServerBuilderGenerator.kt:428 */
|
5014 6971 | pub(crate) fn set_range_byte_header(
|
5015 6972 | mut self,
|
5016 6973 | input: impl ::std::convert::Into<
|
5017 6974 | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
5018 6975 | >,
|
5019 6976 | ) -> Self {
|
6977 + | /* ServerBuilderGenerator.kt:429 */
|
5020 6978 | self.range_byte_header = Some(input.into());
|
5021 6979 | self
|
6980 + | /* ServerBuilderGenerator.kt:428 */
|
5022 6981 | }
|
6982 + | /* ServerBuilderGenerator.kt:426 */
|
5023 6983 | #[allow(missing_docs)] // documentation missing in model
|
6984 + | /* ServerBuilderGenerator.kt:428 */
|
5024 6985 | pub(crate) fn set_length_string_set_header(
|
5025 6986 | mut self,
|
5026 6987 | input: Option<
|
5027 6988 | impl ::std::convert::Into<
|
5028 6989 | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
5029 6990 | >,
|
5030 6991 | >,
|
5031 6992 | ) -> Self {
|
6993 + | /* ServerBuilderGenerator.kt:429 */
|
5032 6994 | self.length_string_set_header = input.map(|v| v.into());
|
5033 6995 | self
|
6996 + | /* ServerBuilderGenerator.kt:428 */
|
5034 6997 | }
|
6998 + | /* ServerBuilderGenerator.kt:426 */
|
5035 6999 | #[allow(missing_docs)] // documentation missing in model
|
7000 + | /* ServerBuilderGenerator.kt:428 */
|
5036 7001 | pub(crate) fn set_list_length_string_header(
|
5037 7002 | mut self,
|
5038 7003 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
5039 7004 | ) -> Self {
|
7005 + | /* ServerBuilderGenerator.kt:429 */
|
5040 7006 | self.list_length_string_header = input.map(|v| v.into());
|
5041 7007 | self
|
7008 + | /* ServerBuilderGenerator.kt:428 */
|
5042 7009 | }
|
7010 + | /* ServerBuilderGenerator.kt:426 */
|
5043 7011 | #[allow(missing_docs)] // documentation missing in model
|
7012 + | /* ServerBuilderGenerator.kt:428 */
|
5044 7013 | pub(crate) fn set_length_list_pattern_string_header(
|
5045 7014 | mut self,
|
5046 7015 | input: Option<
|
5047 7016 | impl ::std::convert::Into<
|
5048 7017 | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
5049 7018 | >,
|
5050 7019 | >,
|
5051 7020 | ) -> Self {
|
7021 + | /* ServerBuilderGenerator.kt:429 */
|
5052 7022 | self.length_list_pattern_string_header = input.map(|v| v.into());
|
5053 7023 | self
|
7024 + | /* ServerBuilderGenerator.kt:428 */
|
5054 7025 | }
|
7026 + | /* ServerBuilderGenerator.kt:426 */
|
5055 7027 | #[allow(missing_docs)] // documentation missing in model
|
7028 + | /* ServerBuilderGenerator.kt:428 */
|
5056 7029 | pub(crate) fn set_length_set_pattern_string_header(
|
5057 7030 | mut self,
|
5058 7031 | input: Option<
|
5059 7032 | impl ::std::convert::Into<
|
5060 7033 | crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
|
5061 7034 | >,
|
5062 7035 | >,
|
5063 7036 | ) -> Self {
|
7037 + | /* ServerBuilderGenerator.kt:429 */
|
5064 7038 | self.length_set_pattern_string_header = input.map(|v| v.into());
|
5065 7039 | self
|
7040 + | /* ServerBuilderGenerator.kt:428 */
|
5066 7041 | }
|
7042 + | /* ServerBuilderGenerator.kt:426 */
|
5067 7043 | #[allow(missing_docs)] // documentation missing in model
|
7044 + | /* ServerBuilderGenerator.kt:428 */
|
5068 7045 | pub(crate) fn set_range_byte_set_header(
|
5069 7046 | mut self,
|
5070 7047 | input: Option<
|
5071 7048 | impl ::std::convert::Into<
|
5072 7049 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
5073 7050 | >,
|
5074 7051 | >,
|
5075 7052 | ) -> Self {
|
7053 + | /* ServerBuilderGenerator.kt:429 */
|
5076 7054 | self.range_byte_set_header = input.map(|v| v.into());
|
5077 7055 | self
|
7056 + | /* ServerBuilderGenerator.kt:428 */
|
5078 7057 | }
|
7058 + | /* ServerBuilderGenerator.kt:426 */
|
5079 7059 | #[allow(missing_docs)] // documentation missing in model
|
7060 + | /* ServerBuilderGenerator.kt:428 */
|
5080 7061 | pub(crate) fn set_range_short_set_header(
|
5081 7062 | mut self,
|
5082 7063 | input: Option<
|
5083 7064 | impl ::std::convert::Into<
|
5084 7065 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
5085 7066 | >,
|
5086 7067 | >,
|
5087 7068 | ) -> Self {
|
7069 + | /* ServerBuilderGenerator.kt:429 */
|
5088 7070 | self.range_short_set_header = input.map(|v| v.into());
|
5089 7071 | self
|
7072 + | /* ServerBuilderGenerator.kt:428 */
|
5090 7073 | }
|
7074 + | /* ServerBuilderGenerator.kt:426 */
|
5091 7075 | #[allow(missing_docs)] // documentation missing in model
|
7076 + | /* ServerBuilderGenerator.kt:428 */
|
5092 7077 | pub(crate) fn set_range_integer_set_header(
|
5093 7078 | mut self,
|
5094 7079 | input: Option<
|
5095 7080 | impl ::std::convert::Into<
|
5096 7081 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
5097 7082 | >,
|
5098 7083 | >,
|
5099 7084 | ) -> Self {
|
7085 + | /* ServerBuilderGenerator.kt:429 */
|
5100 7086 | self.range_integer_set_header = input.map(|v| v.into());
|
5101 7087 | self
|
7088 + | /* ServerBuilderGenerator.kt:428 */
|
5102 7089 | }
|
7090 + | /* ServerBuilderGenerator.kt:426 */
|
5103 7091 | #[allow(missing_docs)] // documentation missing in model
|
7092 + | /* ServerBuilderGenerator.kt:428 */
|
5104 7093 | pub(crate) fn set_range_long_set_header(
|
5105 7094 | mut self,
|
5106 7095 | input: Option<
|
5107 7096 | impl ::std::convert::Into<
|
5108 7097 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
5109 7098 | >,
|
5110 7099 | >,
|
5111 7100 | ) -> Self {
|
7101 + | /* ServerBuilderGenerator.kt:429 */
|
5112 7102 | self.range_long_set_header = input.map(|v| v.into());
|
5113 7103 | self
|
7104 + | /* ServerBuilderGenerator.kt:428 */
|
5114 7105 | }
|
7106 + | /* ServerBuilderGenerator.kt:426 */
|
5115 7107 | #[allow(missing_docs)] // documentation missing in model
|
7108 + | /* ServerBuilderGenerator.kt:428 */
|
5116 7109 | pub(crate) fn set_range_byte_list_header(
|
5117 7110 | mut self,
|
5118 7111 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
5119 7112 | ) -> Self {
|
7113 + | /* ServerBuilderGenerator.kt:429 */
|
5120 7114 | self.range_byte_list_header = input.map(|v| v.into());
|
5121 7115 | self
|
7116 + | /* ServerBuilderGenerator.kt:428 */
|
5122 7117 | }
|
7118 + | /* ServerBuilderGenerator.kt:426 */
|
5123 7119 | #[allow(missing_docs)] // documentation missing in model
|
7120 + | /* ServerBuilderGenerator.kt:428 */
|
5124 7121 | pub(crate) fn set_range_short_list_header(
|
5125 7122 | mut self,
|
5126 7123 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
5127 7124 | ) -> Self {
|
7125 + | /* ServerBuilderGenerator.kt:429 */
|
5128 7126 | self.range_short_list_header = input.map(|v| v.into());
|
5129 7127 | self
|
7128 + | /* ServerBuilderGenerator.kt:428 */
|
5130 7129 | }
|
7130 + | /* ServerBuilderGenerator.kt:426 */
|
5131 7131 | #[allow(missing_docs)] // documentation missing in model
|
7132 + | /* ServerBuilderGenerator.kt:428 */
|
5132 7133 | pub(crate) fn set_range_integer_list_header(
|
5133 7134 | mut self,
|
5134 7135 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
5135 7136 | ) -> Self {
|
7137 + | /* ServerBuilderGenerator.kt:429 */
|
5136 7138 | self.range_integer_list_header = input.map(|v| v.into());
|
5137 7139 | self
|
7140 + | /* ServerBuilderGenerator.kt:428 */
|
5138 7141 | }
|
7142 + | /* ServerBuilderGenerator.kt:426 */
|
5139 7143 | #[allow(missing_docs)] // documentation missing in model
|
7144 + | /* ServerBuilderGenerator.kt:428 */
|
5140 7145 | pub(crate) fn set_range_long_list_header(
|
5141 7146 | mut self,
|
5142 7147 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
5143 7148 | ) -> Self {
|
7149 + | /* ServerBuilderGenerator.kt:429 */
|
5144 7150 | self.range_long_list_header = input.map(|v| v.into());
|
5145 7151 | self
|
7152 + | /* ServerBuilderGenerator.kt:428 */
|
5146 7153 | }
|
7154 + | /* ServerBuilderGenerator.kt:426 */
|
5147 7155 | #[allow(missing_docs)] // documentation missing in model
|
7156 + | /* ServerBuilderGenerator.kt:428 */
|
5148 7157 | pub(crate) fn set_length_string_query(
|
5149 7158 | mut self,
|
5150 7159 | input: Option<
|
5151 7160 | impl ::std::convert::Into<
|
5152 7161 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
5153 7162 | >,
|
5154 7163 | >,
|
5155 7164 | ) -> Self {
|
7165 + | /* ServerBuilderGenerator.kt:429 */
|
5156 7166 | self.length_string_query = input.map(|v| v.into());
|
5157 7167 | self
|
7168 + | /* ServerBuilderGenerator.kt:428 */
|
5158 7169 | }
|
7170 + | /* ServerBuilderGenerator.kt:426 */
|
5159 7171 | #[allow(missing_docs)] // documentation missing in model
|
7172 + | /* ServerBuilderGenerator.kt:428 */
|
5160 7173 | pub(crate) fn set_range_byte_query(
|
5161 7174 | mut self,
|
5162 7175 | input: impl ::std::convert::Into<
|
5163 7176 | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
5164 7177 | >,
|
5165 7178 | ) -> Self {
|
7179 + | /* ServerBuilderGenerator.kt:429 */
|
5166 7180 | self.range_byte_query = Some(input.into());
|
5167 7181 | self
|
7182 + | /* ServerBuilderGenerator.kt:428 */
|
5168 7183 | }
|
7184 + | /* ServerBuilderGenerator.kt:426 */
|
5169 7185 | #[allow(missing_docs)] // documentation missing in model
|
7186 + | /* ServerBuilderGenerator.kt:428 */
|
5170 7187 | pub(crate) fn set_range_short_query(
|
5171 7188 | mut self,
|
5172 7189 | input: impl ::std::convert::Into<
|
5173 7190 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
5174 7191 | >,
|
5175 7192 | ) -> Self {
|
7193 + | /* ServerBuilderGenerator.kt:429 */
|
5176 7194 | self.range_short_query = Some(input.into());
|
5177 7195 | self
|
7196 + | /* ServerBuilderGenerator.kt:428 */
|
5178 7197 | }
|
7198 + | /* ServerBuilderGenerator.kt:426 */
|
5179 7199 | #[allow(missing_docs)] // documentation missing in model
|
7200 + | /* ServerBuilderGenerator.kt:428 */
|
5180 7201 | pub(crate) fn set_range_integer_query(
|
5181 7202 | mut self,
|
5182 7203 | input: impl ::std::convert::Into<
|
5183 7204 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
5184 7205 | >,
|
5185 7206 | ) -> Self {
|
7207 + | /* ServerBuilderGenerator.kt:429 */
|
5186 7208 | self.range_integer_query = Some(input.into());
|
5187 7209 | self
|
7210 + | /* ServerBuilderGenerator.kt:428 */
|
5188 7211 | }
|
7212 + | /* ServerBuilderGenerator.kt:426 */
|
5189 7213 | #[allow(missing_docs)] // documentation missing in model
|
7214 + | /* ServerBuilderGenerator.kt:428 */
|
5190 7215 | pub(crate) fn set_range_long_query(
|
5191 7216 | mut self,
|
5192 7217 | input: impl ::std::convert::Into<
|
5193 7218 | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
5194 7219 | >,
|
5195 7220 | ) -> Self {
|
7221 + | /* ServerBuilderGenerator.kt:429 */
|
5196 7222 | self.range_long_query = Some(input.into());
|
5197 7223 | self
|
7224 + | /* ServerBuilderGenerator.kt:428 */
|
5198 7225 | }
|
7226 + | /* ServerBuilderGenerator.kt:426 */
|
5199 7227 | #[allow(missing_docs)] // documentation missing in model
|
7228 + | /* ServerBuilderGenerator.kt:428 */
|
5200 7229 | pub(crate) fn set_enum_string_query(
|
5201 7230 | mut self,
|
5202 7231 | input: Option<
|
5203 7232 | impl ::std::convert::Into<
|
5204 7233 | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
5205 7234 | >,
|
5206 7235 | >,
|
5207 7236 | ) -> Self {
|
7237 + | /* ServerBuilderGenerator.kt:429 */
|
5208 7238 | self.enum_string_query = input.map(|v| v.into());
|
5209 7239 | self
|
7240 + | /* ServerBuilderGenerator.kt:428 */
|
5210 7241 | }
|
7242 + | /* ServerBuilderGenerator.kt:426 */
|
5211 7243 | #[allow(missing_docs)] // documentation missing in model
|
7244 + | /* ServerBuilderGenerator.kt:428 */
|
5212 7245 | pub(crate) fn set_length_string_list_query(
|
5213 7246 | mut self,
|
5214 7247 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
5215 7248 | ) -> Self {
|
7249 + | /* ServerBuilderGenerator.kt:429 */
|
5216 7250 | self.length_string_list_query = input.map(|v| v.into());
|
5217 7251 | self
|
7252 + | /* ServerBuilderGenerator.kt:428 */
|
5218 7253 | }
|
7254 + | /* ServerBuilderGenerator.kt:426 */
|
5219 7255 | #[allow(missing_docs)] // documentation missing in model
|
7256 + | /* ServerBuilderGenerator.kt:428 */
|
5220 7257 | pub(crate) fn set_length_list_pattern_string_query(
|
5221 7258 | mut self,
|
5222 7259 | input: Option<
|
5223 7260 | impl ::std::convert::Into<
|
5224 7261 | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
5225 7262 | >,
|
5226 7263 | >,
|
5227 7264 | ) -> Self {
|
7265 + | /* ServerBuilderGenerator.kt:429 */
|
5228 7266 | self.length_list_pattern_string_query = input.map(|v| v.into());
|
5229 7267 | self
|
7268 + | /* ServerBuilderGenerator.kt:428 */
|
5230 7269 | }
|
7270 + | /* ServerBuilderGenerator.kt:426 */
|
5231 7271 | #[allow(missing_docs)] // documentation missing in model
|
7272 + | /* ServerBuilderGenerator.kt:428 */
|
5232 7273 | pub(crate) fn set_length_string_set_query(
|
5233 7274 | mut self,
|
5234 7275 | input: Option<
|
5235 7276 | impl ::std::convert::Into<
|
5236 7277 | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
5237 7278 | >,
|
5238 7279 | >,
|
5239 7280 | ) -> Self {
|
7281 + | /* ServerBuilderGenerator.kt:429 */
|
5240 7282 | self.length_string_set_query = input.map(|v| v.into());
|
5241 7283 | self
|
7284 + | /* ServerBuilderGenerator.kt:428 */
|
5242 7285 | }
|
7286 + | /* ServerBuilderGenerator.kt:426 */
|
5243 7287 | #[allow(missing_docs)] // documentation missing in model
|
7288 + | /* ServerBuilderGenerator.kt:428 */
|
5244 7289 | pub(crate) fn set_range_byte_list_query(
|
5245 7290 | mut self,
|
5246 7291 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
5247 7292 | ) -> Self {
|
7293 + | /* ServerBuilderGenerator.kt:429 */
|
5248 7294 | self.range_byte_list_query = input.map(|v| v.into());
|
5249 7295 | self
|
7296 + | /* ServerBuilderGenerator.kt:428 */
|
5250 7297 | }
|
7298 + | /* ServerBuilderGenerator.kt:426 */
|
5251 7299 | #[allow(missing_docs)] // documentation missing in model
|
7300 + | /* ServerBuilderGenerator.kt:428 */
|
5252 7301 | pub(crate) fn set_range_short_list_query(
|
5253 7302 | mut self,
|
5254 7303 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
5255 7304 | ) -> Self {
|
7305 + | /* ServerBuilderGenerator.kt:429 */
|
5256 7306 | self.range_short_list_query = input.map(|v| v.into());
|
5257 7307 | self
|
7308 + | /* ServerBuilderGenerator.kt:428 */
|
5258 7309 | }
|
7310 + | /* ServerBuilderGenerator.kt:426 */
|
5259 7311 | #[allow(missing_docs)] // documentation missing in model
|
7312 + | /* ServerBuilderGenerator.kt:428 */
|
5260 7313 | pub(crate) fn set_range_integer_list_query(
|
5261 7314 | mut self,
|
5262 7315 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
5263 7316 | ) -> Self {
|
7317 + | /* ServerBuilderGenerator.kt:429 */
|
5264 7318 | self.range_integer_list_query = input.map(|v| v.into());
|
5265 7319 | self
|
7320 + | /* ServerBuilderGenerator.kt:428 */
|
5266 7321 | }
|
7322 + | /* ServerBuilderGenerator.kt:426 */
|
5267 7323 | #[allow(missing_docs)] // documentation missing in model
|
7324 + | /* ServerBuilderGenerator.kt:428 */
|
5268 7325 | pub(crate) fn set_range_long_list_query(
|
5269 7326 | mut self,
|
5270 7327 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
5271 7328 | ) -> Self {
|
7329 + | /* ServerBuilderGenerator.kt:429 */
|
5272 7330 | self.range_long_list_query = input.map(|v| v.into());
|
5273 7331 | self
|
7332 + | /* ServerBuilderGenerator.kt:428 */
|
5274 7333 | }
|
7334 + | /* ServerBuilderGenerator.kt:426 */
|
5275 7335 | #[allow(missing_docs)] // documentation missing in model
|
7336 + | /* ServerBuilderGenerator.kt:428 */
|
5276 7337 | pub(crate) fn set_range_byte_set_query(
|
5277 7338 | mut self,
|
5278 7339 | input: Option<
|
5279 7340 | impl ::std::convert::Into<
|
5280 7341 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
5281 7342 | >,
|
5282 7343 | >,
|
5283 7344 | ) -> Self {
|
7345 + | /* ServerBuilderGenerator.kt:429 */
|
5284 7346 | self.range_byte_set_query = input.map(|v| v.into());
|
5285 7347 | self
|
7348 + | /* ServerBuilderGenerator.kt:428 */
|
5286 7349 | }
|
7350 + | /* ServerBuilderGenerator.kt:426 */
|
5287 7351 | #[allow(missing_docs)] // documentation missing in model
|
7352 + | /* ServerBuilderGenerator.kt:428 */
|
5288 7353 | pub(crate) fn set_range_short_set_query(
|
5289 7354 | mut self,
|
5290 7355 | input: Option<
|
5291 7356 | impl ::std::convert::Into<
|
5292 7357 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
5293 7358 | >,
|
5294 7359 | >,
|
5295 7360 | ) -> Self {
|
7361 + | /* ServerBuilderGenerator.kt:429 */
|
5296 7362 | self.range_short_set_query = input.map(|v| v.into());
|
5297 7363 | self
|
7364 + | /* ServerBuilderGenerator.kt:428 */
|
5298 7365 | }
|
7366 + | /* ServerBuilderGenerator.kt:426 */
|
5299 7367 | #[allow(missing_docs)] // documentation missing in model
|
7368 + | /* ServerBuilderGenerator.kt:428 */
|
5300 7369 | pub(crate) fn set_range_integer_set_query(
|
5301 7370 | mut self,
|
5302 7371 | input: Option<
|
5303 7372 | impl ::std::convert::Into<
|
5304 7373 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
5305 7374 | >,
|
5306 7375 | >,
|
5307 7376 | ) -> Self {
|
7377 + | /* ServerBuilderGenerator.kt:429 */
|
5308 7378 | self.range_integer_set_query = input.map(|v| v.into());
|
5309 7379 | self
|
7380 + | /* ServerBuilderGenerator.kt:428 */
|
5310 7381 | }
|
7382 + | /* ServerBuilderGenerator.kt:426 */
|
5311 7383 | #[allow(missing_docs)] // documentation missing in model
|
7384 + | /* ServerBuilderGenerator.kt:428 */
|
5312 7385 | pub(crate) fn set_range_long_set_query(
|
5313 7386 | mut self,
|
5314 7387 | input: Option<
|
5315 7388 | impl ::std::convert::Into<
|
5316 7389 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
5317 7390 | >,
|
5318 7391 | >,
|
5319 7392 | ) -> Self {
|
7393 + | /* ServerBuilderGenerator.kt:429 */
|
5320 7394 | self.range_long_set_query = input.map(|v| v.into());
|
5321 7395 | self
|
7396 + | /* ServerBuilderGenerator.kt:428 */
|
5322 7397 | }
|
7398 + | /* ServerBuilderGenerator.kt:426 */
|
5323 7399 | #[allow(missing_docs)] // documentation missing in model
|
7400 + | /* ServerBuilderGenerator.kt:428 */
|
5324 7401 | pub(crate) fn set_enum_string_list_query(
|
5325 7402 | mut self,
|
5326 7403 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>>,
|
5327 7404 | ) -> Self {
|
7405 + | /* ServerBuilderGenerator.kt:429 */
|
5328 7406 | self.enum_string_list_query = input.map(|v| v.into());
|
5329 7407 | self
|
7408 + | /* ServerBuilderGenerator.kt:428 */
|
5330 7409 | }
|
5331 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5332 - | ///
|
7410 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
7411 + | /// /* ServerBuilderGenerator.kt:260 */
|
5333 7412 | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
5334 7413 | ///
|
5335 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
7414 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
7415 + | /* ServerBuilderGenerator.kt:271 */
|
5336 7416 | pub fn build(
|
5337 7417 | self,
|
5338 7418 | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
5339 7419 | {
|
5340 7420 | self.build_enforcing_all_constraints()
|
5341 7421 | }
|
7422 + | /* ServerBuilderGenerator.kt:283 */
|
5342 7423 | fn build_enforcing_all_constraints(
|
5343 7424 | self,
|
5344 7425 | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
5345 7426 | {
|
5346 - | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
7427 + | /* ServerBuilderGenerator.kt:287 */
|
7428 + | Ok(
|
7429 + | /* ServerBuilderGenerator.kt:542 */
|
7430 + | crate::input::ConstrainedHttpBoundShapesOperationInput {
|
7431 + | /* ServerBuilderGenerator.kt:546 */
|
5347 7432 | length_string_label: self
|
5348 7433 | .length_string_label
|
7434 + | /* ServerBuilderGenerator.kt:602 */
|
5349 7435 | .map(|v| match v {
|
5350 7436 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5351 7437 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5352 7438 | })
|
7439 + | /* ServerBuilderGenerator.kt:614 */
|
5353 7440 | .map(|res| res.map_err(ConstraintViolation::LengthStringLabel))
|
5354 7441 | .transpose()?
|
7442 + | /* ServerBuilderGenerator.kt:630 */
|
5355 7443 | .map(|v: crate::model::LengthString| v.into())
|
7444 + | /* ServerBuilderGenerator.kt:569 */
|
5356 7445 | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
7446 + | /* ServerBuilderGenerator.kt:546 */
|
5357 7447 | range_integer_label: self
|
5358 7448 | .range_integer_label
|
7449 + | /* ServerBuilderGenerator.kt:602 */
|
5359 7450 | .map(|v| match v {
|
5360 7451 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5361 7452 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5362 7453 | })
|
7454 + | /* ServerBuilderGenerator.kt:614 */
|
5363 7455 | .map(|res| res.map_err(ConstraintViolation::RangeIntegerLabel))
|
5364 7456 | .transpose()?
|
7457 + | /* ServerBuilderGenerator.kt:630 */
|
5365 7458 | .map(|v: crate::model::RangeInteger| v.into())
|
7459 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5366 7460 | .unwrap_or(0i32),
|
7461 + | /* ServerBuilderGenerator.kt:546 */
|
5367 7462 | range_short_label: self
|
5368 7463 | .range_short_label
|
7464 + | /* ServerBuilderGenerator.kt:602 */
|
5369 7465 | .map(|v| match v {
|
5370 7466 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5371 7467 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5372 7468 | })
|
7469 + | /* ServerBuilderGenerator.kt:614 */
|
5373 7470 | .map(|res| res.map_err(ConstraintViolation::RangeShortLabel))
|
5374 7471 | .transpose()?
|
7472 + | /* ServerBuilderGenerator.kt:630 */
|
5375 7473 | .map(|v: crate::model::RangeShort| v.into())
|
7474 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5376 7475 | .unwrap_or(0i16),
|
7476 + | /* ServerBuilderGenerator.kt:546 */
|
5377 7477 | range_long_label: self
|
5378 7478 | .range_long_label
|
7479 + | /* ServerBuilderGenerator.kt:602 */
|
5379 7480 | .map(|v| match v {
|
5380 7481 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5381 7482 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5382 7483 | })
|
7484 + | /* ServerBuilderGenerator.kt:614 */
|
5383 7485 | .map(|res| res.map_err(ConstraintViolation::RangeLongLabel))
|
5384 7486 | .transpose()?
|
7487 + | /* ServerBuilderGenerator.kt:630 */
|
5385 7488 | .map(|v: crate::model::RangeLong| v.into())
|
7489 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5386 7490 | .unwrap_or(0i64),
|
7491 + | /* ServerBuilderGenerator.kt:546 */
|
5387 7492 | range_byte_label: self
|
5388 7493 | .range_byte_label
|
7494 + | /* ServerBuilderGenerator.kt:602 */
|
5389 7495 | .map(|v| match v {
|
5390 7496 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5391 7497 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5392 7498 | })
|
7499 + | /* ServerBuilderGenerator.kt:614 */
|
5393 7500 | .map(|res| res.map_err(ConstraintViolation::RangeByteLabel))
|
5394 7501 | .transpose()?
|
7502 + | /* ServerBuilderGenerator.kt:630 */
|
5395 7503 | .map(|v: crate::model::RangeByte| v.into())
|
7504 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5396 7505 | .unwrap_or(0i8),
|
7506 + | /* ServerBuilderGenerator.kt:546 */
|
5397 7507 | enum_string_label: self
|
5398 7508 | .enum_string_label
|
7509 + | /* ServerBuilderGenerator.kt:602 */
|
5399 7510 | .map(|v| match v {
|
5400 7511 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5401 7512 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5402 7513 | })
|
7514 + | /* ServerBuilderGenerator.kt:614 */
|
5403 7515 | .map(|res| res.map_err(ConstraintViolation::EnumStringLabel))
|
5404 7516 | .transpose()?
|
7517 + | /* ServerBuilderGenerator.kt:569 */
|
5405 7518 | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
7519 + | /* ServerBuilderGenerator.kt:546 */
|
5406 7520 | length_string_header_map: self
|
5407 7521 | .length_string_header_map
|
7522 + | /* ServerBuilderGenerator.kt:602 */
|
5408 7523 | .map(|v| match v {
|
5409 7524 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5410 7525 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5411 7526 | })
|
7527 + | /* ServerBuilderGenerator.kt:614 */
|
5412 7528 | .map(|res| {
|
5413 7529 | res.map(|v| v.into())
|
5414 7530 | .map_err(ConstraintViolation::LengthStringHeaderMap)
|
5415 7531 | })
|
5416 7532 | .transpose()?
|
7533 + | /* ServerBuilderGenerator.kt:569 */
|
5417 7534 | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
7535 + | /* ServerBuilderGenerator.kt:546 */
|
5418 7536 | length_string_header: self
|
5419 7537 | .length_string_header
|
7538 + | /* ServerBuilderGenerator.kt:602 */
|
5420 7539 | .map(|v| match v {
|
5421 7540 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5422 7541 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5423 7542 | })
|
7543 + | /* ServerBuilderGenerator.kt:614 */
|
5424 7544 | .map(|res| res.map_err(ConstraintViolation::LengthStringHeader))
|
5425 7545 | .transpose()?
|
7546 + | /* ServerBuilderGenerator.kt:630 */
|
5426 7547 | .map(|v: crate::model::LengthString| v.into()),
|
7548 + | /* ServerBuilderGenerator.kt:546 */
|
5427 7549 | range_integer_header: self
|
5428 7550 | .range_integer_header
|
7551 + | /* ServerBuilderGenerator.kt:602 */
|
5429 7552 | .map(|v| match v {
|
5430 7553 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5431 7554 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5432 7555 | })
|
7556 + | /* ServerBuilderGenerator.kt:614 */
|
5433 7557 | .map(|res| res.map_err(ConstraintViolation::RangeIntegerHeader))
|
5434 7558 | .transpose()?
|
7559 + | /* ServerBuilderGenerator.kt:630 */
|
5435 7560 | .map(|v: crate::model::RangeInteger| v.into())
|
7561 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5436 7562 | .unwrap_or(0i32),
|
7563 + | /* ServerBuilderGenerator.kt:546 */
|
5437 7564 | range_short_header: self
|
5438 7565 | .range_short_header
|
7566 + | /* ServerBuilderGenerator.kt:602 */
|
5439 7567 | .map(|v| match v {
|
5440 7568 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5441 7569 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5442 7570 | })
|
7571 + | /* ServerBuilderGenerator.kt:614 */
|
5443 7572 | .map(|res| res.map_err(ConstraintViolation::RangeShortHeader))
|
5444 7573 | .transpose()?
|
7574 + | /* ServerBuilderGenerator.kt:630 */
|
5445 7575 | .map(|v: crate::model::RangeShort| v.into())
|
7576 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5446 7577 | .unwrap_or(0i16),
|
7578 + | /* ServerBuilderGenerator.kt:546 */
|
5447 7579 | range_long_header: self
|
5448 7580 | .range_long_header
|
7581 + | /* ServerBuilderGenerator.kt:602 */
|
5449 7582 | .map(|v| match v {
|
5450 7583 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5451 7584 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5452 7585 | })
|
7586 + | /* ServerBuilderGenerator.kt:614 */
|
5453 7587 | .map(|res| res.map_err(ConstraintViolation::RangeLongHeader))
|
5454 7588 | .transpose()?
|
7589 + | /* ServerBuilderGenerator.kt:630 */
|
5455 7590 | .map(|v: crate::model::RangeLong| v.into())
|
7591 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5456 7592 | .unwrap_or(0i64),
|
7593 + | /* ServerBuilderGenerator.kt:546 */
|
5457 7594 | range_byte_header: self
|
5458 7595 | .range_byte_header
|
7596 + | /* ServerBuilderGenerator.kt:602 */
|
5459 7597 | .map(|v| match v {
|
5460 7598 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5461 7599 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5462 7600 | })
|
7601 + | /* ServerBuilderGenerator.kt:614 */
|
5463 7602 | .map(|res| res.map_err(ConstraintViolation::RangeByteHeader))
|
5464 7603 | .transpose()?
|
7604 + | /* ServerBuilderGenerator.kt:630 */
|
5465 7605 | .map(|v: crate::model::RangeByte| v.into())
|
7606 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5466 7607 | .unwrap_or(0i8),
|
7608 + | /* ServerBuilderGenerator.kt:546 */
|
5467 7609 | length_string_set_header: self
|
5468 7610 | .length_string_set_header
|
7611 + | /* ServerBuilderGenerator.kt:602 */
|
5469 7612 | .map(|v| match v {
|
5470 7613 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5471 7614 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5472 7615 | })
|
7616 + | /* ServerBuilderGenerator.kt:614 */
|
5473 7617 | .map(|res| res.map_err(ConstraintViolation::LengthStringSetHeader))
|
5474 7618 | .transpose()?
|
7619 + | /* ServerBuilderGenerator.kt:630 */
|
5475 7620 | .map(|v: crate::model::SetOfLengthString| v.into()),
|
7621 + | /* ServerBuilderGenerator.kt:546 */
|
5476 7622 | list_length_string_header: self
|
5477 7623 | .list_length_string_header
|
7624 + | /* ServerBuilderGenerator.kt:602 */
|
5478 7625 | .map(|v| match v {
|
5479 7626 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5480 7627 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5481 7628 | })
|
7629 + | /* ServerBuilderGenerator.kt:614 */
|
5482 7630 | .map(|res| {
|
5483 7631 | res.map(|v| v.into())
|
5484 7632 | .map_err(ConstraintViolation::ListLengthStringHeader)
|
5485 7633 | })
|
5486 7634 | .transpose()?,
|
7635 + | /* ServerBuilderGenerator.kt:546 */
|
5487 7636 | length_list_pattern_string_header: self
|
5488 7637 | .length_list_pattern_string_header
|
7638 + | /* ServerBuilderGenerator.kt:602 */
|
5489 7639 | .map(|v| match v {
|
5490 7640 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5491 7641 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5492 7642 | })
|
7643 + | /* ServerBuilderGenerator.kt:614 */
|
5493 7644 | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringHeader))
|
5494 7645 | .transpose()?
|
7646 + | /* ServerBuilderGenerator.kt:630 */
|
5495 7647 | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
7648 + | /* ServerBuilderGenerator.kt:546 */
|
5496 7649 | length_set_pattern_string_header: self
|
5497 7650 | .length_set_pattern_string_header
|
7651 + | /* ServerBuilderGenerator.kt:602 */
|
5498 7652 | .map(|v| match v {
|
5499 7653 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5500 7654 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5501 7655 | })
|
7656 + | /* ServerBuilderGenerator.kt:614 */
|
5502 7657 | .map(|res| res.map_err(ConstraintViolation::LengthSetPatternStringHeader))
|
5503 7658 | .transpose()?
|
7659 + | /* ServerBuilderGenerator.kt:630 */
|
5504 7660 | .map(|v: crate::model::LengthSetOfPatternString| v.into()),
|
7661 + | /* ServerBuilderGenerator.kt:546 */
|
5505 7662 | range_byte_set_header: self
|
5506 7663 | .range_byte_set_header
|
7664 + | /* ServerBuilderGenerator.kt:602 */
|
5507 7665 | .map(|v| match v {
|
5508 7666 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5509 7667 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5510 7668 | })
|
7669 + | /* ServerBuilderGenerator.kt:614 */
|
5511 7670 | .map(|res| res.map_err(ConstraintViolation::RangeByteSetHeader))
|
5512 7671 | .transpose()?
|
7672 + | /* ServerBuilderGenerator.kt:630 */
|
5513 7673 | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
7674 + | /* ServerBuilderGenerator.kt:546 */
|
5514 7675 | range_short_set_header: self
|
5515 7676 | .range_short_set_header
|
7677 + | /* ServerBuilderGenerator.kt:602 */
|
5516 7678 | .map(|v| match v {
|
5517 7679 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5518 7680 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5519 7681 | })
|
7682 + | /* ServerBuilderGenerator.kt:614 */
|
5520 7683 | .map(|res| res.map_err(ConstraintViolation::RangeShortSetHeader))
|
5521 7684 | .transpose()?
|
7685 + | /* ServerBuilderGenerator.kt:630 */
|
5522 7686 | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
7687 + | /* ServerBuilderGenerator.kt:546 */
|
5523 7688 | range_integer_set_header: self
|
5524 7689 | .range_integer_set_header
|
7690 + | /* ServerBuilderGenerator.kt:602 */
|
5525 7691 | .map(|v| match v {
|
5526 7692 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5527 7693 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5528 7694 | })
|
7695 + | /* ServerBuilderGenerator.kt:614 */
|
5529 7696 | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetHeader))
|
5530 7697 | .transpose()?
|
7698 + | /* ServerBuilderGenerator.kt:630 */
|
5531 7699 | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
7700 + | /* ServerBuilderGenerator.kt:546 */
|
5532 7701 | range_long_set_header: self
|
5533 7702 | .range_long_set_header
|
7703 + | /* ServerBuilderGenerator.kt:602 */
|
5534 7704 | .map(|v| match v {
|
5535 7705 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5536 7706 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5537 7707 | })
|
7708 + | /* ServerBuilderGenerator.kt:614 */
|
5538 7709 | .map(|res| res.map_err(ConstraintViolation::RangeLongSetHeader))
|
5539 7710 | .transpose()?
|
7711 + | /* ServerBuilderGenerator.kt:630 */
|
5540 7712 | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
7713 + | /* ServerBuilderGenerator.kt:546 */
|
5541 7714 | range_byte_list_header: self
|
5542 7715 | .range_byte_list_header
|
7716 + | /* ServerBuilderGenerator.kt:602 */
|
5543 7717 | .map(|v| match v {
|
5544 7718 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5545 7719 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5546 7720 | })
|
7721 + | /* ServerBuilderGenerator.kt:614 */
|
5547 7722 | .map(|res| {
|
5548 7723 | res.map(|v| v.into())
|
5549 7724 | .map_err(ConstraintViolation::RangeByteListHeader)
|
5550 7725 | })
|
5551 7726 | .transpose()?,
|
7727 + | /* ServerBuilderGenerator.kt:546 */
|
5552 7728 | range_short_list_header: self
|
5553 7729 | .range_short_list_header
|
7730 + | /* ServerBuilderGenerator.kt:602 */
|
5554 7731 | .map(|v| match v {
|
5555 7732 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5556 7733 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5557 7734 | })
|
7735 + | /* ServerBuilderGenerator.kt:614 */
|
5558 7736 | .map(|res| {
|
5559 7737 | res.map(|v| v.into())
|
5560 7738 | .map_err(ConstraintViolation::RangeShortListHeader)
|
5561 7739 | })
|
5562 7740 | .transpose()?,
|
7741 + | /* ServerBuilderGenerator.kt:546 */
|
5563 7742 | range_integer_list_header: self
|
5564 7743 | .range_integer_list_header
|
7744 + | /* ServerBuilderGenerator.kt:602 */
|
5565 7745 | .map(|v| match v {
|
5566 7746 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5567 7747 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5568 7748 | })
|
7749 + | /* ServerBuilderGenerator.kt:614 */
|
5569 7750 | .map(|res| {
|
5570 7751 | res.map(|v| v.into())
|
5571 7752 | .map_err(ConstraintViolation::RangeIntegerListHeader)
|
5572 7753 | })
|
5573 7754 | .transpose()?,
|
7755 + | /* ServerBuilderGenerator.kt:546 */
|
5574 7756 | range_long_list_header: self
|
5575 7757 | .range_long_list_header
|
7758 + | /* ServerBuilderGenerator.kt:602 */
|
5576 7759 | .map(|v| match v {
|
5577 7760 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5578 7761 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5579 7762 | })
|
7763 + | /* ServerBuilderGenerator.kt:614 */
|
5580 7764 | .map(|res| {
|
5581 7765 | res.map(|v| v.into())
|
5582 7766 | .map_err(ConstraintViolation::RangeLongListHeader)
|
5583 7767 | })
|
5584 7768 | .transpose()?,
|
7769 + | /* ServerBuilderGenerator.kt:546 */
|
5585 7770 | length_string_query: self
|
5586 7771 | .length_string_query
|
7772 + | /* ServerBuilderGenerator.kt:602 */
|
5587 7773 | .map(|v| match v {
|
5588 7774 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5589 7775 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5590 7776 | })
|
7777 + | /* ServerBuilderGenerator.kt:614 */
|
5591 7778 | .map(|res| res.map_err(ConstraintViolation::LengthStringQuery))
|
5592 7779 | .transpose()?
|
7780 + | /* ServerBuilderGenerator.kt:630 */
|
5593 7781 | .map(|v: crate::model::LengthString| v.into()),
|
7782 + | /* ServerBuilderGenerator.kt:546 */
|
5594 7783 | range_byte_query: self
|
5595 7784 | .range_byte_query
|
7785 + | /* ServerBuilderGenerator.kt:602 */
|
5596 7786 | .map(|v| match v {
|
5597 7787 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5598 7788 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5599 7789 | })
|
7790 + | /* ServerBuilderGenerator.kt:614 */
|
5600 7791 | .map(|res| res.map_err(ConstraintViolation::RangeByteQuery))
|
5601 7792 | .transpose()?
|
7793 + | /* ServerBuilderGenerator.kt:630 */
|
5602 7794 | .map(|v: crate::model::RangeByte| v.into())
|
7795 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5603 7796 | .unwrap_or(0i8),
|
7797 + | /* ServerBuilderGenerator.kt:546 */
|
5604 7798 | range_short_query: self
|
5605 7799 | .range_short_query
|
7800 + | /* ServerBuilderGenerator.kt:602 */
|
5606 7801 | .map(|v| match v {
|
5607 7802 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5608 7803 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5609 7804 | })
|
7805 + | /* ServerBuilderGenerator.kt:614 */
|
5610 7806 | .map(|res| res.map_err(ConstraintViolation::RangeShortQuery))
|
5611 7807 | .transpose()?
|
7808 + | /* ServerBuilderGenerator.kt:630 */
|
5612 7809 | .map(|v: crate::model::RangeShort| v.into())
|
7810 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5613 7811 | .unwrap_or(0i16),
|
7812 + | /* ServerBuilderGenerator.kt:546 */
|
5614 7813 | range_integer_query: self
|
5615 7814 | .range_integer_query
|
7815 + | /* ServerBuilderGenerator.kt:602 */
|
5616 7816 | .map(|v| match v {
|
5617 7817 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5618 7818 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5619 7819 | })
|
7820 + | /* ServerBuilderGenerator.kt:614 */
|
5620 7821 | .map(|res| res.map_err(ConstraintViolation::RangeIntegerQuery))
|
5621 7822 | .transpose()?
|
7823 + | /* ServerBuilderGenerator.kt:630 */
|
5622 7824 | .map(|v: crate::model::RangeInteger| v.into())
|
7825 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5623 7826 | .unwrap_or(0i32),
|
7827 + | /* ServerBuilderGenerator.kt:546 */
|
5624 7828 | range_long_query: self
|
5625 7829 | .range_long_query
|
7830 + | /* ServerBuilderGenerator.kt:602 */
|
5626 7831 | .map(|v| match v {
|
5627 7832 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5628 7833 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5629 7834 | })
|
7835 + | /* ServerBuilderGenerator.kt:614 */
|
5630 7836 | .map(|res| res.map_err(ConstraintViolation::RangeLongQuery))
|
5631 7837 | .transpose()?
|
7838 + | /* ServerBuilderGenerator.kt:630 */
|
5632 7839 | .map(|v: crate::model::RangeLong| v.into())
|
7840 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5633 7841 | .unwrap_or(0i64),
|
7842 + | /* ServerBuilderGenerator.kt:546 */
|
5634 7843 | enum_string_query: self
|
5635 7844 | .enum_string_query
|
7845 + | /* ServerBuilderGenerator.kt:602 */
|
5636 7846 | .map(|v| match v {
|
5637 7847 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5638 7848 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5639 7849 | })
|
7850 + | /* ServerBuilderGenerator.kt:614 */
|
5640 7851 | .map(|res| res.map_err(ConstraintViolation::EnumStringQuery))
|
5641 7852 | .transpose()?,
|
7853 + | /* ServerBuilderGenerator.kt:546 */
|
5642 7854 | length_string_list_query: self
|
5643 7855 | .length_string_list_query
|
7856 + | /* ServerBuilderGenerator.kt:602 */
|
5644 7857 | .map(|v| match v {
|
5645 7858 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5646 7859 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5647 7860 | })
|
7861 + | /* ServerBuilderGenerator.kt:614 */
|
5648 7862 | .map(|res| {
|
5649 7863 | res.map(|v| v.into())
|
5650 7864 | .map_err(ConstraintViolation::LengthStringListQuery)
|
5651 7865 | })
|
5652 7866 | .transpose()?,
|
7867 + | /* ServerBuilderGenerator.kt:546 */
|
5653 7868 | length_list_pattern_string_query: self
|
5654 7869 | .length_list_pattern_string_query
|
7870 + | /* ServerBuilderGenerator.kt:602 */
|
5655 7871 | .map(|v| match v {
|
5656 7872 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5657 7873 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5658 7874 | })
|
7875 + | /* ServerBuilderGenerator.kt:614 */
|
5659 7876 | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringQuery))
|
5660 7877 | .transpose()?
|
7878 + | /* ServerBuilderGenerator.kt:630 */
|
5661 7879 | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
7880 + | /* ServerBuilderGenerator.kt:546 */
|
5662 7881 | length_string_set_query: self
|
5663 7882 | .length_string_set_query
|
7883 + | /* ServerBuilderGenerator.kt:602 */
|
5664 7884 | .map(|v| match v {
|
5665 7885 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5666 7886 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5667 7887 | })
|
7888 + | /* ServerBuilderGenerator.kt:614 */
|
5668 7889 | .map(|res| res.map_err(ConstraintViolation::LengthStringSetQuery))
|
5669 7890 | .transpose()?
|
7891 + | /* ServerBuilderGenerator.kt:630 */
|
5670 7892 | .map(|v: crate::model::SetOfLengthString| v.into()),
|
7893 + | /* ServerBuilderGenerator.kt:546 */
|
5671 7894 | range_byte_list_query: self
|
5672 7895 | .range_byte_list_query
|
7896 + | /* ServerBuilderGenerator.kt:602 */
|
5673 7897 | .map(|v| match v {
|
5674 7898 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5675 7899 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5676 7900 | })
|
7901 + | /* ServerBuilderGenerator.kt:614 */
|
5677 7902 | .map(|res| {
|
5678 7903 | res.map(|v| v.into())
|
5679 7904 | .map_err(ConstraintViolation::RangeByteListQuery)
|
5680 7905 | })
|
5681 7906 | .transpose()?,
|
7907 + | /* ServerBuilderGenerator.kt:546 */
|
5682 7908 | range_short_list_query: self
|
5683 7909 | .range_short_list_query
|
7910 + | /* ServerBuilderGenerator.kt:602 */
|
5684 7911 | .map(|v| match v {
|
5685 7912 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5686 7913 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5687 7914 | })
|
7915 + | /* ServerBuilderGenerator.kt:614 */
|
5688 7916 | .map(|res| {
|
5689 7917 | res.map(|v| v.into())
|
5690 7918 | .map_err(ConstraintViolation::RangeShortListQuery)
|
5691 7919 | })
|
5692 7920 | .transpose()?,
|
7921 + | /* ServerBuilderGenerator.kt:546 */
|
5693 7922 | range_integer_list_query: self
|
5694 7923 | .range_integer_list_query
|
7924 + | /* ServerBuilderGenerator.kt:602 */
|
5695 7925 | .map(|v| match v {
|
5696 7926 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5697 7927 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5698 7928 | })
|
7929 + | /* ServerBuilderGenerator.kt:614 */
|
5699 7930 | .map(|res| {
|
5700 7931 | res.map(|v| v.into())
|
5701 7932 | .map_err(ConstraintViolation::RangeIntegerListQuery)
|
5702 7933 | })
|
5703 7934 | .transpose()?,
|
7935 + | /* ServerBuilderGenerator.kt:546 */
|
5704 7936 | range_long_list_query: self
|
5705 7937 | .range_long_list_query
|
7938 + | /* ServerBuilderGenerator.kt:602 */
|
5706 7939 | .map(|v| match v {
|
5707 7940 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5708 7941 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5709 7942 | })
|
7943 + | /* ServerBuilderGenerator.kt:614 */
|
5710 7944 | .map(|res| {
|
5711 7945 | res.map(|v| v.into())
|
5712 7946 | .map_err(ConstraintViolation::RangeLongListQuery)
|
5713 7947 | })
|
5714 7948 | .transpose()?,
|
7949 + | /* ServerBuilderGenerator.kt:546 */
|
5715 7950 | range_byte_set_query: self
|
5716 7951 | .range_byte_set_query
|
7952 + | /* ServerBuilderGenerator.kt:602 */
|
5717 7953 | .map(|v| match v {
|
5718 7954 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5719 7955 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5720 7956 | })
|
7957 + | /* ServerBuilderGenerator.kt:614 */
|
5721 7958 | .map(|res| res.map_err(ConstraintViolation::RangeByteSetQuery))
|
5722 7959 | .transpose()?
|
7960 + | /* ServerBuilderGenerator.kt:630 */
|
5723 7961 | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
7962 + | /* ServerBuilderGenerator.kt:546 */
|
5724 7963 | range_short_set_query: self
|
5725 7964 | .range_short_set_query
|
7965 + | /* ServerBuilderGenerator.kt:602 */
|
5726 7966 | .map(|v| match v {
|
5727 7967 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5728 7968 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5729 7969 | })
|
7970 + | /* ServerBuilderGenerator.kt:614 */
|
5730 7971 | .map(|res| res.map_err(ConstraintViolation::RangeShortSetQuery))
|
5731 7972 | .transpose()?
|
7973 + | /* ServerBuilderGenerator.kt:630 */
|
5732 7974 | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
7975 + | /* ServerBuilderGenerator.kt:546 */
|
5733 7976 | range_integer_set_query: self
|
5734 7977 | .range_integer_set_query
|
7978 + | /* ServerBuilderGenerator.kt:602 */
|
5735 7979 | .map(|v| match v {
|
5736 7980 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5737 7981 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5738 7982 | })
|
7983 + | /* ServerBuilderGenerator.kt:614 */
|
5739 7984 | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetQuery))
|
5740 7985 | .transpose()?
|
7986 + | /* ServerBuilderGenerator.kt:630 */
|
5741 7987 | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
7988 + | /* ServerBuilderGenerator.kt:546 */
|
5742 7989 | range_long_set_query: self
|
5743 7990 | .range_long_set_query
|
7991 + | /* ServerBuilderGenerator.kt:602 */
|
5744 7992 | .map(|v| match v {
|
5745 7993 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5746 7994 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5747 7995 | })
|
7996 + | /* ServerBuilderGenerator.kt:614 */
|
5748 7997 | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
5749 7998 | .transpose()?
|
7999 + | /* ServerBuilderGenerator.kt:630 */
|
5750 8000 | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
8001 + | /* ServerBuilderGenerator.kt:546 */
|
5751 8002 | enum_string_list_query: self
|
5752 8003 | .enum_string_list_query
|
8004 + | /* ServerBuilderGenerator.kt:602 */
|
5753 8005 | .map(|v| match v {
|
5754 8006 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5755 8007 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5756 8008 | })
|
8009 + | /* ServerBuilderGenerator.kt:614 */
|
5757 8010 | .map(|res| {
|
5758 8011 | res.map(|v| v.into())
|
5759 8012 | .map_err(ConstraintViolation::EnumStringListQuery)
|
5760 8013 | })
|
5761 8014 | .transpose()?,
|
5762 - | })
|
8015 + | /* ServerBuilderGenerator.kt:542 */
|
8016 + | }, /* ServerBuilderGenerator.kt:287 */
|
8017 + | )
|
8018 + | /* ServerBuilderGenerator.kt:283 */
|
5763 8019 | }
|
8020 + | /* ServerBuilderGenerator.kt:215 */
|
5764 8021 | }
|
8022 + |
|
8023 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5765 8024 | }
|
5766 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
8025 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5767 8026 | pub mod constrained_http_bound_shapes_operation_input {
|
5768 8027 |
|
8028 + | /* RustType.kt:516 */
|
5769 8029 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5770 - | /// Holds one variant for each of the ways the builder can fail.
|
5771 - |
|
8030 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8031 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5772 8032 | #[allow(clippy::enum_variant_names)]
|
5773 8033 | pub enum ConstraintViolation {
|
5774 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
8034 + | /// /* ServerBuilderConstraintViolations.kt:138 */`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
8035 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5775 8036 | MissingLengthStringLabel,
|
5776 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
8037 + | /// /* ServerBuilderConstraintViolations.kt:138 */`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
8038 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5777 8039 | MissingEnumStringLabel,
|
5778 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
8040 + | /// /* ServerBuilderConstraintViolations.kt:138 */`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
8041 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5779 8042 | MissingLengthStringHeaderMap,
|
8043 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5780 8044 | }
|
8045 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5781 8046 | impl ::std::fmt::Display for ConstraintViolation {
|
8047 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5782 8048 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8049 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5783 8050 | match self {
|
5784 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5785 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5786 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5787 - | }
|
8051 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
8052 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
8053 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
8054 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
8055 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5788 8056 | }
|
8057 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5789 8058 | }
|
8059 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5790 8060 | impl ::std::error::Error for ConstraintViolation {}
|
8061 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
5791 8062 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
5792 8063 | type Error = ConstraintViolation;
|
5793 8064 |
|
5794 8065 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5795 8066 | builder.build()
|
5796 8067 | }
|
5797 8068 | }
|
5798 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
8069 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
8070 + | /* RustType.kt:516 */
|
5799 8071 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8072 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
5800 8073 | pub struct Builder {
|
8074 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5801 8075 | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
8076 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5802 8077 | pub(crate) range_integer_label: ::std::option::Option<i32>,
|
8078 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5803 8079 | pub(crate) range_short_label: ::std::option::Option<i16>,
|
8080 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5804 8081 | pub(crate) range_long_label: ::std::option::Option<i64>,
|
8082 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5805 8083 | pub(crate) range_byte_label: ::std::option::Option<i8>,
|
8084 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5806 8085 | pub(crate) enum_string_label: ::std::option::Option<crate::model::EnumString>,
|
8086 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5807 8087 | pub(crate) length_string_header_map: ::std::option::Option<
|
5808 8088 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5809 8089 | >,
|
8090 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5810 8091 | pub(crate) length_string_header: ::std::option::Option<::std::string::String>,
|
8092 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5811 8093 | pub(crate) range_integer_header: ::std::option::Option<i32>,
|
8094 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5812 8095 | pub(crate) range_short_header: ::std::option::Option<i16>,
|
8096 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5813 8097 | pub(crate) range_long_header: ::std::option::Option<i64>,
|
8098 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5814 8099 | pub(crate) range_byte_header: ::std::option::Option<i8>,
|
8100 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5815 8101 | pub(crate) length_string_set_header:
|
5816 8102 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8103 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5817 8104 | pub(crate) list_length_string_header:
|
5818 8105 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8106 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5819 8107 | pub(crate) length_list_pattern_string_header:
|
5820 8108 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8109 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5821 8110 | pub(crate) length_set_pattern_string_header:
|
5822 8111 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8112 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5823 8113 | pub(crate) range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
8114 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5824 8115 | pub(crate) range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
8116 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5825 8117 | pub(crate) range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
8118 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5826 8119 | pub(crate) range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
8120 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5827 8121 | pub(crate) range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
8122 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5828 8123 | pub(crate) range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
8124 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5829 8125 | pub(crate) range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
8126 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5830 8127 | pub(crate) range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
8128 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5831 8129 | pub(crate) length_string_query: ::std::option::Option<::std::string::String>,
|
8130 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5832 8131 | pub(crate) range_byte_query: ::std::option::Option<i8>,
|
8132 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5833 8133 | pub(crate) range_short_query: ::std::option::Option<i16>,
|
8134 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5834 8135 | pub(crate) range_integer_query: ::std::option::Option<i32>,
|
8136 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5835 8137 | pub(crate) range_long_query: ::std::option::Option<i64>,
|
8138 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5836 8139 | pub(crate) enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
8140 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5837 8141 | pub(crate) length_string_list_query:
|
5838 8142 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8143 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5839 8144 | pub(crate) length_list_pattern_string_query:
|
5840 8145 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8146 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5841 8147 | pub(crate) length_string_set_query:
|
5842 8148 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8149 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5843 8150 | pub(crate) range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
8151 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5844 8152 | pub(crate) range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
8153 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5845 8154 | pub(crate) range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
8155 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5846 8156 | pub(crate) range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
8157 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5847 8158 | pub(crate) range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
8159 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5848 8160 | pub(crate) range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
8161 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5849 8162 | pub(crate) range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
8163 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5850 8164 | pub(crate) range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
8165 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5851 8166 | pub(crate) enum_string_list_query:
|
5852 8167 | ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
8168 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
5853 8169 | }
|
8170 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
5854 8171 | impl Builder {
|
8172 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5855 8173 | #[allow(missing_docs)] // documentation missing in model
|
8174 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5856 8175 | pub fn length_string_label(mut self, input: ::std::string::String) -> Self {
|
5857 - | self.length_string_label = Some(input);
|
8176 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8177 + | self.length_string_label =
|
8178 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8179 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8180 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8181 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5858 8182 | self
|
8183 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5859 8184 | }
|
8185 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5860 8186 | #[allow(missing_docs)] // documentation missing in model
|
8187 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5861 8188 | pub fn range_integer_label(mut self, input: i32) -> Self {
|
5862 - | self.range_integer_label = Some(input);
|
8189 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8190 + | self.range_integer_label =
|
8191 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8192 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8193 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8194 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5863 8195 | self
|
8196 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5864 8197 | }
|
8198 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5865 8199 | #[allow(missing_docs)] // documentation missing in model
|
8200 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5866 8201 | pub fn range_short_label(mut self, input: i16) -> Self {
|
5867 - | self.range_short_label = Some(input);
|
8202 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8203 + | self.range_short_label =
|
8204 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8205 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8206 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8207 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5868 8208 | self
|
8209 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5869 8210 | }
|
8211 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5870 8212 | #[allow(missing_docs)] // documentation missing in model
|
8213 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5871 8214 | pub fn range_long_label(mut self, input: i64) -> Self {
|
5872 - | self.range_long_label = Some(input);
|
8215 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8216 + | self.range_long_label =
|
8217 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8218 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8219 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8220 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5873 8221 | self
|
8222 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5874 8223 | }
|
8224 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5875 8225 | #[allow(missing_docs)] // documentation missing in model
|
8226 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5876 8227 | pub fn range_byte_label(mut self, input: i8) -> Self {
|
5877 - | self.range_byte_label = Some(input);
|
8228 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8229 + | self.range_byte_label =
|
8230 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8231 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8232 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8233 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5878 8234 | self
|
8235 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5879 8236 | }
|
8237 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5880 8238 | #[allow(missing_docs)] // documentation missing in model
|
8239 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5881 8240 | pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
|
5882 - | self.enum_string_label = Some(input);
|
8241 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8242 + | self.enum_string_label =
|
8243 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8244 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8245 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8246 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5883 8247 | self
|
8248 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5884 8249 | }
|
8250 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5885 8251 | #[allow(missing_docs)] // documentation missing in model
|
8252 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5886 8253 | pub fn length_string_header_map(
|
5887 8254 | mut self,
|
5888 8255 | input: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5889 8256 | ) -> Self {
|
5890 - | self.length_string_header_map = Some(input);
|
8257 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8258 + | self.length_string_header_map =
|
8259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8260 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8261 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8262 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5891 8263 | self
|
8264 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5892 8265 | }
|
8266 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5893 8267 | #[allow(missing_docs)] // documentation missing in model
|
8268 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5894 8269 | pub fn length_string_header(
|
5895 8270 | mut self,
|
5896 8271 | input: ::std::option::Option<::std::string::String>,
|
5897 8272 | ) -> Self {
|
5898 - | self.length_string_header = input;
|
8273 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8274 + | self.length_string_header =
|
8275 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8276 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5899 8277 | self
|
8278 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5900 8279 | }
|
8280 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5901 8281 | #[allow(missing_docs)] // documentation missing in model
|
8282 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5902 8283 | pub fn range_integer_header(mut self, input: i32) -> Self {
|
5903 - | self.range_integer_header = Some(input);
|
8284 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8285 + | self.range_integer_header =
|
8286 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8287 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8288 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8289 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5904 8290 | self
|
8291 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5905 8292 | }
|
8293 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5906 8294 | #[allow(missing_docs)] // documentation missing in model
|
8295 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5907 8296 | pub fn range_short_header(mut self, input: i16) -> Self {
|
5908 - | self.range_short_header = Some(input);
|
8297 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8298 + | self.range_short_header =
|
8299 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8300 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8301 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8302 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5909 8303 | self
|
8304 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5910 8305 | }
|
8306 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5911 8307 | #[allow(missing_docs)] // documentation missing in model
|
8308 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5912 8309 | pub fn range_long_header(mut self, input: i64) -> Self {
|
5913 - | self.range_long_header = Some(input);
|
8310 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8311 + | self.range_long_header =
|
8312 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8313 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8314 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8315 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5914 8316 | self
|
8317 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5915 8318 | }
|
8319 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5916 8320 | #[allow(missing_docs)] // documentation missing in model
|
8321 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5917 8322 | pub fn range_byte_header(mut self, input: i8) -> Self {
|
5918 - | self.range_byte_header = Some(input);
|
8323 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8324 + | self.range_byte_header =
|
8325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8326 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8327 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8328 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5919 8329 | self
|
8330 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5920 8331 | }
|
8332 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5921 8333 | #[allow(missing_docs)] // documentation missing in model
|
8334 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5922 8335 | pub fn length_string_set_header(
|
5923 8336 | mut self,
|
5924 8337 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5925 8338 | ) -> Self {
|
5926 - | self.length_string_set_header = input;
|
8339 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8340 + | self.length_string_set_header =
|
8341 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8342 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5927 8343 | self
|
8344 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5928 8345 | }
|
8346 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5929 8347 | #[allow(missing_docs)] // documentation missing in model
|
8348 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5930 8349 | pub fn list_length_string_header(
|
5931 8350 | mut self,
|
5932 8351 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5933 8352 | ) -> Self {
|
5934 - | self.list_length_string_header = input;
|
8353 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8354 + | self.list_length_string_header =
|
8355 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8356 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5935 8357 | self
|
8358 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5936 8359 | }
|
8360 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5937 8361 | #[allow(missing_docs)] // documentation missing in model
|
8362 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5938 8363 | pub fn length_list_pattern_string_header(
|
5939 8364 | mut self,
|
5940 8365 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5941 8366 | ) -> Self {
|
5942 - | self.length_list_pattern_string_header = input;
|
8367 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8368 + | self.length_list_pattern_string_header =
|
8369 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8370 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5943 8371 | self
|
8372 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5944 8373 | }
|
8374 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5945 8375 | #[allow(missing_docs)] // documentation missing in model
|
8376 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5946 8377 | pub fn length_set_pattern_string_header(
|
5947 8378 | mut self,
|
5948 8379 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5949 8380 | ) -> Self {
|
5950 - | self.length_set_pattern_string_header = input;
|
8381 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8382 + | self.length_set_pattern_string_header =
|
8383 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8384 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5951 8385 | self
|
8386 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5952 8387 | }
|
8388 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5953 8389 | #[allow(missing_docs)] // documentation missing in model
|
8390 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5954 8391 | pub fn range_byte_set_header(
|
5955 8392 | mut self,
|
5956 8393 | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
5957 8394 | ) -> Self {
|
5958 - | self.range_byte_set_header = input;
|
8395 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8396 + | self.range_byte_set_header =
|
8397 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8398 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5959 8399 | self
|
8400 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5960 8401 | }
|
8402 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5961 8403 | #[allow(missing_docs)] // documentation missing in model
|
8404 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5962 8405 | pub fn range_short_set_header(
|
5963 8406 | mut self,
|
5964 8407 | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
5965 8408 | ) -> Self {
|
5966 - | self.range_short_set_header = input;
|
8409 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8410 + | self.range_short_set_header =
|
8411 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8412 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5967 8413 | self
|
8414 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5968 8415 | }
|
8416 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5969 8417 | #[allow(missing_docs)] // documentation missing in model
|
8418 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5970 8419 | pub fn range_integer_set_header(
|
5971 8420 | mut self,
|
5972 8421 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
5973 8422 | ) -> Self {
|
5974 - | self.range_integer_set_header = input;
|
8423 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8424 + | self.range_integer_set_header =
|
8425 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8426 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5975 8427 | self
|
8428 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5976 8429 | }
|
8430 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5977 8431 | #[allow(missing_docs)] // documentation missing in model
|
8432 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5978 8433 | pub fn range_long_set_header(
|
5979 8434 | mut self,
|
5980 8435 | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
5981 8436 | ) -> Self {
|
5982 - | self.range_long_set_header = input;
|
8437 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8438 + | self.range_long_set_header =
|
8439 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8440 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5983 8441 | self
|
8442 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5984 8443 | }
|
8444 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5985 8445 | #[allow(missing_docs)] // documentation missing in model
|
8446 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5986 8447 | pub fn range_byte_list_header(
|
5987 8448 | mut self,
|
5988 8449 | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
5989 8450 | ) -> Self {
|
5990 - | self.range_byte_list_header = input;
|
8451 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8452 + | self.range_byte_list_header =
|
8453 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8454 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5991 8455 | self
|
8456 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5992 8457 | }
|
8458 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5993 8459 | #[allow(missing_docs)] // documentation missing in model
|
8460 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5994 8461 | pub fn range_short_list_header(
|
5995 8462 | mut self,
|
5996 8463 | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
5997 8464 | ) -> Self {
|
5998 - | self.range_short_list_header = input;
|
8465 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8466 + | self.range_short_list_header =
|
8467 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8468 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5999 8469 | self
|
8470 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6000 8471 | }
|
8472 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6001 8473 | #[allow(missing_docs)] // documentation missing in model
|
8474 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6002 8475 | pub fn range_integer_list_header(
|
6003 8476 | mut self,
|
6004 8477 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
6005 8478 | ) -> Self {
|
6006 - | self.range_integer_list_header = input;
|
8479 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8480 + | self.range_integer_list_header =
|
8481 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8482 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6007 8483 | self
|
8484 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6008 8485 | }
|
8486 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6009 8487 | #[allow(missing_docs)] // documentation missing in model
|
8488 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6010 8489 | pub fn range_long_list_header(
|
6011 8490 | mut self,
|
6012 8491 | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
6013 8492 | ) -> Self {
|
6014 - | self.range_long_list_header = input;
|
8493 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8494 + | self.range_long_list_header =
|
8495 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8496 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6015 8497 | self
|
8498 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6016 8499 | }
|
8500 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6017 8501 | #[allow(missing_docs)] // documentation missing in model
|
8502 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6018 8503 | pub fn length_string_query(
|
6019 8504 | mut self,
|
6020 8505 | input: ::std::option::Option<::std::string::String>,
|
6021 8506 | ) -> Self {
|
6022 - | self.length_string_query = input;
|
8507 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8508 + | self.length_string_query =
|
8509 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8510 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6023 8511 | self
|
8512 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6024 8513 | }
|
8514 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6025 8515 | #[allow(missing_docs)] // documentation missing in model
|
8516 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6026 8517 | pub fn range_byte_query(mut self, input: i8) -> Self {
|
6027 - | self.range_byte_query = Some(input);
|
8518 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8519 + | self.range_byte_query =
|
8520 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8521 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8522 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8523 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6028 8524 | self
|
8525 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6029 8526 | }
|
8527 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6030 8528 | #[allow(missing_docs)] // documentation missing in model
|
8529 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6031 8530 | pub fn range_short_query(mut self, input: i16) -> Self {
|
6032 - | self.range_short_query = Some(input);
|
8531 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8532 + | self.range_short_query =
|
8533 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8534 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8535 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8536 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6033 8537 | self
|
8538 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6034 8539 | }
|
8540 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6035 8541 | #[allow(missing_docs)] // documentation missing in model
|
8542 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6036 8543 | pub fn range_integer_query(mut self, input: i32) -> Self {
|
6037 - | self.range_integer_query = Some(input);
|
8544 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8545 + | self.range_integer_query =
|
8546 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8547 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8548 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8549 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6038 8550 | self
|
8551 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6039 8552 | }
|
8553 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6040 8554 | #[allow(missing_docs)] // documentation missing in model
|
8555 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6041 8556 | pub fn range_long_query(mut self, input: i64) -> Self {
|
6042 - | self.range_long_query = Some(input);
|
8557 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8558 + | self.range_long_query =
|
8559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
8560 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
8562 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6043 8563 | self
|
8564 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6044 8565 | }
|
8566 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6045 8567 | #[allow(missing_docs)] // documentation missing in model
|
8568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6046 8569 | pub fn enum_string_query(
|
6047 8570 | mut self,
|
6048 8571 | input: ::std::option::Option<crate::model::EnumString>,
|
6049 8572 | ) -> Self {
|
6050 - | self.enum_string_query = input;
|
8573 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8574 + | self.enum_string_query =
|
8575 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6051 8577 | self
|
8578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6052 8579 | }
|
8580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6053 8581 | #[allow(missing_docs)] // documentation missing in model
|
8582 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6054 8583 | pub fn length_string_list_query(
|
6055 8584 | mut self,
|
6056 8585 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6057 8586 | ) -> Self {
|
6058 - | self.length_string_list_query = input;
|
8587 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8588 + | self.length_string_list_query =
|
8589 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8590 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6059 8591 | self
|
8592 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6060 8593 | }
|
8594 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6061 8595 | #[allow(missing_docs)] // documentation missing in model
|
8596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6062 8597 | pub fn length_list_pattern_string_query(
|
6063 8598 | mut self,
|
6064 8599 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6065 8600 | ) -> Self {
|
6066 - | self.length_list_pattern_string_query = input;
|
8601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8602 + | self.length_list_pattern_string_query =
|
8603 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8604 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6067 8605 | self
|
8606 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6068 8607 | }
|
8608 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6069 8609 | #[allow(missing_docs)] // documentation missing in model
|
8610 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6070 8611 | pub fn length_string_set_query(
|
6071 8612 | mut self,
|
6072 8613 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6073 8614 | ) -> Self {
|
6074 - | self.length_string_set_query = input;
|
8615 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8616 + | self.length_string_set_query =
|
8617 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8618 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6075 8619 | self
|
8620 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6076 8621 | }
|
8622 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6077 8623 | #[allow(missing_docs)] // documentation missing in model
|
8624 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6078 8625 | pub fn range_byte_list_query(
|
6079 8626 | mut self,
|
6080 8627 | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
6081 8628 | ) -> Self {
|
6082 - | self.range_byte_list_query = input;
|
8629 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8630 + | self.range_byte_list_query =
|
8631 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8632 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6083 8633 | self
|
8634 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6084 8635 | }
|
8636 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6085 8637 | #[allow(missing_docs)] // documentation missing in model
|
8638 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6086 8639 | pub fn range_short_list_query(
|
6087 8640 | mut self,
|
6088 8641 | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
6089 8642 | ) -> Self {
|
6090 - | self.range_short_list_query = input;
|
8643 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8644 + | self.range_short_list_query =
|
8645 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8646 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6091 8647 | self
|
8648 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6092 8649 | }
|
8650 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6093 8651 | #[allow(missing_docs)] // documentation missing in model
|
8652 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6094 8653 | pub fn range_integer_list_query(
|
6095 8654 | mut self,
|
6096 8655 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
6097 8656 | ) -> Self {
|
6098 - | self.range_integer_list_query = input;
|
8657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8658 + | self.range_integer_list_query =
|
8659 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8660 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6099 8661 | self
|
8662 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6100 8663 | }
|
8664 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6101 8665 | #[allow(missing_docs)] // documentation missing in model
|
8666 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6102 8667 | pub fn range_long_list_query(
|
6103 8668 | mut self,
|
6104 8669 | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
6105 8670 | ) -> Self {
|
6106 - | self.range_long_list_query = input;
|
8671 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8672 + | self.range_long_list_query =
|
8673 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8674 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6107 8675 | self
|
8676 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6108 8677 | }
|
8678 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6109 8679 | #[allow(missing_docs)] // documentation missing in model
|
8680 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6110 8681 | pub fn range_byte_set_query(
|
6111 8682 | mut self,
|
6112 8683 | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
6113 8684 | ) -> Self {
|
6114 - | self.range_byte_set_query = input;
|
8685 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8686 + | self.range_byte_set_query =
|
8687 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8688 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6115 8689 | self
|
8690 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6116 8691 | }
|
8692 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6117 8693 | #[allow(missing_docs)] // documentation missing in model
|
8694 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6118 8695 | pub fn range_short_set_query(
|
6119 8696 | mut self,
|
6120 8697 | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
6121 8698 | ) -> Self {
|
6122 - | self.range_short_set_query = input;
|
8699 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8700 + | self.range_short_set_query =
|
8701 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8702 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6123 8703 | self
|
8704 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6124 8705 | }
|
8706 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6125 8707 | #[allow(missing_docs)] // documentation missing in model
|
8708 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6126 8709 | pub fn range_integer_set_query(
|
6127 8710 | mut self,
|
6128 8711 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
6129 8712 | ) -> Self {
|
6130 - | self.range_integer_set_query = input;
|
8713 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8714 + | self.range_integer_set_query =
|
8715 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8716 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6131 8717 | self
|
8718 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6132 8719 | }
|
8720 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6133 8721 | #[allow(missing_docs)] // documentation missing in model
|
8722 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6134 8723 | pub fn range_long_set_query(
|
6135 8724 | mut self,
|
6136 8725 | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
6137 8726 | ) -> Self {
|
6138 - | self.range_long_set_query = input;
|
8727 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8728 + | self.range_long_set_query =
|
8729 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8730 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6139 8731 | self
|
8732 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6140 8733 | }
|
8734 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6141 8735 | #[allow(missing_docs)] // documentation missing in model
|
8736 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6142 8737 | pub fn enum_string_list_query(
|
6143 8738 | mut self,
|
6144 8739 | input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
6145 8740 | ) -> Self {
|
6146 - | self.enum_string_list_query = input;
|
8741 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
8742 + | self.enum_string_list_query =
|
8743 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
8744 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6147 8745 | self
|
8746 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6148 8747 | }
|
6149 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
6150 - | ///
|
8748 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
8749 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
6151 8750 | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
6152 8751 | ///
|
8752 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
6153 8753 | pub fn build(
|
6154 8754 | self,
|
6155 8755 | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
6156 8756 | {
|
6157 8757 | self.build_enforcing_required_and_enum_traits()
|
6158 8758 | }
|
8759 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
6159 8760 | fn build_enforcing_required_and_enum_traits(
|
6160 8761 | self,
|
6161 8762 | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
6162 8763 | {
|
6163 - | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
8764 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
8765 + | Ok(
|
8766 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8767 + | crate::input::ConstrainedHttpBoundShapesOperationInput {
|
8768 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6164 8769 | length_string_label: self
|
6165 8770 | .length_string_label
|
8771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
6166 8772 | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
6167 - | range_integer_label: self.range_integer_label.unwrap_or(0i32),
|
6168 - | range_short_label: self.range_short_label.unwrap_or(0i16),
|
6169 - | range_long_label: self.range_long_label.unwrap_or(0i64),
|
6170 - | range_byte_label: self.range_byte_label.unwrap_or(0i8),
|
8773 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8774 + | range_integer_label: self
|
8775 + | .range_integer_label
|
8776 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8777 + | .unwrap_or(0i32),
|
8778 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8779 + | range_short_label: self
|
8780 + | .range_short_label
|
8781 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8782 + | .unwrap_or(0i16),
|
8783 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8784 + | range_long_label: self
|
8785 + | .range_long_label
|
8786 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8787 + | .unwrap_or(0i64),
|
8788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8789 + | range_byte_label: self
|
8790 + | .range_byte_label
|
8791 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8792 + | .unwrap_or(0i8),
|
8793 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6171 8794 | enum_string_label: self
|
6172 8795 | .enum_string_label
|
8796 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
6173 8797 | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
8798 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6174 8799 | length_string_header_map: self
|
6175 8800 | .length_string_header_map
|
8801 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
6176 8802 | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
8803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6177 8804 | length_string_header: self.length_string_header,
|
6178 - | range_integer_header: self.range_integer_header.unwrap_or(0i32),
|
6179 - | range_short_header: self.range_short_header.unwrap_or(0i16),
|
6180 - | range_long_header: self.range_long_header.unwrap_or(0i64),
|
6181 - | range_byte_header: self.range_byte_header.unwrap_or(0i8),
|
8805 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8806 + | range_integer_header: self
|
8807 + | .range_integer_header
|
8808 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8809 + | .unwrap_or(0i32),
|
8810 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8811 + | range_short_header: self
|
8812 + | .range_short_header
|
8813 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8814 + | .unwrap_or(0i16),
|
8815 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8816 + | range_long_header: self
|
8817 + | .range_long_header
|
8818 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8819 + | .unwrap_or(0i64),
|
8820 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8821 + | range_byte_header: self
|
8822 + | .range_byte_header
|
8823 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8824 + | .unwrap_or(0i8),
|
8825 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6182 8826 | length_string_set_header: self.length_string_set_header,
|
8827 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6183 8828 | list_length_string_header: self.list_length_string_header,
|
8829 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6184 8830 | length_list_pattern_string_header: self.length_list_pattern_string_header,
|
8831 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6185 8832 | length_set_pattern_string_header: self.length_set_pattern_string_header,
|
8833 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6186 8834 | range_byte_set_header: self.range_byte_set_header,
|
8835 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6187 8836 | range_short_set_header: self.range_short_set_header,
|
8837 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6188 8838 | range_integer_set_header: self.range_integer_set_header,
|
8839 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6189 8840 | range_long_set_header: self.range_long_set_header,
|
8841 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6190 8842 | range_byte_list_header: self.range_byte_list_header,
|
8843 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6191 8844 | range_short_list_header: self.range_short_list_header,
|
8845 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6192 8846 | range_integer_list_header: self.range_integer_list_header,
|
8847 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6193 8848 | range_long_list_header: self.range_long_list_header,
|
8849 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6194 8850 | length_string_query: self.length_string_query,
|
6195 - | range_byte_query: self.range_byte_query.unwrap_or(0i8),
|
6196 - | range_short_query: self.range_short_query.unwrap_or(0i16),
|
6197 - | range_integer_query: self.range_integer_query.unwrap_or(0i32),
|
6198 - | range_long_query: self.range_long_query.unwrap_or(0i64),
|
8851 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8852 + | range_byte_query: self
|
8853 + | .range_byte_query
|
8854 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8855 + | .unwrap_or(0i8),
|
8856 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8857 + | range_short_query: self
|
8858 + | .range_short_query
|
8859 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8860 + | .unwrap_or(0i16),
|
8861 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8862 + | range_integer_query: self
|
8863 + | .range_integer_query
|
8864 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8865 + | .unwrap_or(0i32),
|
8866 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8867 + | range_long_query: self
|
8868 + | .range_long_query
|
8869 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
8870 + | .unwrap_or(0i64),
|
8871 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6199 8872 | enum_string_query: self.enum_string_query,
|
8873 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6200 8874 | length_string_list_query: self.length_string_list_query,
|
8875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6201 8876 | length_list_pattern_string_query: self.length_list_pattern_string_query,
|
8877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6202 8878 | length_string_set_query: self.length_string_set_query,
|
8879 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6203 8880 | range_byte_list_query: self.range_byte_list_query,
|
8881 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6204 8882 | range_short_list_query: self.range_short_list_query,
|
8883 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6205 8884 | range_integer_list_query: self.range_integer_list_query,
|
8885 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6206 8886 | range_long_list_query: self.range_long_list_query,
|
8887 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6207 8888 | range_byte_set_query: self.range_byte_set_query,
|
8889 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6208 8890 | range_short_set_query: self.range_short_set_query,
|
8891 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6209 8892 | range_integer_set_query: self.range_integer_set_query,
|
8893 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6210 8894 | range_long_set_query: self.range_long_set_query,
|
8895 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
6211 8896 | enum_string_list_query: self.enum_string_list_query,
|
6212 - | })
|
8897 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8898 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
8899 + | )
|
8900 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
6213 8901 | }
|
8902 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
6214 8903 | }
|
8904 + |
|
8905 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6215 8906 | }
|
6216 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
8907 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6217 8908 | pub(crate) mod constrained_shapes_only_in_output_operation_input_internal {
|
6218 8909 |
|
8910 + | /* ServerBuilderGenerator.kt:461 */
|
6219 8911 | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6220 8912 | fn from(builder: Builder) -> Self {
|
6221 8913 | builder.build()
|
6222 8914 | }
|
6223 8915 | }
|
6224 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
8916 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
8917 + | /* RustType.kt:516 */
|
6225 8918 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6226 - | pub(crate) struct Builder {}
|
8919 + | /* ServerBuilderGenerator.kt:211 */
|
8920 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
8921 + | /* ServerBuilderGenerator.kt:215 */
|
6227 8922 | impl Builder {
|
6228 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
8923 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
8924 + | /* ServerBuilderGenerator.kt:271 */
|
6229 8925 | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6230 8926 | self.build_enforcing_all_constraints()
|
6231 8927 | }
|
8928 + | /* ServerBuilderGenerator.kt:283 */
|
6232 8929 | fn build_enforcing_all_constraints(
|
6233 8930 | self,
|
6234 8931 | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6235 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
8932 + | /* ServerBuilderGenerator.kt:542 */
|
8933 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
8934 + | /* ServerBuilderGenerator.kt:542 */}
|
8935 + | /* ServerBuilderGenerator.kt:283 */
|
6236 8936 | }
|
8937 + | /* ServerBuilderGenerator.kt:215 */
|
6237 8938 | }
|
8939 + |
|
8940 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6238 8941 | }
|
6239 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
8942 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6240 8943 | pub mod constrained_shapes_only_in_output_operation_input {
|
6241 8944 |
|
8945 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
6242 8946 | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6243 8947 | fn from(builder: Builder) -> Self {
|
6244 8948 | builder.build()
|
6245 8949 | }
|
6246 8950 | }
|
6247 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
8951 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
8952 + | /* RustType.kt:516 */
|
6248 8953 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6249 - | pub struct Builder {}
|
8954 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8955 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
8956 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
6250 8957 | impl Builder {
|
6251 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
8958 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
8959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
6252 8960 | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6253 8961 | self.build_enforcing_required_and_enum_traits()
|
6254 8962 | }
|
8963 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
6255 8964 | fn build_enforcing_required_and_enum_traits(
|
6256 8965 | self,
|
6257 8966 | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6258 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
8967 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8968 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
8969 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
8970 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
6259 8971 | }
|
8972 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
6260 8973 | }
|
8974 + |
|
8975 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6261 8976 | }
|
6262 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
8977 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6263 8978 | pub(crate) mod constrained_shapes_operation_input_internal {
|
6264 8979 |
|
8980 + | /* RustType.kt:516 */
|
6265 8981 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6266 - | /// Holds one variant for each of the ways the builder can fail.
|
8982 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8983 + | /* RustType.kt:516 */
|
6267 8984 | #[non_exhaustive]
|
8985 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6268 8986 | #[allow(clippy::enum_variant_names)]
|
6269 8987 | pub(crate) enum ConstraintViolation {
|
6270 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
8988 + | /// /* ServerBuilderConstraintViolations.kt:138 */`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
8989 + | /* ServerBuilderConstraintViolations.kt:143 */
|
6271 8990 | MissingConA,
|
6272 - | /// Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
8991 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
8992 + | /* RustType.kt:516 */
|
6273 8993 | #[doc(hidden)]
|
8994 + | /* ServerBuilderConstraintViolations.kt:164 */
|
6274 8995 | ConA(crate::model::con_a_internal::ConstraintViolation),
|
8996 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6275 8997 | }
|
8998 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6276 8999 | impl ::std::fmt::Display for ConstraintViolation {
|
9000 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6277 9001 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9002 + | /* ServerBuilderConstraintViolations.kt:119 */
|
6278 9003 | match self {
|
6279 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
6280 - | ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
6281 - | }
|
9004 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
9005 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
9006 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
9007 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6282 9008 | }
|
9009 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6283 9010 | }
|
9011 + | /* ServerBuilderConstraintViolations.kt:84 */
|
6284 9012 | impl ::std::error::Error for ConstraintViolation {}
|
9013 + | /* ServerBuilderConstraintViolations.kt:171 */
|
6285 9014 | impl ConstraintViolation {
|
6286 9015 | pub(crate) fn as_validation_exception_field(
|
6287 9016 | self,
|
6288 9017 | path: ::std::string::String,
|
6289 9018 | ) -> crate::model::ValidationExceptionField {
|
6290 9019 | match self {
|
6291 9020 | ConstraintViolation::MissingConA => crate::model::ValidationExceptionField {
|
6292 9021 | message: format!(
|
6293 9022 | "Value at '{}/conA' failed to satisfy constraint: Member must not be null",
|
6294 9023 | path
|
6295 9024 | ),
|
6296 9025 | path: path + "/conA",
|
6297 9026 | },
|
6298 9027 | ConstraintViolation::ConA(inner) => {
|
6299 9028 | inner.as_validation_exception_field(path + "/conA")
|
6300 9029 | }
|
6301 9030 | }
|
6302 9031 | }
|
6303 9032 | }
|
9033 + | /* ServerBuilderGenerator.kt:234 */
|
6304 9034 | impl ::std::convert::From<ConstraintViolation>
|
6305 9035 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6306 9036 | {
|
6307 9037 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6308 9038 | let first_validation_exception_field =
|
6309 9039 | constraint_violation.as_validation_exception_field("".to_owned());
|
6310 9040 | let validation_exception = crate::error::ValidationException {
|
6311 9041 | message: format!(
|
6312 9042 | "1 validation error detected. {}",
|
6313 9043 | &first_validation_exception_field.message
|
6314 9044 | ),
|
6315 9045 | field_list: Some(vec![first_validation_exception_field]),
|
6316 9046 | };
|
6317 9047 | Self::ConstraintViolation(
|
6318 9048 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6319 9049 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6320 9050 | )
|
6321 9051 | }
|
6322 9052 | }
|
9053 + | /* ServerBuilderGenerator.kt:244 */
|
6323 9054 | impl ::std::convert::From<Builder>
|
6324 9055 | for crate::constrained::MaybeConstrained<crate::input::ConstrainedShapesOperationInput>
|
6325 9056 | {
|
6326 9057 | fn from(builder: Builder) -> Self {
|
6327 9058 | Self::Unconstrained(builder)
|
6328 9059 | }
|
6329 9060 | }
|
9061 + | /* ServerBuilderGenerator.kt:446 */
|
6330 9062 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
6331 9063 | type Error = ConstraintViolation;
|
6332 9064 |
|
6333 9065 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6334 9066 | builder.build()
|
6335 9067 | }
|
6336 9068 | }
|
6337 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
9069 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
9070 + | /* RustType.kt:516 */
|
6338 9071 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9072 + | /* ServerBuilderGenerator.kt:211 */
|
6339 9073 | pub(crate) struct Builder {
|
9074 + | /* ServerBuilderGenerator.kt:308 */
|
6340 9075 | pub(crate) con_a:
|
6341 9076 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
9077 + | /* ServerBuilderGenerator.kt:211 */
|
6342 9078 | }
|
9079 + | /* ServerBuilderGenerator.kt:215 */
|
6343 9080 | impl Builder {
|
9081 + | /* ServerBuilderGenerator.kt:426 */
|
6344 9082 | #[allow(missing_docs)] // documentation missing in model
|
9083 + | /* ServerBuilderGenerator.kt:428 */
|
6345 9084 | pub(crate) fn set_con_a(
|
6346 9085 | mut self,
|
6347 9086 | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
6348 9087 | ) -> Self {
|
9088 + | /* ServerBuilderGenerator.kt:429 */
|
6349 9089 | self.con_a = Some(input.into());
|
6350 9090 | self
|
9091 + | /* ServerBuilderGenerator.kt:428 */
|
6351 9092 | }
|
6352 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6353 - | ///
|
9093 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
9094 + | /// /* ServerBuilderGenerator.kt:260 */
|
6354 9095 | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
6355 9096 | ///
|
6356 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
9097 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
9098 + | /* ServerBuilderGenerator.kt:271 */
|
6357 9099 | pub fn build(
|
6358 9100 | self,
|
6359 9101 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6360 9102 | self.build_enforcing_all_constraints()
|
6361 9103 | }
|
9104 + | /* ServerBuilderGenerator.kt:283 */
|
6362 9105 | fn build_enforcing_all_constraints(
|
6363 9106 | self,
|
6364 9107 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6365 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
9108 + | /* ServerBuilderGenerator.kt:287 */
|
9109 + | Ok(
|
9110 + | /* ServerBuilderGenerator.kt:542 */
|
9111 + | crate::input::ConstrainedShapesOperationInput {
|
9112 + | /* ServerBuilderGenerator.kt:546 */
|
6366 9113 | con_a: self
|
6367 9114 | .con_a
|
9115 + | /* ServerBuilderGenerator.kt:602 */
|
6368 9116 | .map(|v| match v {
|
6369 9117 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6370 9118 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6371 9119 | })
|
9120 + | /* ServerBuilderGenerator.kt:614 */
|
6372 9121 | .map(|res| res.map_err(ConstraintViolation::ConA))
|
6373 9122 | .transpose()?
|
9123 + | /* ServerBuilderGenerator.kt:569 */
|
6374 9124 | .ok_or(ConstraintViolation::MissingConA)?,
|
6375 - | })
|
9125 + | /* ServerBuilderGenerator.kt:542 */
|
9126 + | }, /* ServerBuilderGenerator.kt:287 */
|
9127 + | )
|
9128 + | /* ServerBuilderGenerator.kt:283 */
|
6376 9129 | }
|
9130 + | /* ServerBuilderGenerator.kt:215 */
|
6377 9131 | }
|
9132 + |
|
9133 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6378 9134 | }
|
6379 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
9135 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6380 9136 | pub mod constrained_shapes_operation_input {
|
6381 9137 |
|
9138 + | /* RustType.kt:516 */
|
6382 9139 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6383 - | /// Holds one variant for each of the ways the builder can fail.
|
6384 - |
|
9140 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
9141 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6385 9142 | #[allow(clippy::enum_variant_names)]
|
6386 9143 | pub enum ConstraintViolation {
|
6387 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
9144 + | /// /* ServerBuilderConstraintViolations.kt:138 */`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
9145 + | /* ServerBuilderConstraintViolations.kt:143 */
|
6388 9146 | MissingConA,
|
9147 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6389 9148 | }
|
9149 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6390 9150 | impl ::std::fmt::Display for ConstraintViolation {
|
9151 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6391 9152 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9153 + | /* ServerBuilderConstraintViolations.kt:119 */
|
6392 9154 | match self {
|
6393 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
6394 - | }
|
9155 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
9156 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
9157 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6395 9158 | }
|
9159 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6396 9160 | }
|
9161 + | /* ServerBuilderConstraintViolations.kt:84 */
|
6397 9162 | impl ::std::error::Error for ConstraintViolation {}
|
9163 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
6398 9164 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
6399 9165 | type Error = ConstraintViolation;
|
6400 9166 |
|
6401 9167 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6402 9168 | builder.build()
|
6403 9169 | }
|
6404 9170 | }
|
6405 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
9171 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
9172 + | /* RustType.kt:516 */
|
6406 9173 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9174 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
6407 9175 | pub struct Builder {
|
9176 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
6408 9177 | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
9178 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
6409 9179 | }
|
9180 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
6410 9181 | impl Builder {
|
9182 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
6411 9183 | #[allow(missing_docs)] // documentation missing in model
|
9184 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6412 9185 | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
6413 - | self.con_a = Some(input);
|
9186 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9187 + | self.con_a =
|
9188 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9189 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9190 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9191 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
6414 9192 | self
|
9193 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
6415 9194 | }
|
6416 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6417 - | ///
|
9195 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
9196 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
6418 9197 | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
6419 9198 | ///
|
9199 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
6420 9200 | pub fn build(
|
6421 9201 | self,
|
6422 9202 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6423 9203 | self.build_enforcing_required_and_enum_traits()
|
6424 9204 | }
|
9205 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
6425 9206 | fn build_enforcing_required_and_enum_traits(
|
6426 9207 | self,
|
6427 9208 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6428 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
6429 - | con_a: self.con_a.ok_or(ConstraintViolation::MissingConA)?,
|
6430 - | })
|
9209 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
9210 + | Ok(
|
9211 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
9212 + | crate::input::ConstrainedShapesOperationInput {
|
9213 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
9214 + | con_a: self
|
9215 + | .con_a
|
9216 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
9217 + | .ok_or(ConstraintViolation::MissingConA)?,
|
9218 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
9219 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
9220 + | )
|
9221 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
6431 9222 | }
|
9223 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
6432 9224 | }
|
9225 + |
|
9226 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6433 9227 | }
|