1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | #[::pyo3::pyclass]
|
3 - | /// :param events typing.AsyncIterator\[constraints_without_public_constrained_types.model.Event\]:
|
4 - | /// :rtype None:
|
5 - | #[allow(missing_docs)] // documentation missing in model
|
6 - | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
7 - | pub struct EventStreamsOperationInput {
|
8 - | #[pyo3(get, set)]
|
9 - | /// :type typing.AsyncIterator\[constraints_without_public_constrained_types.model.Event\]:
|
10 - | #[allow(missing_docs)] // documentation missing in model
|
11 - | pub events: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
12 - | }
|
13 - | impl EventStreamsOperationInput {
|
14 - | #[allow(missing_docs)] // documentation missing in model
|
15 - | pub fn events(&self) -> &crate::python_event_stream::EventStreamsOperationInputEventsReceiver {
|
16 - | &self.events
|
17 - | }
|
18 - | }
|
19 - | #[allow(clippy::new_without_default)]
|
20 - | #[allow(clippy::too_many_arguments)]
|
21 - | #[::pyo3::pymethods]
|
22 - | impl EventStreamsOperationInput {
|
23 - | #[new]
|
24 - | pub fn new(
|
25 - | events: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
26 - | ) -> Self {
|
27 - | Self { events }
|
28 - | }
|
29 - | fn __repr__(&self) -> String {
|
30 - | format!("{self:?}")
|
31 - | }
|
32 - | fn __str__(&self) -> String {
|
33 - | format!("{self:?}")
|
34 - | }
|
35 - | }
|
36 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EventStreamsOperationInput> {
|
37 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
38 - | ob.extract::<EventStreamsOperationInput>().map(Box::new)
|
39 - | }
|
40 - | }
|
41 - |
|
42 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EventStreamsOperationInput> {
|
43 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
44 - | (*self).into_py(py)
|
45 - | }
|
46 - | }
|
47 - | impl crate::constrained::Constrained for crate::input::EventStreamsOperationInput {
|
48 - | type Unconstrained = crate::input::event_streams_operation_input_internal::Builder;
|
49 - | }
|
50 - | impl EventStreamsOperationInput {
|
51 - | /// Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
52 - | pub fn builder() -> crate::input::event_streams_operation_input::Builder {
|
53 - | crate::input::event_streams_operation_input::Builder::default()
|
54 - | }
|
55 - | }
|
56 - |
|
57 - | #[::pyo3::pyclass]
|
58 - | /// :param streaming_blob constraints_without_public_constrained_types.types.ByteStream:
|
3 + | /// :param con_a constraints_without_public_constrained_types.model.ConA:
|
59 4 | /// :rtype None:
|
60 5 | #[allow(missing_docs)] // documentation missing in model
|
61 - | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
62 - | pub struct StreamingBlobOperationInput {
|
6 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7 + | pub struct ConstrainedShapesOperationInput {
|
63 8 | #[pyo3(get, set)]
|
64 - | /// :type constraints_without_public_constrained_types.types.ByteStream:
|
9 + | /// :type constraints_without_public_constrained_types.model.ConA:
|
65 10 | #[allow(missing_docs)] // documentation missing in model
|
66 - | pub streaming_blob: ::aws_smithy_http_server_python::types::ByteStream,
|
11 + | pub con_a: crate::model::ConA,
|
67 12 | }
|
68 - | impl StreamingBlobOperationInput {
|
13 + | impl ConstrainedShapesOperationInput {
|
69 14 | #[allow(missing_docs)] // documentation missing in model
|
70 - | pub fn streaming_blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
71 - | &self.streaming_blob
|
15 + | pub fn con_a(&self) -> &crate::model::ConA {
|
16 + | &self.con_a
|
72 17 | }
|
73 18 | }
|
74 19 | #[allow(clippy::new_without_default)]
|
75 20 | #[allow(clippy::too_many_arguments)]
|
76 21 | #[::pyo3::pymethods]
|
77 - | impl StreamingBlobOperationInput {
|
22 + | impl ConstrainedShapesOperationInput {
|
78 23 | #[new]
|
79 - | pub fn new(streaming_blob: ::aws_smithy_http_server_python::types::ByteStream) -> Self {
|
80 - | Self { streaming_blob }
|
24 + | pub fn new(con_a: crate::model::ConA) -> Self {
|
25 + | Self { con_a }
|
81 26 | }
|
82 27 | fn __repr__(&self) -> String {
|
83 28 | format!("{self:?}")
|
84 29 | }
|
85 30 | fn __str__(&self) -> String {
|
86 31 | format!("{self:?}")
|
87 32 | }
|
88 33 | }
|
89 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingBlobOperationInput> {
|
34 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ConstrainedShapesOperationInput> {
|
90 35 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
91 - | ob.extract::<StreamingBlobOperationInput>().map(Box::new)
|
36 + | ob.extract::<ConstrainedShapesOperationInput>()
|
37 + | .map(Box::new)
|
92 38 | }
|
93 39 | }
|
94 40 |
|
95 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamingBlobOperationInput> {
|
41 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ConstrainedShapesOperationInput> {
|
96 42 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
97 43 | (*self).into_py(py)
|
98 44 | }
|
99 45 | }
|
100 - | impl crate::constrained::Constrained for crate::input::StreamingBlobOperationInput {
|
101 - | type Unconstrained = crate::input::streaming_blob_operation_input_internal::Builder;
|
46 + | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOperationInput {
|
47 + | type Unconstrained = crate::input::constrained_shapes_operation_input_internal::Builder;
|
102 48 | }
|
103 - | impl StreamingBlobOperationInput {
|
104 - | /// Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
105 - | pub fn builder() -> crate::input::streaming_blob_operation_input::Builder {
|
106 - | crate::input::streaming_blob_operation_input::Builder::default()
|
49 + | impl ConstrainedShapesOperationInput {
|
50 + | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
51 + | pub fn builder() -> crate::input::constrained_shapes_operation_input::Builder {
|
52 + | crate::input::constrained_shapes_operation_input::Builder::default()
|
107 53 | }
|
108 54 | }
|
109 55 |
|
110 56 | #[::pyo3::pyclass]
|
111 - | /// :param non_streaming_blob typing.Optional\[constraints_without_public_constrained_types.types.Blob\]:
|
112 57 | /// :rtype None:
|
113 58 | #[allow(missing_docs)] // documentation missing in model
|
114 59 | #[derive(
|
115 60 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
116 61 | )]
|
117 - | pub struct NonStreamingBlobOperationInput {
|
118 - | #[pyo3(get, set)]
|
119 - | /// :type typing.Optional\[constraints_without_public_constrained_types.types.Blob\]:
|
120 - | #[allow(missing_docs)] // documentation missing in model
|
121 - | pub non_streaming_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
122 - | }
|
123 - | impl NonStreamingBlobOperationInput {
|
124 - | #[allow(missing_docs)] // documentation missing in model
|
125 - | pub fn non_streaming_blob(
|
126 - | &self,
|
127 - | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
128 - | self.non_streaming_blob.as_ref()
|
129 - | }
|
130 - | }
|
131 - | #[allow(clippy::new_without_default)]
|
132 - | #[allow(clippy::too_many_arguments)]
|
133 - | #[::pyo3::pymethods]
|
134 - | impl NonStreamingBlobOperationInput {
|
135 - | #[new]
|
136 - | pub fn new(
|
137 - | non_streaming_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
138 - | ) -> Self {
|
139 - | Self { non_streaming_blob }
|
140 - | }
|
141 - | fn __repr__(&self) -> String {
|
142 - | format!("{self:?}")
|
143 - | }
|
144 - | fn __str__(&self) -> String {
|
145 - | format!("{self:?}")
|
146 - | }
|
147 - | }
|
148 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NonStreamingBlobOperationInput> {
|
149 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
150 - | ob.extract::<NonStreamingBlobOperationInput>().map(Box::new)
|
151 - | }
|
152 - | }
|
153 - |
|
154 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NonStreamingBlobOperationInput> {
|
155 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
156 - | (*self).into_py(py)
|
157 - | }
|
158 - | }
|
159 - | impl crate::constrained::Constrained for crate::input::NonStreamingBlobOperationInput {
|
160 - | type Unconstrained = crate::input::non_streaming_blob_operation_input_internal::Builder;
|
161 - | }
|
162 - | impl NonStreamingBlobOperationInput {
|
163 - | /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
164 - | pub fn builder() -> crate::input::non_streaming_blob_operation_input::Builder {
|
165 - | crate::input::non_streaming_blob_operation_input::Builder::default()
|
166 - | }
|
167 - | }
|
168 - |
|
169 - | #[::pyo3::pyclass]
|
170 - | /// :param map_of_enum_string typing.Optional\[typing.Dict\[constraints_without_public_constrained_types.model.EnumString, constraints_without_public_constrained_types.model.EnumString\]\]:
|
171 - | /// :rtype None:
|
172 - | #[allow(missing_docs)] // documentation missing in model
|
173 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
174 - | pub struct QueryParamsTargetingMapOfEnumStringOperationInput {
|
175 - | #[pyo3(get, set)]
|
176 - | /// :type typing.Optional\[typing.Dict\[constraints_without_public_constrained_types.model.EnumString, constraints_without_public_constrained_types.model.EnumString\]\]:
|
177 - | #[allow(missing_docs)] // documentation missing in model
|
178 - | pub map_of_enum_string: ::std::option::Option<
|
179 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
180 - | >,
|
181 - | }
|
182 - | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
183 - | #[allow(missing_docs)] // documentation missing in model
|
184 - | pub fn map_of_enum_string(
|
185 - | &self,
|
186 - | ) -> ::std::option::Option<
|
187 - | &::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
188 - | > {
|
189 - | self.map_of_enum_string.as_ref()
|
190 - | }
|
191 - | }
|
62 + | pub struct ConstrainedShapesOnlyInOutputOperationInput {}
|
192 63 | #[allow(clippy::new_without_default)]
|
193 64 | #[allow(clippy::too_many_arguments)]
|
194 65 | #[::pyo3::pymethods]
|
195 - | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
66 + | impl ConstrainedShapesOnlyInOutputOperationInput {
|
196 67 | #[new]
|
197 - | pub fn new(
|
198 - | map_of_enum_string: ::std::option::Option<
|
199 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
200 - | >,
|
201 - | ) -> Self {
|
202 - | Self { map_of_enum_string }
|
68 + | pub fn new() -> Self {
|
69 + | Self {}
|
203 70 | }
|
204 71 | fn __repr__(&self) -> String {
|
205 72 | format!("{self:?}")
|
206 73 | }
|
207 74 | fn __str__(&self) -> String {
|
208 75 | format!("{self:?}")
|
209 76 | }
|
210 77 | }
|
211 78 | impl<'source> ::pyo3::FromPyObject<'source>
|
212 - | for std::boxed::Box<QueryParamsTargetingMapOfEnumStringOperationInput>
|
79 + | for std::boxed::Box<ConstrainedShapesOnlyInOutputOperationInput>
|
213 80 | {
|
214 81 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
215 - | ob.extract::<QueryParamsTargetingMapOfEnumStringOperationInput>()
|
82 + | ob.extract::<ConstrainedShapesOnlyInOutputOperationInput>()
|
216 83 | .map(Box::new)
|
217 84 | }
|
218 85 | }
|
219 86 |
|
220 87 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
221 - | for std::boxed::Box<QueryParamsTargetingMapOfEnumStringOperationInput>
|
88 + | for std::boxed::Box<ConstrainedShapesOnlyInOutputOperationInput>
|
222 89 | {
|
223 90 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
224 91 | (*self).into_py(py)
|
225 92 | }
|
226 93 | }
|
227 - | impl crate::constrained::Constrained
|
228 - | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
229 - | {
|
94 + | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
230 95 | type Unconstrained =
|
231 - | crate::input::query_params_targeting_map_of_enum_string_operation_input_internal::Builder;
|
96 + | crate::input::constrained_shapes_only_in_output_operation_input_internal::Builder;
|
232 97 | }
|
233 - | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
234 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
235 - | pub fn builder(
|
236 - | ) -> crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder {
|
237 - | crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder::default()
|
98 + | impl ConstrainedShapesOnlyInOutputOperationInput {
|
99 + | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
100 + | pub fn builder() -> crate::input::constrained_shapes_only_in_output_operation_input::Builder {
|
101 + | crate::input::constrained_shapes_only_in_output_operation_input::Builder::default()
|
238 102 | }
|
239 103 | }
|
240 104 |
|
241 105 | #[::pyo3::pyclass]
|
242 - | /// :param length_map typing.Optional\[typing.Dict\[str, str\]\]:
|
106 + | /// :param length_string_label str:
|
107 + | /// :param range_integer_label int:
|
108 + | /// :param range_short_label int:
|
109 + | /// :param range_long_label int:
|
110 + | /// :param range_byte_label int:
|
111 + | /// :param enum_string_label constraints_without_public_constrained_types.model.EnumString:
|
112 + | /// :param length_string_header_map typing.Dict\[str, str\]:
|
113 + | /// :param range_integer_header int:
|
114 + | /// :param range_short_header int:
|
115 + | /// :param range_long_header int:
|
116 + | /// :param range_byte_header int:
|
117 + | /// :param range_byte_query int:
|
118 + | /// :param range_short_query int:
|
119 + | /// :param range_integer_query int:
|
120 + | /// :param range_long_query int:
|
121 + | /// :param length_string_header typing.Optional\[str\]:
|
122 + | /// :param length_string_set_header typing.Optional\[typing.Set\[str\]\]:
|
123 + | /// :param list_length_string_header typing.Optional\[typing.List\[str\]\]:
|
124 + | /// :param length_list_pattern_string_header typing.Optional\[typing.List\[str\]\]:
|
125 + | /// :param length_set_pattern_string_header typing.Optional\[typing.Set\[str\]\]:
|
126 + | /// :param range_byte_set_header typing.Optional\[typing.List\[int\]\]:
|
127 + | /// :param range_short_set_header typing.Optional\[typing.List\[int\]\]:
|
128 + | /// :param range_integer_set_header typing.Optional\[typing.List\[int\]\]:
|
129 + | /// :param range_long_set_header typing.Optional\[typing.List\[int\]\]:
|
130 + | /// :param range_byte_list_header typing.Optional\[typing.List\[int\]\]:
|
131 + | /// :param range_short_list_header typing.Optional\[typing.List\[int\]\]:
|
132 + | /// :param range_integer_list_header typing.Optional\[typing.List\[int\]\]:
|
133 + | /// :param range_long_list_header typing.Optional\[typing.List\[int\]\]:
|
134 + | /// :param length_string_query typing.Optional\[str\]:
|
135 + | /// :param enum_string_query typing.Optional\[constraints_without_public_constrained_types.model.EnumString\]:
|
136 + | /// :param length_string_list_query typing.Optional\[typing.List\[str\]\]:
|
137 + | /// :param length_list_pattern_string_query typing.Optional\[typing.List\[str\]\]:
|
138 + | /// :param length_string_set_query typing.Optional\[typing.Set\[str\]\]:
|
139 + | /// :param range_byte_list_query typing.Optional\[typing.List\[int\]\]:
|
140 + | /// :param range_short_list_query typing.Optional\[typing.List\[int\]\]:
|
141 + | /// :param range_integer_list_query typing.Optional\[typing.List\[int\]\]:
|
142 + | /// :param range_long_list_query typing.Optional\[typing.List\[int\]\]:
|
143 + | /// :param range_byte_set_query typing.Optional\[typing.List\[int\]\]:
|
144 + | /// :param range_short_set_query typing.Optional\[typing.List\[int\]\]:
|
145 + | /// :param range_integer_set_query typing.Optional\[typing.List\[int\]\]:
|
146 + | /// :param range_long_set_query typing.Optional\[typing.List\[int\]\]:
|
147 + | /// :param enum_string_list_query typing.Optional\[typing.List\[constraints_without_public_constrained_types.model.EnumString\]\]:
|
243 148 | /// :rtype None:
|
244 149 | #[allow(missing_docs)] // documentation missing in model
|
245 150 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
246 - | pub struct HttpPrefixHeadersTargetingLengthMapOperationInput {
|
151 + | pub struct ConstrainedHttpBoundShapesOperationInput {
|
247 152 | #[pyo3(get, set)]
|
248 - | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
153 + | /// :type str:
|
249 154 | #[allow(missing_docs)] // documentation missing in model
|
250 - | pub length_map: ::std::option::Option<
|
251 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
252 - | >,
|
253 - | }
|
254 - | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
155 + | pub length_string_label: ::std::string::String,
|
156 + | #[pyo3(get, set)]
|
157 + | /// :type int:
|
255 158 | #[allow(missing_docs)] // documentation missing in model
|
256 - | pub fn length_map(
|
257 - | &self,
|
258 - | ) -> ::std::option::Option<
|
259 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
260 - | > {
|
261 - | self.length_map.as_ref()
|
262 - | }
|
263 - | }
|
264 - | #[allow(clippy::new_without_default)]
|
265 - | #[allow(clippy::too_many_arguments)]
|
266 - | #[::pyo3::pymethods]
|
267 - | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
268 - | #[new]
|
269 - | pub fn new(
|
270 - | length_map: ::std::option::Option<
|
271 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
272 - | >,
|
273 - | ) -> Self {
|
274 - | Self { length_map }
|
275 - | }
|
276 - | fn __repr__(&self) -> String {
|
277 - | format!("{self:?}")
|
278 - | }
|
279 - | fn __str__(&self) -> String {
|
280 - | format!("{self:?}")
|
281 - | }
|
282 - | }
|
283 - | impl<'source> ::pyo3::FromPyObject<'source>
|
284 - | for std::boxed::Box<HttpPrefixHeadersTargetingLengthMapOperationInput>
|
285 - | {
|
286 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
287 - | ob.extract::<HttpPrefixHeadersTargetingLengthMapOperationInput>()
|
288 - | .map(Box::new)
|
289 - | }
|
290 - | }
|
291 - |
|
292 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
293 - | for std::boxed::Box<HttpPrefixHeadersTargetingLengthMapOperationInput>
|
294 - | {
|
295 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
296 - | (*self).into_py(py)
|
297 - | }
|
298 - | }
|
299 - | impl crate::constrained::Constrained
|
300 - | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
301 - | {
|
302 - | type Unconstrained =
|
303 - | crate::input::http_prefix_headers_targeting_length_map_operation_input_internal::Builder;
|
304 - | }
|
305 - | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
306 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
307 - | pub fn builder(
|
308 - | ) -> crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder {
|
309 - | crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder::default()
|
310 - | }
|
311 - | }
|
312 - |
|
313 - | #[::pyo3::pyclass]
|
314 - | /// :param map_of_length_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
315 - | /// :rtype None:
|
316 - | #[allow(missing_docs)] // documentation missing in model
|
317 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
318 - | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
159 + | pub range_integer_label: i32,
|
319 160 | #[pyo3(get, set)]
|
320 - | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
161 + | /// :type int:
|
321 162 | #[allow(missing_docs)] // documentation missing in model
|
322 - | pub map_of_length_pattern_string: ::std::option::Option<
|
323 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
324 - | >,
|
325 - | }
|
326 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
163 + | pub range_short_label: i16,
|
164 + | #[pyo3(get, set)]
|
165 + | /// :type int:
|
327 166 | #[allow(missing_docs)] // documentation missing in model
|
328 - | pub fn map_of_length_pattern_string(
|
329 - | &self,
|
330 - | ) -> ::std::option::Option<
|
331 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
332 - | > {
|
333 - | self.map_of_length_pattern_string.as_ref()
|
334 - | }
|
335 - | }
|
336 - | #[allow(clippy::new_without_default)]
|
337 - | #[allow(clippy::too_many_arguments)]
|
338 - | #[::pyo3::pymethods]
|
339 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
340 - | #[new]
|
341 - | pub fn new(
|
342 - | map_of_length_pattern_string: ::std::option::Option<
|
343 - | ::std::collections::HashMap<
|
344 - | ::std::string::String,
|
345 - | ::std::vec::Vec<::std::string::String>,
|
346 - | >,
|
347 - | >,
|
348 - | ) -> Self {
|
349 - | Self {
|
350 - | map_of_length_pattern_string,
|
351 - | }
|
352 - | }
|
353 - | fn __repr__(&self) -> String {
|
354 - | format!("{self:?}")
|
355 - | }
|
356 - | fn __str__(&self) -> String {
|
357 - | format!("{self:?}")
|
358 - | }
|
359 - | }
|
360 - | impl<'source> ::pyo3::FromPyObject<'source>
|
361 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>
|
362 - | {
|
363 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
364 - | ob.extract::<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>()
|
365 - | .map(Box::new)
|
366 - | }
|
367 - | }
|
368 - |
|
369 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
370 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>
|
371 - | {
|
372 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
373 - | (*self).into_py(py)
|
374 - | }
|
375 - | }
|
376 - | impl crate::constrained::Constrained
|
377 - | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
378 - | {
|
379 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal::Builder;
|
380 - | }
|
381 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
382 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
383 - | pub fn builder() -> crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder{
|
384 - | crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder::default()
|
385 - | }
|
386 - | }
|
387 - |
|
388 - | #[::pyo3::pyclass]
|
389 - | /// :param map_of_length_pattern_string typing.Optional\[typing.Dict\[str, str\]\]:
|
390 - | /// :rtype None:
|
391 - | #[allow(missing_docs)] // documentation missing in model
|
392 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
393 - | pub struct QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
167 + | pub range_long_label: i64,
|
394 168 | #[pyo3(get, set)]
|
395 - | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
169 + | /// :type int:
|
396 170 | #[allow(missing_docs)] // documentation missing in model
|
397 - | pub map_of_length_pattern_string: ::std::option::Option<
|
171 + | pub range_byte_label: i8,
|
172 + | #[pyo3(get, set)]
|
173 + | /// :type constraints_without_public_constrained_types.model.EnumString:
|
174 + | #[allow(missing_docs)] // documentation missing in model
|
175 + | pub enum_string_label: crate::model::EnumString,
|
176 + | #[pyo3(get, set)]
|
177 + | /// :type typing.Dict\[str, str\]:
|
178 + | #[allow(missing_docs)] // documentation missing in model
|
179 + | pub length_string_header_map:
|
398 180 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
399 - | >,
|
400 - | }
|
401 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
181 + | #[pyo3(get, set)]
|
182 + | /// :type typing.Optional\[str\]:
|
402 183 | #[allow(missing_docs)] // documentation missing in model
|
403 - | pub fn map_of_length_pattern_string(
|
404 - | &self,
|
405 - | ) -> ::std::option::Option<
|
406 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
407 - | > {
|
408 - | self.map_of_length_pattern_string.as_ref()
|
409 - | }
|
410 - | }
|
411 - | #[allow(clippy::new_without_default)]
|
412 - | #[allow(clippy::too_many_arguments)]
|
413 - | #[::pyo3::pymethods]
|
414 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
415 - | #[new]
|
416 - | pub fn new(
|
417 - | map_of_length_pattern_string: ::std::option::Option<
|
418 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
419 - | >,
|
420 - | ) -> Self {
|
421 - | Self {
|
422 - | map_of_length_pattern_string,
|
423 - | }
|
424 - | }
|
425 - | fn __repr__(&self) -> String {
|
426 - | format!("{self:?}")
|
427 - | }
|
428 - | fn __str__(&self) -> String {
|
429 - | format!("{self:?}")
|
430 - | }
|
431 - | }
|
432 - | impl<'source> ::pyo3::FromPyObject<'source>
|
433 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthPatternStringOperationInput>
|
434 - | {
|
435 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
436 - | ob.extract::<QueryParamsTargetingMapOfLengthPatternStringOperationInput>()
|
437 - | .map(Box::new)
|
438 - | }
|
439 - | }
|
440 - |
|
441 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
442 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthPatternStringOperationInput>
|
443 - | {
|
444 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
445 - | (*self).into_py(py)
|
446 - | }
|
447 - | }
|
448 - | impl crate::constrained::Constrained
|
449 - | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
450 - | {
|
451 - | type Unconstrained = crate::input::query_params_targeting_map_of_length_pattern_string_operation_input_internal::Builder;
|
452 - | }
|
453 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
454 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
455 - | pub fn builder(
|
456 - | ) -> crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder
|
457 - | {
|
458 - | crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder::default()
|
459 - | }
|
460 - | }
|
461 - |
|
462 - | #[::pyo3::pyclass]
|
463 - | /// :param map_of_list_of_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
464 - | /// :rtype None:
|
465 - | #[allow(missing_docs)] // documentation missing in model
|
466 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
467 - | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
184 + | pub length_string_header: ::std::option::Option<::std::string::String>,
|
468 185 | #[pyo3(get, set)]
|
469 - | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
186 + | /// :type int:
|
470 187 | #[allow(missing_docs)] // documentation missing in model
|
471 - | pub map_of_list_of_pattern_string: ::std::option::Option<
|
472 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
473 - | >,
|
474 - | }
|
475 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
188 + | pub range_integer_header: i32,
|
189 + | #[pyo3(get, set)]
|
190 + | /// :type int:
|
476 191 | #[allow(missing_docs)] // documentation missing in model
|
477 - | pub fn map_of_list_of_pattern_string(
|
478 - | &self,
|
479 - | ) -> ::std::option::Option<
|
480 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
481 - | > {
|
482 - | self.map_of_list_of_pattern_string.as_ref()
|
483 - | }
|
484 - | }
|
485 - | #[allow(clippy::new_without_default)]
|
486 - | #[allow(clippy::too_many_arguments)]
|
487 - | #[::pyo3::pymethods]
|
488 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
489 - | #[new]
|
490 - | pub fn new(
|
491 - | map_of_list_of_pattern_string: ::std::option::Option<
|
492 - | ::std::collections::HashMap<
|
493 - | ::std::string::String,
|
494 - | ::std::vec::Vec<::std::string::String>,
|
495 - | >,
|
496 - | >,
|
497 - | ) -> Self {
|
498 - | Self {
|
499 - | map_of_list_of_pattern_string,
|
500 - | }
|
501 - | }
|
502 - | fn __repr__(&self) -> String {
|
503 - | format!("{self:?}")
|
192 + | pub range_short_header: i16,
|
193 + | #[pyo3(get, set)]
|
194 + | /// :type int:
|
195 + | #[allow(missing_docs)] // documentation missing in model
|
196 + | pub range_long_header: i64,
|
197 + | #[pyo3(get, set)]
|
198 + | /// :type int:
|
199 + | #[allow(missing_docs)] // documentation missing in model
|
200 + | pub range_byte_header: i8,
|
201 + | #[pyo3(get, set)]
|
202 + | /// :type typing.Optional\[typing.Set\[str\]\]:
|
203 + | #[allow(missing_docs)] // documentation missing in model
|
204 + | pub length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
205 + | #[pyo3(get, set)]
|
206 + | /// :type typing.Optional\[typing.List\[str\]\]:
|
207 + | #[allow(missing_docs)] // documentation missing in model
|
208 + | pub list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
209 + | #[pyo3(get, set)]
|
210 + | /// :type typing.Optional\[typing.List\[str\]\]:
|
211 + | #[allow(missing_docs)] // documentation missing in model
|
212 + | pub length_list_pattern_string_header:
|
213 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
214 + | #[pyo3(get, set)]
|
215 + | /// :type typing.Optional\[typing.Set\[str\]\]:
|
216 + | #[allow(missing_docs)] // documentation missing in model
|
217 + | pub length_set_pattern_string_header:
|
218 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
219 + | #[pyo3(get, set)]
|
220 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
221 + | #[allow(missing_docs)] // documentation missing in model
|
222 + | pub range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
223 + | #[pyo3(get, set)]
|
224 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
225 + | #[allow(missing_docs)] // documentation missing in model
|
226 + | pub range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
227 + | #[pyo3(get, set)]
|
228 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
229 + | #[allow(missing_docs)] // documentation missing in model
|
230 + | pub range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
231 + | #[pyo3(get, set)]
|
232 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
233 + | #[allow(missing_docs)] // documentation missing in model
|
234 + | pub range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
235 + | #[pyo3(get, set)]
|
236 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
237 + | #[allow(missing_docs)] // documentation missing in model
|
238 + | pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
239 + | #[pyo3(get, set)]
|
240 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
241 + | #[allow(missing_docs)] // documentation missing in model
|
242 + | pub range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
243 + | #[pyo3(get, set)]
|
244 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
245 + | #[allow(missing_docs)] // documentation missing in model
|
246 + | pub range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
247 + | #[pyo3(get, set)]
|
248 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
249 + | #[allow(missing_docs)] // documentation missing in model
|
250 + | pub range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
251 + | #[pyo3(get, set)]
|
252 + | /// :type typing.Optional\[str\]:
|
253 + | #[allow(missing_docs)] // documentation missing in model
|
254 + | pub length_string_query: ::std::option::Option<::std::string::String>,
|
255 + | #[pyo3(get, set)]
|
256 + | /// :type int:
|
257 + | #[allow(missing_docs)] // documentation missing in model
|
258 + | pub range_byte_query: i8,
|
259 + | #[pyo3(get, set)]
|
260 + | /// :type int:
|
261 + | #[allow(missing_docs)] // documentation missing in model
|
262 + | pub range_short_query: i16,
|
263 + | #[pyo3(get, set)]
|
264 + | /// :type int:
|
265 + | #[allow(missing_docs)] // documentation missing in model
|
266 + | pub range_integer_query: i32,
|
267 + | #[pyo3(get, set)]
|
268 + | /// :type int:
|
269 + | #[allow(missing_docs)] // documentation missing in model
|
270 + | pub range_long_query: i64,
|
271 + | #[pyo3(get, set)]
|
272 + | /// :type typing.Optional\[constraints_without_public_constrained_types.model.EnumString\]:
|
273 + | #[allow(missing_docs)] // documentation missing in model
|
274 + | pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
275 + | #[pyo3(get, set)]
|
276 + | /// :type typing.Optional\[typing.List\[str\]\]:
|
277 + | #[allow(missing_docs)] // documentation missing in model
|
278 + | pub length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
279 + | #[pyo3(get, set)]
|
280 + | /// :type typing.Optional\[typing.List\[str\]\]:
|
281 + | #[allow(missing_docs)] // documentation missing in model
|
282 + | pub length_list_pattern_string_query:
|
283 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
284 + | #[pyo3(get, set)]
|
285 + | /// :type typing.Optional\[typing.Set\[str\]\]:
|
286 + | #[allow(missing_docs)] // documentation missing in model
|
287 + | pub length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
288 + | #[pyo3(get, set)]
|
289 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
290 + | #[allow(missing_docs)] // documentation missing in model
|
291 + | pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
292 + | #[pyo3(get, set)]
|
293 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
294 + | #[allow(missing_docs)] // documentation missing in model
|
295 + | pub range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
296 + | #[pyo3(get, set)]
|
297 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
298 + | #[allow(missing_docs)] // documentation missing in model
|
299 + | pub range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
300 + | #[pyo3(get, set)]
|
301 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
302 + | #[allow(missing_docs)] // documentation missing in model
|
303 + | pub range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
304 + | #[pyo3(get, set)]
|
305 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
306 + | #[allow(missing_docs)] // documentation missing in model
|
307 + | pub range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
308 + | #[pyo3(get, set)]
|
309 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
310 + | #[allow(missing_docs)] // documentation missing in model
|
311 + | pub range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
312 + | #[pyo3(get, set)]
|
313 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
314 + | #[allow(missing_docs)] // documentation missing in model
|
315 + | pub range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
316 + | #[pyo3(get, set)]
|
317 + | /// :type typing.Optional\[typing.List\[int\]\]:
|
318 + | #[allow(missing_docs)] // documentation missing in model
|
319 + | pub range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
320 + | #[pyo3(get, set)]
|
321 + | /// :type typing.Optional\[typing.List\[constraints_without_public_constrained_types.model.EnumString\]\]:
|
322 + | #[allow(missing_docs)] // documentation missing in model
|
323 + | pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
324 + | }
|
325 + | impl ConstrainedHttpBoundShapesOperationInput {
|
326 + | #[allow(missing_docs)] // documentation missing in model
|
327 + | pub fn length_string_label(&self) -> &str {
|
328 + | use std::ops::Deref;
|
329 + | self.length_string_label.deref()
|
504 330 | }
|
505 - | fn __str__(&self) -> String {
|
506 - | format!("{self:?}")
|
331 + | #[allow(missing_docs)] // documentation missing in model
|
332 + | pub fn range_integer_label(&self) -> i32 {
|
333 + | self.range_integer_label
|
507 334 | }
|
508 - | }
|
509 - | impl<'source> ::pyo3::FromPyObject<'source>
|
510 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfPatternStringOperationInput>
|
511 - | {
|
512 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
513 - | ob.extract::<QueryParamsTargetingMapOfListOfPatternStringOperationInput>()
|
514 - | .map(Box::new)
|
335 + | #[allow(missing_docs)] // documentation missing in model
|
336 + | pub fn range_short_label(&self) -> i16 {
|
337 + | self.range_short_label
|
515 338 | }
|
516 - | }
|
517 - |
|
518 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
519 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfPatternStringOperationInput>
|
520 - | {
|
521 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
522 - | (*self).into_py(py)
|
339 + | #[allow(missing_docs)] // documentation missing in model
|
340 + | pub fn range_long_label(&self) -> i64 {
|
341 + | self.range_long_label
|
523 342 | }
|
524 - | }
|
525 - | impl crate::constrained::Constrained
|
526 - | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
527 - | {
|
528 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input_internal::Builder;
|
529 - | }
|
530 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
531 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
532 - | pub fn builder(
|
533 - | ) -> crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder
|
534 - | {
|
535 - | crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder::default()
|
343 + | #[allow(missing_docs)] // documentation missing in model
|
344 + | pub fn range_byte_label(&self) -> i8 {
|
345 + | self.range_byte_label
|
536 346 | }
|
537 - | }
|
538 - |
|
539 - | #[::pyo3::pyclass]
|
540 - | /// :param map_of_pattern_string typing.Optional\[typing.Dict\[str, str\]\]:
|
541 - | /// :rtype None:
|
542 - | #[allow(missing_docs)] // documentation missing in model
|
543 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
544 - | pub struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
545 - | #[pyo3(get, set)]
|
546 - | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
547 347 | #[allow(missing_docs)] // documentation missing in model
|
548 - | pub map_of_pattern_string: ::std::option::Option<
|
549 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
550 - | >,
|
551 - | }
|
552 - | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
348 + | pub fn enum_string_label(&self) -> &crate::model::EnumString {
|
349 + | &self.enum_string_label
|
350 + | }
|
553 351 | #[allow(missing_docs)] // documentation missing in model
|
554 - | pub fn map_of_pattern_string(
|
352 + | pub fn length_string_header_map(
|
555 353 | &self,
|
556 - | ) -> ::std::option::Option<
|
557 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
558 - | > {
|
559 - | self.map_of_pattern_string.as_ref()
|
354 + | ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
355 + | &self.length_string_header_map
|
560 356 | }
|
561 - | }
|
562 - | #[allow(clippy::new_without_default)]
|
563 - | #[allow(clippy::too_many_arguments)]
|
564 - | #[::pyo3::pymethods]
|
565 - | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
566 - | #[new]
|
567 - | pub fn new(
|
568 - | map_of_pattern_string: ::std::option::Option<
|
569 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
570 - | >,
|
571 - | ) -> Self {
|
572 - | Self {
|
573 - | map_of_pattern_string,
|
574 - | }
|
357 + | #[allow(missing_docs)] // documentation missing in model
|
358 + | pub fn length_string_header(&self) -> ::std::option::Option<&str> {
|
359 + | self.length_string_header.as_deref()
|
575 360 | }
|
576 - | fn __repr__(&self) -> String {
|
577 - | format!("{self:?}")
|
361 + | #[allow(missing_docs)] // documentation missing in model
|
362 + | pub fn range_integer_header(&self) -> i32 {
|
363 + | self.range_integer_header
|
578 364 | }
|
579 - | fn __str__(&self) -> String {
|
580 - | format!("{self:?}")
|
365 + | #[allow(missing_docs)] // documentation missing in model
|
366 + | pub fn range_short_header(&self) -> i16 {
|
367 + | self.range_short_header
|
581 368 | }
|
582 - | }
|
583 - | impl<'source> ::pyo3::FromPyObject<'source>
|
584 - | for std::boxed::Box<QueryParamsTargetingMapOfPatternStringOperationInput>
|
585 - | {
|
586 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
587 - | ob.extract::<QueryParamsTargetingMapOfPatternStringOperationInput>()
|
588 - | .map(Box::new)
|
369 + | #[allow(missing_docs)] // documentation missing in model
|
370 + | pub fn range_long_header(&self) -> i64 {
|
371 + | self.range_long_header
|
589 372 | }
|
590 - | }
|
591 - |
|
592 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
593 - | for std::boxed::Box<QueryParamsTargetingMapOfPatternStringOperationInput>
|
594 - | {
|
595 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
596 - | (*self).into_py(py)
|
373 + | #[allow(missing_docs)] // documentation missing in model
|
374 + | pub fn range_byte_header(&self) -> i8 {
|
375 + | self.range_byte_header
|
597 376 | }
|
598 - | }
|
599 - | impl crate::constrained::Constrained
|
600 - | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
601 - | {
|
602 - | type Unconstrained = crate::input::query_params_targeting_map_of_pattern_string_operation_input_internal::Builder;
|
603 - | }
|
604 - | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
605 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
606 - | pub fn builder(
|
607 - | ) -> crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder {
|
608 - | crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder::default(
|
609 - | )
|
377 + | #[allow(missing_docs)] // documentation missing in model
|
378 + | pub fn length_string_set_header(
|
379 + | &self,
|
380 + | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
381 + | self.length_string_set_header.as_ref()
|
610 382 | }
|
611 - | }
|
612 - |
|
613 - | #[::pyo3::pyclass]
|
614 - | /// :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 - | /// :rtype None:
|
616 - | #[allow(missing_docs)] // documentation missing in model
|
617 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
618 - | pub struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
619 - | #[pyo3(get, set)]
|
620 - | /// :type typing.Optional\[typing.Dict\[constraints_without_public_constrained_types.model.EnumString, typing.List\[constraints_without_public_constrained_types.model.EnumString\]\]\]:
|
621 383 | #[allow(missing_docs)] // documentation missing in model
|
622 - | pub map_of_list_of_enum_string: ::std::option::Option<
|
623 - | ::std::collections::HashMap<
|
624 - | crate::model::EnumString,
|
625 - | ::std::vec::Vec<crate::model::EnumString>,
|
626 - | >,
|
627 - | >,
|
628 - | }
|
629 - | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
384 + | pub fn list_length_string_header(&self) -> ::std::option::Option<&[::std::string::String]> {
|
385 + | self.list_length_string_header.as_deref()
|
386 + | }
|
630 387 | #[allow(missing_docs)] // documentation missing in model
|
631 - | pub fn map_of_list_of_enum_string(
|
388 + | pub fn length_list_pattern_string_header(
|
632 389 | &self,
|
633 - | ) -> ::std::option::Option<
|
634 - | &::std::collections::HashMap<
|
635 - | crate::model::EnumString,
|
636 - | ::std::vec::Vec<crate::model::EnumString>,
|
637 - | >,
|
638 - | > {
|
639 - | self.map_of_list_of_enum_string.as_ref()
|
390 + | ) -> ::std::option::Option<&[::std::string::String]> {
|
391 + | self.length_list_pattern_string_header.as_deref()
|
640 392 | }
|
641 - | }
|
642 - | #[allow(clippy::new_without_default)]
|
643 - | #[allow(clippy::too_many_arguments)]
|
644 - | #[::pyo3::pymethods]
|
645 - | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
646 - | #[new]
|
647 - | pub fn new(
|
648 - | map_of_list_of_enum_string: ::std::option::Option<
|
649 - | ::std::collections::HashMap<
|
650 - | crate::model::EnumString,
|
651 - | ::std::vec::Vec<crate::model::EnumString>,
|
652 - | >,
|
653 - | >,
|
654 - | ) -> Self {
|
655 - | Self {
|
656 - | map_of_list_of_enum_string,
|
657 - | }
|
393 + | #[allow(missing_docs)] // documentation missing in model
|
394 + | pub fn length_set_pattern_string_header(
|
395 + | &self,
|
396 + | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
397 + | self.length_set_pattern_string_header.as_ref()
|
658 398 | }
|
659 - | fn __repr__(&self) -> String {
|
660 - | format!("{self:?}")
|
399 + | #[allow(missing_docs)] // documentation missing in model
|
400 + | pub fn range_byte_set_header(&self) -> ::std::option::Option<&[i8]> {
|
401 + | self.range_byte_set_header.as_deref()
|
661 402 | }
|
662 - | fn __str__(&self) -> String {
|
663 - | format!("{self:?}")
|
403 + | #[allow(missing_docs)] // documentation missing in model
|
404 + | pub fn range_short_set_header(&self) -> ::std::option::Option<&[i16]> {
|
405 + | self.range_short_set_header.as_deref()
|
664 406 | }
|
665 - | }
|
666 - | impl<'source> ::pyo3::FromPyObject<'source>
|
667 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfEnumStringOperationInput>
|
668 - | {
|
669 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
670 - | ob.extract::<QueryParamsTargetingMapOfListOfEnumStringOperationInput>()
|
671 - | .map(Box::new)
|
407 + | #[allow(missing_docs)] // documentation missing in model
|
408 + | pub fn range_integer_set_header(&self) -> ::std::option::Option<&[i32]> {
|
409 + | self.range_integer_set_header.as_deref()
|
672 410 | }
|
673 - | }
|
674 - |
|
675 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
676 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfEnumStringOperationInput>
|
677 - | {
|
678 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
679 - | (*self).into_py(py)
|
411 + | #[allow(missing_docs)] // documentation missing in model
|
412 + | pub fn range_long_set_header(&self) -> ::std::option::Option<&[i64]> {
|
413 + | self.range_long_set_header.as_deref()
|
680 414 | }
|
681 - | }
|
682 - | impl crate::constrained::Constrained
|
683 - | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
684 - | {
|
685 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input_internal::Builder;
|
686 - | }
|
687 - | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
688 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
689 - | pub fn builder(
|
690 - | ) -> crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder
|
691 - | {
|
692 - | crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder::default()
|
415 + | #[allow(missing_docs)] // documentation missing in model
|
416 + | pub fn range_byte_list_header(&self) -> ::std::option::Option<&[i8]> {
|
417 + | self.range_byte_list_header.as_deref()
|
693 418 | }
|
694 - | }
|
695 - |
|
696 - | #[::pyo3::pyclass]
|
697 - | /// :param map_of_length_list_of_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
698 - | /// :rtype None:
|
699 - | #[allow(missing_docs)] // documentation missing in model
|
700 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
701 - | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
702 - | #[pyo3(get, set)]
|
703 - | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
704 419 | #[allow(missing_docs)] // documentation missing in model
|
705 - | pub map_of_length_list_of_pattern_string: ::std::option::Option<
|
706 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
707 - | >,
|
708 - | }
|
709 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
420 + | pub fn range_short_list_header(&self) -> ::std::option::Option<&[i16]> {
|
421 + | self.range_short_list_header.as_deref()
|
422 + | }
|
710 423 | #[allow(missing_docs)] // documentation missing in model
|
711 - | pub fn map_of_length_list_of_pattern_string(
|
712 - | &self,
|
713 - | ) -> ::std::option::Option<
|
714 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
715 - | > {
|
716 - | self.map_of_length_list_of_pattern_string.as_ref()
|
424 + | pub fn range_integer_list_header(&self) -> ::std::option::Option<&[i32]> {
|
425 + | self.range_integer_list_header.as_deref()
|
717 426 | }
|
718 - | }
|
719 - | #[allow(clippy::new_without_default)]
|
720 - | #[allow(clippy::too_many_arguments)]
|
721 - | #[::pyo3::pymethods]
|
722 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
723 - | #[new]
|
724 - | pub fn new(
|
725 - | map_of_length_list_of_pattern_string: ::std::option::Option<
|
726 - | ::std::collections::HashMap<
|
727 - | ::std::string::String,
|
728 - | ::std::vec::Vec<::std::string::String>,
|
729 - | >,
|
730 - | >,
|
731 - | ) -> Self {
|
732 - | Self {
|
733 - | map_of_length_list_of_pattern_string,
|
734 - | }
|
427 + | #[allow(missing_docs)] // documentation missing in model
|
428 + | pub fn range_long_list_header(&self) -> ::std::option::Option<&[i64]> {
|
429 + | self.range_long_list_header.as_deref()
|
735 430 | }
|
736 - | fn __repr__(&self) -> String {
|
737 - | format!("{self:?}")
|
431 + | #[allow(missing_docs)] // documentation missing in model
|
432 + | pub fn length_string_query(&self) -> ::std::option::Option<&str> {
|
433 + | self.length_string_query.as_deref()
|
738 434 | }
|
739 - | fn __str__(&self) -> String {
|
740 - | format!("{self:?}")
|
435 + | #[allow(missing_docs)] // documentation missing in model
|
436 + | pub fn range_byte_query(&self) -> i8 {
|
437 + | self.range_byte_query
|
741 438 | }
|
742 - | }
|
743 - | impl<'source> ::pyo3::FromPyObject<'source>
|
744 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>
|
745 - | {
|
746 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
747 - | ob.extract::<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>()
|
748 - | .map(Box::new)
|
439 + | #[allow(missing_docs)] // documentation missing in model
|
440 + | pub fn range_short_query(&self) -> i16 {
|
441 + | self.range_short_query
|
749 442 | }
|
750 - | }
|
751 - |
|
752 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
753 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>
|
754 - | {
|
755 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
756 - | (*self).into_py(py)
|
443 + | #[allow(missing_docs)] // documentation missing in model
|
444 + | pub fn range_integer_query(&self) -> i32 {
|
445 + | self.range_integer_query
|
757 446 | }
|
758 - | }
|
759 - | impl crate::constrained::Constrained
|
760 - | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
761 - | {
|
762 - | type Unconstrained = crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal::Builder;
|
763 - | }
|
764 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
765 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
766 - | pub fn builder() -> crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder{
|
767 - | crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder::default()
|
447 + | #[allow(missing_docs)] // documentation missing in model
|
448 + | pub fn range_long_query(&self) -> i64 {
|
449 + | self.range_long_query
|
768 450 | }
|
769 - | }
|
770 - |
|
771 - | #[::pyo3::pyclass]
|
772 - | /// :param map_of_set_of_length_string typing.Optional\[typing.Dict\[str, typing.Set\[str\]\]\]:
|
773 - | /// :rtype None:
|
774 - | #[allow(missing_docs)] // documentation missing in model
|
775 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
776 - | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
777 - | #[pyo3(get, set)]
|
778 - | /// :type typing.Optional\[typing.Dict\[str, typing.Set\[str\]\]\]:
|
779 451 | #[allow(missing_docs)] // documentation missing in model
|
780 - | pub map_of_set_of_length_string: ::std::option::Option<
|
781 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
782 - | >,
|
783 - | }
|
784 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
452 + | pub fn enum_string_query(&self) -> ::std::option::Option<&crate::model::EnumString> {
|
453 + | self.enum_string_query.as_ref()
|
454 + | }
|
785 455 | #[allow(missing_docs)] // documentation missing in model
|
786 - | pub fn map_of_set_of_length_string(
|
787 - | &self,
|
788 - | ) -> ::std::option::Option<
|
789 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
790 - | > {
|
791 - | self.map_of_set_of_length_string.as_ref()
|
456 + | pub fn length_string_list_query(&self) -> ::std::option::Option<&[::std::string::String]> {
|
457 + | self.length_string_list_query.as_deref()
|
792 458 | }
|
793 - | }
|
794 - | #[allow(clippy::new_without_default)]
|
795 - | #[allow(clippy::too_many_arguments)]
|
796 - | #[::pyo3::pymethods]
|
797 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
798 - | #[new]
|
799 - | pub fn new(
|
800 - | map_of_set_of_length_string: ::std::option::Option<
|
801 - | ::std::collections::HashMap<
|
802 - | ::std::string::String,
|
803 - | ::std::vec::Vec<::std::string::String>,
|
804 - | >,
|
805 - | >,
|
806 - | ) -> Self {
|
807 - | Self {
|
808 - | map_of_set_of_length_string,
|
809 - | }
|
459 + | #[allow(missing_docs)] // documentation missing in model
|
460 + | pub fn length_list_pattern_string_query(
|
461 + | &self,
|
462 + | ) -> ::std::option::Option<&[::std::string::String]> {
|
463 + | self.length_list_pattern_string_query.as_deref()
|
810 464 | }
|
811 - | fn __repr__(&self) -> String {
|
812 - | format!("{self:?}")
|
465 + | #[allow(missing_docs)] // documentation missing in model
|
466 + | pub fn length_string_set_query(
|
467 + | &self,
|
468 + | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
469 + | self.length_string_set_query.as_ref()
|
813 470 | }
|
814 - | fn __str__(&self) -> String {
|
815 - | format!("{self:?}")
|
471 + | #[allow(missing_docs)] // documentation missing in model
|
472 + | pub fn range_byte_list_query(&self) -> ::std::option::Option<&[i8]> {
|
473 + | self.range_byte_list_query.as_deref()
|
816 474 | }
|
817 - | }
|
818 - | impl<'source> ::pyo3::FromPyObject<'source>
|
819 - | for std::boxed::Box<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>
|
820 - | {
|
821 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
822 - | ob.extract::<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>()
|
823 - | .map(Box::new)
|
475 + | #[allow(missing_docs)] // documentation missing in model
|
476 + | pub fn range_short_list_query(&self) -> ::std::option::Option<&[i16]> {
|
477 + | self.range_short_list_query.as_deref()
|
824 478 | }
|
825 - | }
|
826 - |
|
827 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
828 - | for std::boxed::Box<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>
|
829 - | {
|
830 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
831 - | (*self).into_py(py)
|
479 + | #[allow(missing_docs)] // documentation missing in model
|
480 + | pub fn range_integer_list_query(&self) -> ::std::option::Option<&[i32]> {
|
481 + | self.range_integer_list_query.as_deref()
|
832 482 | }
|
833 - | }
|
834 - | impl crate::constrained::Constrained
|
835 - | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
836 - | {
|
837 - | type Unconstrained = crate::input::query_params_targeting_map_of_set_of_length_string_operation_input_internal::Builder;
|
838 - | }
|
839 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
840 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
841 - | pub fn builder(
|
842 - | ) -> crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder
|
843 - | {
|
844 - | crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder::default()
|
483 + | #[allow(missing_docs)] // documentation missing in model
|
484 + | pub fn range_long_list_query(&self) -> ::std::option::Option<&[i64]> {
|
485 + | self.range_long_list_query.as_deref()
|
845 486 | }
|
846 - | }
|
847 - |
|
848 - | #[::pyo3::pyclass]
|
849 - | /// :param map_of_list_of_length_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
850 - | /// :rtype None:
|
851 - | #[allow(missing_docs)] // documentation missing in model
|
852 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
853 - | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
854 - | #[pyo3(get, set)]
|
855 - | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
856 487 | #[allow(missing_docs)] // documentation missing in model
|
857 - | pub map_of_list_of_length_string: ::std::option::Option<
|
858 - | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
859 - | >,
|
860 - | }
|
861 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
488 + | pub fn range_byte_set_query(&self) -> ::std::option::Option<&[i8]> {
|
489 + | self.range_byte_set_query.as_deref()
|
490 + | }
|
862 491 | #[allow(missing_docs)] // documentation missing in model
|
863 - | pub fn map_of_list_of_length_string(
|
864 - | &self,
|
865 - | ) -> ::std::option::Option<
|
866 - | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
867 - | > {
|
868 - | self.map_of_list_of_length_string.as_ref()
|
492 + | pub fn range_short_set_query(&self) -> ::std::option::Option<&[i16]> {
|
493 + | self.range_short_set_query.as_deref()
|
494 + | }
|
495 + | #[allow(missing_docs)] // documentation missing in model
|
496 + | pub fn range_integer_set_query(&self) -> ::std::option::Option<&[i32]> {
|
497 + | self.range_integer_set_query.as_deref()
|
498 + | }
|
499 + | #[allow(missing_docs)] // documentation missing in model
|
500 + | pub fn range_long_set_query(&self) -> ::std::option::Option<&[i64]> {
|
501 + | self.range_long_set_query.as_deref()
|
502 + | }
|
503 + | #[allow(missing_docs)] // documentation missing in model
|
504 + | pub fn enum_string_list_query(&self) -> ::std::option::Option<&[crate::model::EnumString]> {
|
505 + | self.enum_string_list_query.as_deref()
|
869 506 | }
|
870 507 | }
|
871 508 | #[allow(clippy::new_without_default)]
|
872 509 | #[allow(clippy::too_many_arguments)]
|
873 510 | #[::pyo3::pymethods]
|
874 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
511 + | impl ConstrainedHttpBoundShapesOperationInput {
|
875 512 | #[new]
|
876 513 | pub fn new(
|
877 - | map_of_list_of_length_string: ::std::option::Option<
|
878 - | ::std::collections::HashMap<
|
879 - | ::std::string::String,
|
880 - | ::std::vec::Vec<::std::string::String>,
|
881 - | >,
|
514 + | length_string_label: ::std::string::String,
|
515 + | range_integer_label: i32,
|
516 + | range_short_label: i16,
|
517 + | range_long_label: i64,
|
518 + | range_byte_label: i8,
|
519 + | enum_string_label: crate::model::EnumString,
|
520 + | length_string_header_map: ::std::collections::HashMap<
|
521 + | ::std::string::String,
|
522 + | ::std::string::String,
|
523 + | >,
|
524 + | range_integer_header: i32,
|
525 + | range_short_header: i16,
|
526 + | range_long_header: i64,
|
527 + | range_byte_header: i8,
|
528 + | range_byte_query: i8,
|
529 + | range_short_query: i16,
|
530 + | range_integer_query: i32,
|
531 + | range_long_query: i64,
|
532 + | length_string_header: ::std::option::Option<::std::string::String>,
|
533 + | length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
534 + | list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
535 + | length_list_pattern_string_header: ::std::option::Option<
|
536 + | ::std::vec::Vec<::std::string::String>,
|
537 + | >,
|
538 + | length_set_pattern_string_header: ::std::option::Option<
|
539 + | ::std::vec::Vec<::std::string::String>,
|
540 + | >,
|
541 + | range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
542 + | range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
543 + | range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
544 + | range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
545 + | range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
546 + | range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
547 + | range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
548 + | range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
549 + | length_string_query: ::std::option::Option<::std::string::String>,
|
550 + | enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
551 + | length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
552 + | length_list_pattern_string_query: ::std::option::Option<
|
553 + | ::std::vec::Vec<::std::string::String>,
|
882 554 | >,
|
555 + | length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
556 + | range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
557 + | range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
558 + | range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
559 + | range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
560 + | range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
561 + | range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
562 + | range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
563 + | range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
564 + | enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
883 565 | ) -> Self {
|
884 566 | Self {
|
885 - | map_of_list_of_length_string,
|
567 + | length_string_label,
|
568 + | range_integer_label,
|
569 + | range_short_label,
|
570 + | range_long_label,
|
571 + | range_byte_label,
|
572 + | enum_string_label,
|
573 + | length_string_header_map,
|
574 + | range_integer_header,
|
575 + | range_short_header,
|
576 + | range_long_header,
|
577 + | range_byte_header,
|
578 + | range_byte_query,
|
579 + | range_short_query,
|
580 + | range_integer_query,
|
581 + | range_long_query,
|
582 + | length_string_header,
|
583 + | length_string_set_header,
|
584 + | list_length_string_header,
|
585 + | length_list_pattern_string_header,
|
586 + | length_set_pattern_string_header,
|
587 + | range_byte_set_header,
|
588 + | range_short_set_header,
|
589 + | range_integer_set_header,
|
590 + | range_long_set_header,
|
591 + | range_byte_list_header,
|
592 + | range_short_list_header,
|
593 + | range_integer_list_header,
|
594 + | range_long_list_header,
|
595 + | length_string_query,
|
596 + | enum_string_query,
|
597 + | length_string_list_query,
|
598 + | length_list_pattern_string_query,
|
599 + | length_string_set_query,
|
600 + | range_byte_list_query,
|
601 + | range_short_list_query,
|
602 + | range_integer_list_query,
|
603 + | range_long_list_query,
|
604 + | range_byte_set_query,
|
605 + | range_short_set_query,
|
606 + | range_integer_set_query,
|
607 + | range_long_set_query,
|
608 + | enum_string_list_query,
|
886 609 | }
|
887 610 | }
|
888 611 | fn __repr__(&self) -> String {
|
889 612 | format!("{self:?}")
|
890 613 | }
|
891 614 | fn __str__(&self) -> String {
|
892 615 | format!("{self:?}")
|
893 616 | }
|
894 617 | }
|
895 618 | impl<'source> ::pyo3::FromPyObject<'source>
|
896 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthStringOperationInput>
|
619 + | for std::boxed::Box<ConstrainedHttpBoundShapesOperationInput>
|
897 620 | {
|
898 621 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
899 - | ob.extract::<QueryParamsTargetingMapOfListOfLengthStringOperationInput>()
|
622 + | ob.extract::<ConstrainedHttpBoundShapesOperationInput>()
|
900 623 | .map(Box::new)
|
901 624 | }
|
902 625 | }
|
903 626 |
|
904 627 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
905 - | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthStringOperationInput>
|
628 + | for std::boxed::Box<ConstrainedHttpBoundShapesOperationInput>
|
906 629 | {
|
907 630 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
908 631 | (*self).into_py(py)
|
909 632 | }
|
910 633 | }
|
911 - | impl crate::constrained::Constrained
|
912 - | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
913 - | {
|
914 - | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_string_operation_input_internal::Builder;
|
634 + | impl crate::constrained::Constrained for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
635 + | type Unconstrained =
|
636 + | crate::input::constrained_http_bound_shapes_operation_input_internal::Builder;
|
915 637 | }
|
916 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
917 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
918 - | pub fn builder(
|
919 - | ) -> crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder
|
920 - | {
|
921 - | crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder::default()
|
638 + | impl ConstrainedHttpBoundShapesOperationInput {
|
639 + | /// Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
640 + | pub fn builder() -> crate::input::constrained_http_bound_shapes_operation_input::Builder {
|
641 + | crate::input::constrained_http_bound_shapes_operation_input::Builder::default()
|
922 642 | }
|
923 643 | }
|
924 644 |
|
925 645 | #[::pyo3::pyclass]
|
926 - | /// :param map_of_length_string typing.Optional\[typing.Dict\[str, str\]\]:
|
646 + | /// :param http_payload_bound_constrained_shape constraints_without_public_constrained_types.model.ConA:
|
927 647 | /// :rtype None:
|
928 648 | #[allow(missing_docs)] // documentation missing in model
|
929 649 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
930 - | pub struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
650 + | pub struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
931 651 | #[pyo3(get, set)]
|
932 - | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
652 + | /// :type constraints_without_public_constrained_types.model.ConA:
|
933 653 | #[allow(missing_docs)] // documentation missing in model
|
934 - | pub map_of_length_string: ::std::option::Option<
|
935 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
936 - | >,
|
654 + | pub http_payload_bound_constrained_shape: crate::model::ConA,
|
937 655 | }
|
938 - | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
656 + | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
939 657 | #[allow(missing_docs)] // documentation missing in model
|
940 - | pub fn map_of_length_string(
|
941 - | &self,
|
942 - | ) -> ::std::option::Option<
|
943 - | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
944 - | > {
|
945 - | self.map_of_length_string.as_ref()
|
658 + | pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
|
659 + | &self.http_payload_bound_constrained_shape
|
946 660 | }
|
947 661 | }
|
948 662 | #[allow(clippy::new_without_default)]
|
949 663 | #[allow(clippy::too_many_arguments)]
|
950 664 | #[::pyo3::pymethods]
|
951 - | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
665 + | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
952 666 | #[new]
|
953 - | pub fn new(
|
954 - | map_of_length_string: ::std::option::Option<
|
955 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
956 - | >,
|
957 - | ) -> Self {
|
667 + | pub fn new(http_payload_bound_constrained_shape: crate::model::ConA) -> Self {
|
958 668 | Self {
|
959 - | map_of_length_string,
|
669 + | http_payload_bound_constrained_shape,
|
960 670 | }
|
961 671 | }
|
962 672 | fn __repr__(&self) -> String {
|
963 673 | format!("{self:?}")
|
964 674 | }
|
965 675 | fn __str__(&self) -> String {
|
966 676 | format!("{self:?}")
|
967 677 | }
|
968 678 | }
|
969 679 | impl<'source> ::pyo3::FromPyObject<'source>
|
970 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthStringOperationInput>
|
680 + | for std::boxed::Box<ConstrainedHttpPayloadBoundShapeOperationInput>
|
971 681 | {
|
972 682 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
973 - | ob.extract::<QueryParamsTargetingMapOfLengthStringOperationInput>()
|
683 + | ob.extract::<ConstrainedHttpPayloadBoundShapeOperationInput>()
|
974 684 | .map(Box::new)
|
975 685 | }
|
976 686 | }
|
977 687 |
|
978 688 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
979 - | for std::boxed::Box<QueryParamsTargetingMapOfLengthStringOperationInput>
|
689 + | for std::boxed::Box<ConstrainedHttpPayloadBoundShapeOperationInput>
|
980 690 | {
|
981 691 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
982 692 | (*self).into_py(py)
|
983 693 | }
|
984 694 | }
|
985 695 | impl crate::constrained::Constrained
|
986 - | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
696 + | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
987 697 | {
|
988 698 | type Unconstrained =
|
989 - | crate::input::query_params_targeting_map_of_length_string_operation_input_internal::Builder;
|
990 - | }
|
991 - | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
992 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
993 - | pub fn builder(
|
994 - | ) -> crate::input::query_params_targeting_map_of_length_string_operation_input::Builder {
|
995 - | crate::input::query_params_targeting_map_of_length_string_operation_input::Builder::default(
|
996 - | )
|
997 - | }
|
699 + | crate::input::constrained_http_payload_bound_shape_operation_input_internal::Builder;
|
700 + | }
|
701 + | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
702 + | /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
703 + | pub fn builder() -> crate::input::constrained_http_payload_bound_shape_operation_input::Builder
|
704 + | {
|
705 + | crate::input::constrained_http_payload_bound_shape_operation_input::Builder::default()
|
706 + | }
|
707 + | }
|
708 + |
|
709 + | #[::pyo3::pyclass]
|
710 + | /// :param recursive_list typing.List\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
711 + | /// :param nested typing.Optional\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
712 + | /// :rtype None:
|
713 + | #[allow(missing_docs)] // documentation missing in model
|
714 + | #[derive(
|
715 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
716 + | )]
|
717 + | pub struct ConstrainedRecursiveShapesOperationInput {
|
718 + | #[pyo3(get, set)]
|
719 + | /// :type typing.Optional\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
720 + | #[allow(missing_docs)] // documentation missing in model
|
721 + | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
722 + | #[pyo3(get, set)]
|
723 + | /// :type typing.List\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
724 + | #[allow(missing_docs)] // documentation missing in model
|
725 + | pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
726 + | }
|
727 + | impl ConstrainedRecursiveShapesOperationInput {
|
728 + | #[allow(missing_docs)] // documentation missing in model
|
729 + | pub fn nested(
|
730 + | &self,
|
731 + | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
732 + | self.nested.as_ref()
|
733 + | }
|
734 + | #[allow(missing_docs)] // documentation missing in model
|
735 + | pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
|
736 + | use std::ops::Deref;
|
737 + | self.recursive_list.deref()
|
738 + | }
|
739 + | }
|
740 + | #[allow(clippy::new_without_default)]
|
741 + | #[allow(clippy::too_many_arguments)]
|
742 + | #[::pyo3::pymethods]
|
743 + | impl ConstrainedRecursiveShapesOperationInput {
|
744 + | #[new]
|
745 + | pub fn new(
|
746 + | recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
747 + | nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
748 + | ) -> Self {
|
749 + | Self {
|
750 + | recursive_list,
|
751 + | nested,
|
752 + | }
|
753 + | }
|
754 + | fn __repr__(&self) -> String {
|
755 + | format!("{self:?}")
|
756 + | }
|
757 + | fn __str__(&self) -> String {
|
758 + | format!("{self:?}")
|
759 + | }
|
760 + | }
|
761 + | impl<'source> ::pyo3::FromPyObject<'source>
|
762 + | for std::boxed::Box<ConstrainedRecursiveShapesOperationInput>
|
763 + | {
|
764 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
765 + | ob.extract::<ConstrainedRecursiveShapesOperationInput>()
|
766 + | .map(Box::new)
|
767 + | }
|
768 + | }
|
769 + |
|
770 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
771 + | for std::boxed::Box<ConstrainedRecursiveShapesOperationInput>
|
772 + | {
|
773 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
774 + | (*self).into_py(py)
|
775 + | }
|
776 + | }
|
777 + | impl crate::constrained::Constrained for crate::input::ConstrainedRecursiveShapesOperationInput {
|
778 + | type Unconstrained =
|
779 + | crate::input::constrained_recursive_shapes_operation_input_internal::Builder;
|
780 + | }
|
781 + | impl ConstrainedRecursiveShapesOperationInput {
|
782 + | /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
783 + | pub fn builder() -> crate::input::constrained_recursive_shapes_operation_input::Builder {
|
784 + | crate::input::constrained_recursive_shapes_operation_input::Builder::default()
|
785 + | }
|
998 786 | }
|
999 787 |
|
1000 788 | #[::pyo3::pyclass]
|
1001 789 | /// :param length_map typing.Optional\[typing.Dict\[str, str\]\]:
|
1002 790 | /// :rtype None:
|
1003 791 | #[allow(missing_docs)] // documentation missing in model
|
1004 792 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1005 793 | pub struct QueryParamsTargetingLengthMapOperationInput {
|
1006 794 | #[pyo3(get, set)]
|
1007 795 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1060 848 | crate::input::query_params_targeting_length_map_operation_input_internal::Builder;
|
1061 849 | }
|
1062 850 | impl QueryParamsTargetingLengthMapOperationInput {
|
1063 851 | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
1064 852 | pub fn builder() -> crate::input::query_params_targeting_length_map_operation_input::Builder {
|
1065 853 | crate::input::query_params_targeting_length_map_operation_input::Builder::default()
|
1066 854 | }
|
1067 855 | }
|
1068 856 |
|
1069 857 | #[::pyo3::pyclass]
|
1070 - | /// :param recursive_list typing.List\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
1071 - | /// :param nested typing.Optional\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
858 + | /// :param map_of_length_string typing.Optional\[typing.Dict\[str, str\]\]:
|
1072 859 | /// :rtype None:
|
1073 860 | #[allow(missing_docs)] // documentation missing in model
|
1074 - | #[derive(
|
1075 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1076 - | )]
|
1077 - | pub struct ConstrainedRecursiveShapesOperationInput {
|
1078 - | #[pyo3(get, set)]
|
1079 - | /// :type typing.Optional\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
1080 - | #[allow(missing_docs)] // documentation missing in model
|
1081 - | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
861 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
862 + | pub struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
1082 863 | #[pyo3(get, set)]
|
1083 - | /// :type typing.List\[constraints_without_public_constrained_types.model.RecursiveShapesInputOutputNested1\]:
|
864 + | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1084 865 | #[allow(missing_docs)] // documentation missing in model
|
1085 - | pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
866 + | pub map_of_length_string: ::std::option::Option<
|
867 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
868 + | >,
|
1086 869 | }
|
1087 - | impl ConstrainedRecursiveShapesOperationInput {
|
870 + | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
1088 871 | #[allow(missing_docs)] // documentation missing in model
|
1089 - | pub fn nested(
|
872 + | pub fn map_of_length_string(
|
1090 873 | &self,
|
1091 - | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
1092 - | self.nested.as_ref()
|
1093 - | }
|
1094 - | #[allow(missing_docs)] // documentation missing in model
|
1095 - | pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
|
1096 - | use std::ops::Deref;
|
1097 - | self.recursive_list.deref()
|
874 + | ) -> ::std::option::Option<
|
875 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
876 + | > {
|
877 + | self.map_of_length_string.as_ref()
|
1098 878 | }
|
1099 879 | }
|
1100 880 | #[allow(clippy::new_without_default)]
|
1101 881 | #[allow(clippy::too_many_arguments)]
|
1102 882 | #[::pyo3::pymethods]
|
1103 - | impl ConstrainedRecursiveShapesOperationInput {
|
883 + | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
1104 884 | #[new]
|
1105 885 | pub fn new(
|
1106 - | recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
1107 - | nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
886 + | map_of_length_string: ::std::option::Option<
|
887 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
888 + | >,
|
1108 889 | ) -> Self {
|
1109 890 | Self {
|
1110 - | recursive_list,
|
1111 - | nested,
|
891 + | map_of_length_string,
|
1112 892 | }
|
1113 893 | }
|
1114 894 | fn __repr__(&self) -> String {
|
1115 895 | format!("{self:?}")
|
1116 896 | }
|
1117 897 | fn __str__(&self) -> String {
|
1118 898 | format!("{self:?}")
|
1119 899 | }
|
1120 900 | }
|
1121 901 | impl<'source> ::pyo3::FromPyObject<'source>
|
1122 - | for std::boxed::Box<ConstrainedRecursiveShapesOperationInput>
|
902 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthStringOperationInput>
|
1123 903 | {
|
1124 904 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1125 - | ob.extract::<ConstrainedRecursiveShapesOperationInput>()
|
905 + | ob.extract::<QueryParamsTargetingMapOfLengthStringOperationInput>()
|
1126 906 | .map(Box::new)
|
1127 907 | }
|
1128 908 | }
|
1129 909 |
|
1130 910 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1131 - | for std::boxed::Box<ConstrainedRecursiveShapesOperationInput>
|
911 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthStringOperationInput>
|
1132 912 | {
|
1133 913 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1134 914 | (*self).into_py(py)
|
1135 915 | }
|
1136 916 | }
|
1137 - | impl crate::constrained::Constrained for crate::input::ConstrainedRecursiveShapesOperationInput {
|
917 + | impl crate::constrained::Constrained
|
918 + | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
919 + | {
|
1138 920 | type Unconstrained =
|
1139 - | crate::input::constrained_recursive_shapes_operation_input_internal::Builder;
|
921 + | crate::input::query_params_targeting_map_of_length_string_operation_input_internal::Builder;
|
1140 922 | }
|
1141 - | impl ConstrainedRecursiveShapesOperationInput {
|
1142 - | /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
1143 - | pub fn builder() -> crate::input::constrained_recursive_shapes_operation_input::Builder {
|
1144 - | crate::input::constrained_recursive_shapes_operation_input::Builder::default()
|
923 + | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
924 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
925 + | pub fn builder(
|
926 + | ) -> crate::input::query_params_targeting_map_of_length_string_operation_input::Builder {
|
927 + | crate::input::query_params_targeting_map_of_length_string_operation_input::Builder::default(
|
928 + | )
|
1145 929 | }
|
1146 930 | }
|
1147 931 |
|
1148 932 | #[::pyo3::pyclass]
|
1149 - | /// :param http_payload_bound_constrained_shape constraints_without_public_constrained_types.model.ConA:
|
933 + | /// :param map_of_list_of_length_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1150 934 | /// :rtype None:
|
1151 935 | #[allow(missing_docs)] // documentation missing in model
|
1152 936 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1153 - | pub struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
937 + | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
1154 938 | #[pyo3(get, set)]
|
1155 - | /// :type constraints_without_public_constrained_types.model.ConA:
|
939 + | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1156 940 | #[allow(missing_docs)] // documentation missing in model
|
1157 - | pub http_payload_bound_constrained_shape: crate::model::ConA,
|
941 + | pub map_of_list_of_length_string: ::std::option::Option<
|
942 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
943 + | >,
|
1158 944 | }
|
1159 - | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
945 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
1160 946 | #[allow(missing_docs)] // documentation missing in model
|
1161 - | pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
|
1162 - | &self.http_payload_bound_constrained_shape
|
947 + | pub fn map_of_list_of_length_string(
|
948 + | &self,
|
949 + | ) -> ::std::option::Option<
|
950 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
951 + | > {
|
952 + | self.map_of_list_of_length_string.as_ref()
|
1163 953 | }
|
1164 954 | }
|
1165 955 | #[allow(clippy::new_without_default)]
|
1166 956 | #[allow(clippy::too_many_arguments)]
|
1167 957 | #[::pyo3::pymethods]
|
1168 - | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
958 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
1169 959 | #[new]
|
1170 - | pub fn new(http_payload_bound_constrained_shape: crate::model::ConA) -> Self {
|
960 + | pub fn new(
|
961 + | map_of_list_of_length_string: ::std::option::Option<
|
962 + | ::std::collections::HashMap<
|
963 + | ::std::string::String,
|
964 + | ::std::vec::Vec<::std::string::String>,
|
965 + | >,
|
966 + | >,
|
967 + | ) -> Self {
|
1171 968 | Self {
|
1172 - | http_payload_bound_constrained_shape,
|
969 + | map_of_list_of_length_string,
|
1173 970 | }
|
1174 971 | }
|
1175 972 | fn __repr__(&self) -> String {
|
1176 973 | format!("{self:?}")
|
1177 974 | }
|
1178 975 | fn __str__(&self) -> String {
|
1179 976 | format!("{self:?}")
|
1180 977 | }
|
1181 978 | }
|
1182 979 | impl<'source> ::pyo3::FromPyObject<'source>
|
1183 - | for std::boxed::Box<ConstrainedHttpPayloadBoundShapeOperationInput>
|
980 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthStringOperationInput>
|
1184 981 | {
|
1185 982 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1186 - | ob.extract::<ConstrainedHttpPayloadBoundShapeOperationInput>()
|
983 + | ob.extract::<QueryParamsTargetingMapOfListOfLengthStringOperationInput>()
|
1187 984 | .map(Box::new)
|
1188 985 | }
|
1189 986 | }
|
1190 987 |
|
1191 988 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1192 - | for std::boxed::Box<ConstrainedHttpPayloadBoundShapeOperationInput>
|
989 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthStringOperationInput>
|
1193 990 | {
|
1194 991 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1195 992 | (*self).into_py(py)
|
1196 993 | }
|
1197 994 | }
|
1198 995 | impl crate::constrained::Constrained
|
1199 - | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
996 + | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
1200 997 | {
|
1201 - | type Unconstrained =
|
1202 - | crate::input::constrained_http_payload_bound_shape_operation_input_internal::Builder;
|
998 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_string_operation_input_internal::Builder;
|
1203 999 | }
|
1204 - | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
1205 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
1206 - | pub fn builder() -> crate::input::constrained_http_payload_bound_shape_operation_input::Builder
|
1000 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
1001 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
1002 + | pub fn builder(
|
1003 + | ) -> crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder
|
1207 1004 | {
|
1208 - | crate::input::constrained_http_payload_bound_shape_operation_input::Builder::default()
|
1005 + | crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder::default()
|
1209 1006 | }
|
1210 1007 | }
|
1211 1008 |
|
1212 1009 | #[::pyo3::pyclass]
|
1213 - | /// :param length_string_label str:
|
1214 - | /// :param range_integer_label int:
|
1215 - | /// :param range_short_label int:
|
1216 - | /// :param range_long_label int:
|
1217 - | /// :param range_byte_label int:
|
1218 - | /// :param enum_string_label constraints_without_public_constrained_types.model.EnumString:
|
1219 - | /// :param length_string_header_map typing.Dict\[str, str\]:
|
1220 - | /// :param range_integer_header int:
|
1221 - | /// :param range_short_header int:
|
1222 - | /// :param range_long_header int:
|
1223 - | /// :param range_byte_header int:
|
1224 - | /// :param range_byte_query int:
|
1225 - | /// :param range_short_query int:
|
1226 - | /// :param range_integer_query int:
|
1227 - | /// :param range_long_query int:
|
1228 - | /// :param length_string_header typing.Optional\[str\]:
|
1229 - | /// :param length_string_set_header typing.Optional\[typing.Set\[str\]\]:
|
1230 - | /// :param list_length_string_header typing.Optional\[typing.List\[str\]\]:
|
1231 - | /// :param length_list_pattern_string_header typing.Optional\[typing.List\[str\]\]:
|
1232 - | /// :param length_set_pattern_string_header typing.Optional\[typing.Set\[str\]\]:
|
1233 - | /// :param range_byte_set_header typing.Optional\[typing.List\[int\]\]:
|
1234 - | /// :param range_short_set_header typing.Optional\[typing.List\[int\]\]:
|
1235 - | /// :param range_integer_set_header typing.Optional\[typing.List\[int\]\]:
|
1236 - | /// :param range_long_set_header typing.Optional\[typing.List\[int\]\]:
|
1237 - | /// :param range_byte_list_header typing.Optional\[typing.List\[int\]\]:
|
1238 - | /// :param range_short_list_header typing.Optional\[typing.List\[int\]\]:
|
1239 - | /// :param range_integer_list_header typing.Optional\[typing.List\[int\]\]:
|
1240 - | /// :param range_long_list_header typing.Optional\[typing.List\[int\]\]:
|
1241 - | /// :param length_string_query typing.Optional\[str\]:
|
1242 - | /// :param enum_string_query typing.Optional\[constraints_without_public_constrained_types.model.EnumString\]:
|
1243 - | /// :param length_string_list_query typing.Optional\[typing.List\[str\]\]:
|
1244 - | /// :param length_list_pattern_string_query typing.Optional\[typing.List\[str\]\]:
|
1245 - | /// :param length_string_set_query typing.Optional\[typing.Set\[str\]\]:
|
1246 - | /// :param range_byte_list_query typing.Optional\[typing.List\[int\]\]:
|
1247 - | /// :param range_short_list_query typing.Optional\[typing.List\[int\]\]:
|
1248 - | /// :param range_integer_list_query typing.Optional\[typing.List\[int\]\]:
|
1249 - | /// :param range_long_list_query typing.Optional\[typing.List\[int\]\]:
|
1250 - | /// :param range_byte_set_query typing.Optional\[typing.List\[int\]\]:
|
1251 - | /// :param range_short_set_query typing.Optional\[typing.List\[int\]\]:
|
1252 - | /// :param range_integer_set_query typing.Optional\[typing.List\[int\]\]:
|
1253 - | /// :param range_long_set_query typing.Optional\[typing.List\[int\]\]:
|
1254 - | /// :param enum_string_list_query typing.Optional\[typing.List\[constraints_without_public_constrained_types.model.EnumString\]\]:
|
1010 + | /// :param map_of_set_of_length_string typing.Optional\[typing.Dict\[str, typing.Set\[str\]\]\]:
|
1255 1011 | /// :rtype None:
|
1256 1012 | #[allow(missing_docs)] // documentation missing in model
|
1257 1013 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1258 - | pub struct ConstrainedHttpBoundShapesOperationInput {
|
1259 - | #[pyo3(get, set)]
|
1260 - | /// :type str:
|
1261 - | #[allow(missing_docs)] // documentation missing in model
|
1262 - | pub length_string_label: ::std::string::String,
|
1014 + | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
1263 1015 | #[pyo3(get, set)]
|
1264 - | /// :type int:
|
1016 + | /// :type typing.Optional\[typing.Dict\[str, typing.Set\[str\]\]\]:
|
1265 1017 | #[allow(missing_docs)] // documentation missing in model
|
1266 - | pub range_integer_label: i32,
|
1267 - | #[pyo3(get, set)]
|
1268 - | /// :type int:
|
1269 - | #[allow(missing_docs)] // documentation missing in model
|
1270 - | pub range_short_label: i16,
|
1271 - | #[pyo3(get, set)]
|
1272 - | /// :type int:
|
1273 - | #[allow(missing_docs)] // documentation missing in model
|
1274 - | pub range_long_label: i64,
|
1275 - | #[pyo3(get, set)]
|
1276 - | /// :type int:
|
1277 - | #[allow(missing_docs)] // documentation missing in model
|
1278 - | pub range_byte_label: i8,
|
1279 - | #[pyo3(get, set)]
|
1280 - | /// :type constraints_without_public_constrained_types.model.EnumString:
|
1281 - | #[allow(missing_docs)] // documentation missing in model
|
1282 - | pub enum_string_label: crate::model::EnumString,
|
1283 - | #[pyo3(get, set)]
|
1284 - | /// :type typing.Dict\[str, str\]:
|
1285 - | #[allow(missing_docs)] // documentation missing in model
|
1286 - | pub length_string_header_map:
|
1287 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1288 - | #[pyo3(get, set)]
|
1289 - | /// :type typing.Optional\[str\]:
|
1290 - | #[allow(missing_docs)] // documentation missing in model
|
1291 - | pub length_string_header: ::std::option::Option<::std::string::String>,
|
1292 - | #[pyo3(get, set)]
|
1293 - | /// :type int:
|
1294 - | #[allow(missing_docs)] // documentation missing in model
|
1295 - | pub range_integer_header: i32,
|
1296 - | #[pyo3(get, set)]
|
1297 - | /// :type int:
|
1298 - | #[allow(missing_docs)] // documentation missing in model
|
1299 - | pub range_short_header: i16,
|
1300 - | #[pyo3(get, set)]
|
1301 - | /// :type int:
|
1302 - | #[allow(missing_docs)] // documentation missing in model
|
1303 - | pub range_long_header: i64,
|
1304 - | #[pyo3(get, set)]
|
1305 - | /// :type int:
|
1306 - | #[allow(missing_docs)] // documentation missing in model
|
1307 - | pub range_byte_header: i8,
|
1308 - | #[pyo3(get, set)]
|
1309 - | /// :type typing.Optional\[typing.Set\[str\]\]:
|
1310 - | #[allow(missing_docs)] // documentation missing in model
|
1311 - | pub length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1312 - | #[pyo3(get, set)]
|
1313 - | /// :type typing.Optional\[typing.List\[str\]\]:
|
1314 - | #[allow(missing_docs)] // documentation missing in model
|
1315 - | pub list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1316 - | #[pyo3(get, set)]
|
1317 - | /// :type typing.Optional\[typing.List\[str\]\]:
|
1318 - | #[allow(missing_docs)] // documentation missing in model
|
1319 - | pub length_list_pattern_string_header:
|
1320 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1321 - | #[pyo3(get, set)]
|
1322 - | /// :type typing.Optional\[typing.Set\[str\]\]:
|
1323 - | #[allow(missing_docs)] // documentation missing in model
|
1324 - | pub length_set_pattern_string_header:
|
1325 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1326 - | #[pyo3(get, set)]
|
1327 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1328 - | #[allow(missing_docs)] // documentation missing in model
|
1329 - | pub range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1330 - | #[pyo3(get, set)]
|
1331 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1332 - | #[allow(missing_docs)] // documentation missing in model
|
1333 - | pub range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1334 - | #[pyo3(get, set)]
|
1335 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1336 - | #[allow(missing_docs)] // documentation missing in model
|
1337 - | pub range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1338 - | #[pyo3(get, set)]
|
1339 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1340 - | #[allow(missing_docs)] // documentation missing in model
|
1341 - | pub range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1342 - | #[pyo3(get, set)]
|
1343 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1344 - | #[allow(missing_docs)] // documentation missing in model
|
1345 - | pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1346 - | #[pyo3(get, set)]
|
1347 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1348 - | #[allow(missing_docs)] // documentation missing in model
|
1349 - | pub range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1350 - | #[pyo3(get, set)]
|
1351 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1352 - | #[allow(missing_docs)] // documentation missing in model
|
1353 - | pub range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1354 - | #[pyo3(get, set)]
|
1355 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1356 - | #[allow(missing_docs)] // documentation missing in model
|
1357 - | pub range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1358 - | #[pyo3(get, set)]
|
1359 - | /// :type typing.Optional\[str\]:
|
1360 - | #[allow(missing_docs)] // documentation missing in model
|
1361 - | pub length_string_query: ::std::option::Option<::std::string::String>,
|
1362 - | #[pyo3(get, set)]
|
1363 - | /// :type int:
|
1364 - | #[allow(missing_docs)] // documentation missing in model
|
1365 - | pub range_byte_query: i8,
|
1366 - | #[pyo3(get, set)]
|
1367 - | /// :type int:
|
1368 - | #[allow(missing_docs)] // documentation missing in model
|
1369 - | pub range_short_query: i16,
|
1370 - | #[pyo3(get, set)]
|
1371 - | /// :type int:
|
1372 - | #[allow(missing_docs)] // documentation missing in model
|
1373 - | pub range_integer_query: i32,
|
1374 - | #[pyo3(get, set)]
|
1375 - | /// :type int:
|
1376 - | #[allow(missing_docs)] // documentation missing in model
|
1377 - | pub range_long_query: i64,
|
1378 - | #[pyo3(get, set)]
|
1379 - | /// :type typing.Optional\[constraints_without_public_constrained_types.model.EnumString\]:
|
1380 - | #[allow(missing_docs)] // documentation missing in model
|
1381 - | pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
1382 - | #[pyo3(get, set)]
|
1383 - | /// :type typing.Optional\[typing.List\[str\]\]:
|
1384 - | #[allow(missing_docs)] // documentation missing in model
|
1385 - | pub length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1386 - | #[pyo3(get, set)]
|
1387 - | /// :type typing.Optional\[typing.List\[str\]\]:
|
1388 - | #[allow(missing_docs)] // documentation missing in model
|
1389 - | pub length_list_pattern_string_query:
|
1390 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1391 - | #[pyo3(get, set)]
|
1392 - | /// :type typing.Optional\[typing.Set\[str\]\]:
|
1393 - | #[allow(missing_docs)] // documentation missing in model
|
1394 - | pub length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1395 - | #[pyo3(get, set)]
|
1396 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1397 - | #[allow(missing_docs)] // documentation missing in model
|
1398 - | pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1399 - | #[pyo3(get, set)]
|
1400 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1401 - | #[allow(missing_docs)] // documentation missing in model
|
1402 - | pub range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1403 - | #[pyo3(get, set)]
|
1404 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1405 - | #[allow(missing_docs)] // documentation missing in model
|
1406 - | pub range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1407 - | #[pyo3(get, set)]
|
1408 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1409 - | #[allow(missing_docs)] // documentation missing in model
|
1410 - | pub range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1411 - | #[pyo3(get, set)]
|
1412 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1413 - | #[allow(missing_docs)] // documentation missing in model
|
1414 - | pub range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1415 - | #[pyo3(get, set)]
|
1416 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1417 - | #[allow(missing_docs)] // documentation missing in model
|
1418 - | pub range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1419 - | #[pyo3(get, set)]
|
1420 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1421 - | #[allow(missing_docs)] // documentation missing in model
|
1422 - | pub range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1423 - | #[pyo3(get, set)]
|
1424 - | /// :type typing.Optional\[typing.List\[int\]\]:
|
1425 - | #[allow(missing_docs)] // documentation missing in model
|
1426 - | pub range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1427 - | #[pyo3(get, set)]
|
1428 - | /// :type typing.Optional\[typing.List\[constraints_without_public_constrained_types.model.EnumString\]\]:
|
1429 - | #[allow(missing_docs)] // documentation missing in model
|
1430 - | pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
1018 + | pub map_of_set_of_length_string: ::std::option::Option<
|
1019 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1020 + | >,
|
1431 1021 | }
|
1432 - | impl ConstrainedHttpBoundShapesOperationInput {
|
1022 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
1433 1023 | #[allow(missing_docs)] // documentation missing in model
|
1434 - | pub fn length_string_label(&self) -> &str {
|
1435 - | use std::ops::Deref;
|
1436 - | self.length_string_label.deref()
|
1024 + | pub fn map_of_set_of_length_string(
|
1025 + | &self,
|
1026 + | ) -> ::std::option::Option<
|
1027 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1028 + | > {
|
1029 + | self.map_of_set_of_length_string.as_ref()
|
1437 1030 | }
|
1438 - | #[allow(missing_docs)] // documentation missing in model
|
1439 - | pub fn range_integer_label(&self) -> i32 {
|
1440 - | self.range_integer_label
|
1031 + | }
|
1032 + | #[allow(clippy::new_without_default)]
|
1033 + | #[allow(clippy::too_many_arguments)]
|
1034 + | #[::pyo3::pymethods]
|
1035 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
1036 + | #[new]
|
1037 + | pub fn new(
|
1038 + | map_of_set_of_length_string: ::std::option::Option<
|
1039 + | ::std::collections::HashMap<
|
1040 + | ::std::string::String,
|
1041 + | ::std::vec::Vec<::std::string::String>,
|
1042 + | >,
|
1043 + | >,
|
1044 + | ) -> Self {
|
1045 + | Self {
|
1046 + | map_of_set_of_length_string,
|
1047 + | }
|
1441 1048 | }
|
1442 - | #[allow(missing_docs)] // documentation missing in model
|
1443 - | pub fn range_short_label(&self) -> i16 {
|
1444 - | self.range_short_label
|
1049 + | fn __repr__(&self) -> String {
|
1050 + | format!("{self:?}")
|
1445 1051 | }
|
1446 - | #[allow(missing_docs)] // documentation missing in model
|
1447 - | pub fn range_long_label(&self) -> i64 {
|
1448 - | self.range_long_label
|
1052 + | fn __str__(&self) -> String {
|
1053 + | format!("{self:?}")
|
1449 1054 | }
|
1450 - | #[allow(missing_docs)] // documentation missing in model
|
1451 - | pub fn range_byte_label(&self) -> i8 {
|
1452 - | self.range_byte_label
|
1055 + | }
|
1056 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1057 + | for std::boxed::Box<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>
|
1058 + | {
|
1059 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1060 + | ob.extract::<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>()
|
1061 + | .map(Box::new)
|
1453 1062 | }
|
1454 - | #[allow(missing_docs)] // documentation missing in model
|
1455 - | pub fn enum_string_label(&self) -> &crate::model::EnumString {
|
1456 - | &self.enum_string_label
|
1063 + | }
|
1064 + |
|
1065 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1066 + | for std::boxed::Box<QueryParamsTargetingMapOfSetOfLengthStringOperationInput>
|
1067 + | {
|
1068 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1069 + | (*self).into_py(py)
|
1457 1070 | }
|
1458 - | #[allow(missing_docs)] // documentation missing in model
|
1459 - | pub fn length_string_header_map(
|
1460 - | &self,
|
1461 - | ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
1462 - | &self.length_string_header_map
|
1071 + | }
|
1072 + | impl crate::constrained::Constrained
|
1073 + | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
1074 + | {
|
1075 + | type Unconstrained = crate::input::query_params_targeting_map_of_set_of_length_string_operation_input_internal::Builder;
|
1076 + | }
|
1077 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
1078 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
1079 + | pub fn builder(
|
1080 + | ) -> crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder
|
1081 + | {
|
1082 + | crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder::default()
|
1463 1083 | }
|
1084 + | }
|
1085 + |
|
1086 + | #[::pyo3::pyclass]
|
1087 + | /// :param map_of_length_list_of_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1088 + | /// :rtype None:
|
1089 + | #[allow(missing_docs)] // documentation missing in model
|
1090 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1091 + | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
1092 + | #[pyo3(get, set)]
|
1093 + | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1464 1094 | #[allow(missing_docs)] // documentation missing in model
|
1465 - | pub fn length_string_header(&self) -> ::std::option::Option<&str> {
|
1466 - | self.length_string_header.as_deref()
|
1467 - | }
|
1095 + | pub map_of_length_list_of_pattern_string: ::std::option::Option<
|
1096 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1097 + | >,
|
1098 + | }
|
1099 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
1468 1100 | #[allow(missing_docs)] // documentation missing in model
|
1469 - | pub fn range_integer_header(&self) -> i32 {
|
1470 - | self.range_integer_header
|
1101 + | pub fn map_of_length_list_of_pattern_string(
|
1102 + | &self,
|
1103 + | ) -> ::std::option::Option<
|
1104 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1105 + | > {
|
1106 + | self.map_of_length_list_of_pattern_string.as_ref()
|
1471 1107 | }
|
1472 - | #[allow(missing_docs)] // documentation missing in model
|
1473 - | pub fn range_short_header(&self) -> i16 {
|
1474 - | self.range_short_header
|
1108 + | }
|
1109 + | #[allow(clippy::new_without_default)]
|
1110 + | #[allow(clippy::too_many_arguments)]
|
1111 + | #[::pyo3::pymethods]
|
1112 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
1113 + | #[new]
|
1114 + | pub fn new(
|
1115 + | map_of_length_list_of_pattern_string: ::std::option::Option<
|
1116 + | ::std::collections::HashMap<
|
1117 + | ::std::string::String,
|
1118 + | ::std::vec::Vec<::std::string::String>,
|
1119 + | >,
|
1120 + | >,
|
1121 + | ) -> Self {
|
1122 + | Self {
|
1123 + | map_of_length_list_of_pattern_string,
|
1124 + | }
|
1475 1125 | }
|
1476 - | #[allow(missing_docs)] // documentation missing in model
|
1477 - | pub fn range_long_header(&self) -> i64 {
|
1478 - | self.range_long_header
|
1126 + | fn __repr__(&self) -> String {
|
1127 + | format!("{self:?}")
|
1479 1128 | }
|
1480 - | #[allow(missing_docs)] // documentation missing in model
|
1481 - | pub fn range_byte_header(&self) -> i8 {
|
1482 - | self.range_byte_header
|
1129 + | fn __str__(&self) -> String {
|
1130 + | format!("{self:?}")
|
1483 1131 | }
|
1484 - | #[allow(missing_docs)] // documentation missing in model
|
1485 - | pub fn length_string_set_header(
|
1486 - | &self,
|
1487 - | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1488 - | self.length_string_set_header.as_ref()
|
1132 + | }
|
1133 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1134 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>
|
1135 + | {
|
1136 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1137 + | ob.extract::<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>()
|
1138 + | .map(Box::new)
|
1489 1139 | }
|
1490 - | #[allow(missing_docs)] // documentation missing in model
|
1491 - | pub fn list_length_string_header(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1492 - | self.list_length_string_header.as_deref()
|
1140 + | }
|
1141 + |
|
1142 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1143 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput>
|
1144 + | {
|
1145 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1146 + | (*self).into_py(py)
|
1493 1147 | }
|
1494 - | #[allow(missing_docs)] // documentation missing in model
|
1495 - | pub fn length_list_pattern_string_header(
|
1496 - | &self,
|
1497 - | ) -> ::std::option::Option<&[::std::string::String]> {
|
1498 - | self.length_list_pattern_string_header.as_deref()
|
1148 + | }
|
1149 + | impl crate::constrained::Constrained
|
1150 + | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
1151 + | {
|
1152 + | type Unconstrained = crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal::Builder;
|
1153 + | }
|
1154 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
1155 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
1156 + | pub fn builder() -> crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder{
|
1157 + | crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder::default()
|
1499 1158 | }
|
1159 + | }
|
1160 + |
|
1161 + | #[::pyo3::pyclass]
|
1162 + | /// :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\]\]\]:
|
1163 + | /// :rtype None:
|
1164 + | #[allow(missing_docs)] // documentation missing in model
|
1165 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1166 + | pub struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
1167 + | #[pyo3(get, set)]
|
1168 + | /// :type typing.Optional\[typing.Dict\[constraints_without_public_constrained_types.model.EnumString, typing.List\[constraints_without_public_constrained_types.model.EnumString\]\]\]:
|
1500 1169 | #[allow(missing_docs)] // documentation missing in model
|
1501 - | pub fn length_set_pattern_string_header(
|
1502 - | &self,
|
1503 - | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1504 - | self.length_set_pattern_string_header.as_ref()
|
1505 - | }
|
1170 + | pub map_of_list_of_enum_string: ::std::option::Option<
|
1171 + | ::std::collections::HashMap<
|
1172 + | crate::model::EnumString,
|
1173 + | ::std::vec::Vec<crate::model::EnumString>,
|
1174 + | >,
|
1175 + | >,
|
1176 + | }
|
1177 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
1506 1178 | #[allow(missing_docs)] // documentation missing in model
|
1507 - | pub fn range_byte_set_header(&self) -> ::std::option::Option<&[i8]> {
|
1508 - | self.range_byte_set_header.as_deref()
|
1179 + | pub fn map_of_list_of_enum_string(
|
1180 + | &self,
|
1181 + | ) -> ::std::option::Option<
|
1182 + | &::std::collections::HashMap<
|
1183 + | crate::model::EnumString,
|
1184 + | ::std::vec::Vec<crate::model::EnumString>,
|
1185 + | >,
|
1186 + | > {
|
1187 + | self.map_of_list_of_enum_string.as_ref()
|
1509 1188 | }
|
1510 - | #[allow(missing_docs)] // documentation missing in model
|
1511 - | pub fn range_short_set_header(&self) -> ::std::option::Option<&[i16]> {
|
1512 - | self.range_short_set_header.as_deref()
|
1189 + | }
|
1190 + | #[allow(clippy::new_without_default)]
|
1191 + | #[allow(clippy::too_many_arguments)]
|
1192 + | #[::pyo3::pymethods]
|
1193 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
1194 + | #[new]
|
1195 + | pub fn new(
|
1196 + | map_of_list_of_enum_string: ::std::option::Option<
|
1197 + | ::std::collections::HashMap<
|
1198 + | crate::model::EnumString,
|
1199 + | ::std::vec::Vec<crate::model::EnumString>,
|
1200 + | >,
|
1201 + | >,
|
1202 + | ) -> Self {
|
1203 + | Self {
|
1204 + | map_of_list_of_enum_string,
|
1205 + | }
|
1513 1206 | }
|
1514 - | #[allow(missing_docs)] // documentation missing in model
|
1515 - | pub fn range_integer_set_header(&self) -> ::std::option::Option<&[i32]> {
|
1516 - | self.range_integer_set_header.as_deref()
|
1207 + | fn __repr__(&self) -> String {
|
1208 + | format!("{self:?}")
|
1517 1209 | }
|
1518 - | #[allow(missing_docs)] // documentation missing in model
|
1519 - | pub fn range_long_set_header(&self) -> ::std::option::Option<&[i64]> {
|
1520 - | self.range_long_set_header.as_deref()
|
1210 + | fn __str__(&self) -> String {
|
1211 + | format!("{self:?}")
|
1521 1212 | }
|
1522 - | #[allow(missing_docs)] // documentation missing in model
|
1523 - | pub fn range_byte_list_header(&self) -> ::std::option::Option<&[i8]> {
|
1524 - | self.range_byte_list_header.as_deref()
|
1213 + | }
|
1214 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1215 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfEnumStringOperationInput>
|
1216 + | {
|
1217 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1218 + | ob.extract::<QueryParamsTargetingMapOfListOfEnumStringOperationInput>()
|
1219 + | .map(Box::new)
|
1525 1220 | }
|
1526 - | #[allow(missing_docs)] // documentation missing in model
|
1527 - | pub fn range_short_list_header(&self) -> ::std::option::Option<&[i16]> {
|
1528 - | self.range_short_list_header.as_deref()
|
1221 + | }
|
1222 + |
|
1223 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1224 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfEnumStringOperationInput>
|
1225 + | {
|
1226 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1227 + | (*self).into_py(py)
|
1529 1228 | }
|
1530 - | #[allow(missing_docs)] // documentation missing in model
|
1531 - | pub fn range_integer_list_header(&self) -> ::std::option::Option<&[i32]> {
|
1532 - | self.range_integer_list_header.as_deref()
|
1229 + | }
|
1230 + | impl crate::constrained::Constrained
|
1231 + | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
1232 + | {
|
1233 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input_internal::Builder;
|
1234 + | }
|
1235 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
1236 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
1237 + | pub fn builder(
|
1238 + | ) -> crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder
|
1239 + | {
|
1240 + | crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder::default()
|
1533 1241 | }
|
1242 + | }
|
1243 + |
|
1244 + | #[::pyo3::pyclass]
|
1245 + | /// :param map_of_pattern_string typing.Optional\[typing.Dict\[str, str\]\]:
|
1246 + | /// :rtype None:
|
1247 + | #[allow(missing_docs)] // documentation missing in model
|
1248 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1249 + | pub struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
1250 + | #[pyo3(get, set)]
|
1251 + | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1534 1252 | #[allow(missing_docs)] // documentation missing in model
|
1535 - | pub fn range_long_list_header(&self) -> ::std::option::Option<&[i64]> {
|
1536 - | self.range_long_list_header.as_deref()
|
1537 - | }
|
1253 + | pub map_of_pattern_string: ::std::option::Option<
|
1254 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1255 + | >,
|
1256 + | }
|
1257 + | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
1538 1258 | #[allow(missing_docs)] // documentation missing in model
|
1539 - | pub fn length_string_query(&self) -> ::std::option::Option<&str> {
|
1540 - | self.length_string_query.as_deref()
|
1259 + | pub fn map_of_pattern_string(
|
1260 + | &self,
|
1261 + | ) -> ::std::option::Option<
|
1262 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1263 + | > {
|
1264 + | self.map_of_pattern_string.as_ref()
|
1541 1265 | }
|
1542 - | #[allow(missing_docs)] // documentation missing in model
|
1543 - | pub fn range_byte_query(&self) -> i8 {
|
1544 - | self.range_byte_query
|
1266 + | }
|
1267 + | #[allow(clippy::new_without_default)]
|
1268 + | #[allow(clippy::too_many_arguments)]
|
1269 + | #[::pyo3::pymethods]
|
1270 + | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
1271 + | #[new]
|
1272 + | pub fn new(
|
1273 + | map_of_pattern_string: ::std::option::Option<
|
1274 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1275 + | >,
|
1276 + | ) -> Self {
|
1277 + | Self {
|
1278 + | map_of_pattern_string,
|
1279 + | }
|
1545 1280 | }
|
1546 - | #[allow(missing_docs)] // documentation missing in model
|
1547 - | pub fn range_short_query(&self) -> i16 {
|
1548 - | self.range_short_query
|
1281 + | fn __repr__(&self) -> String {
|
1282 + | format!("{self:?}")
|
1549 1283 | }
|
1550 - | #[allow(missing_docs)] // documentation missing in model
|
1551 - | pub fn range_integer_query(&self) -> i32 {
|
1552 - | self.range_integer_query
|
1284 + | fn __str__(&self) -> String {
|
1285 + | format!("{self:?}")
|
1553 1286 | }
|
1554 - | #[allow(missing_docs)] // documentation missing in model
|
1555 - | pub fn range_long_query(&self) -> i64 {
|
1556 - | self.range_long_query
|
1287 + | }
|
1288 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1289 + | for std::boxed::Box<QueryParamsTargetingMapOfPatternStringOperationInput>
|
1290 + | {
|
1291 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1292 + | ob.extract::<QueryParamsTargetingMapOfPatternStringOperationInput>()
|
1293 + | .map(Box::new)
|
1557 1294 | }
|
1558 - | #[allow(missing_docs)] // documentation missing in model
|
1559 - | pub fn enum_string_query(&self) -> ::std::option::Option<&crate::model::EnumString> {
|
1560 - | self.enum_string_query.as_ref()
|
1295 + | }
|
1296 + |
|
1297 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1298 + | for std::boxed::Box<QueryParamsTargetingMapOfPatternStringOperationInput>
|
1299 + | {
|
1300 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1301 + | (*self).into_py(py)
|
1561 1302 | }
|
1562 - | #[allow(missing_docs)] // documentation missing in model
|
1563 - | pub fn length_string_list_query(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1564 - | self.length_string_list_query.as_deref()
|
1303 + | }
|
1304 + | impl crate::constrained::Constrained
|
1305 + | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
1306 + | {
|
1307 + | type Unconstrained = crate::input::query_params_targeting_map_of_pattern_string_operation_input_internal::Builder;
|
1308 + | }
|
1309 + | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
1310 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
1311 + | pub fn builder(
|
1312 + | ) -> crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder {
|
1313 + | crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder::default(
|
1314 + | )
|
1565 1315 | }
|
1316 + | }
|
1317 + |
|
1318 + | #[::pyo3::pyclass]
|
1319 + | /// :param map_of_list_of_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1320 + | /// :rtype None:
|
1321 + | #[allow(missing_docs)] // documentation missing in model
|
1322 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1323 + | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1324 + | #[pyo3(get, set)]
|
1325 + | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1566 1326 | #[allow(missing_docs)] // documentation missing in model
|
1567 - | pub fn length_list_pattern_string_query(
|
1568 - | &self,
|
1569 - | ) -> ::std::option::Option<&[::std::string::String]> {
|
1570 - | self.length_list_pattern_string_query.as_deref()
|
1571 - | }
|
1327 + | pub map_of_list_of_pattern_string: ::std::option::Option<
|
1328 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1329 + | >,
|
1330 + | }
|
1331 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1572 1332 | #[allow(missing_docs)] // documentation missing in model
|
1573 - | pub fn length_string_set_query(
|
1333 + | pub fn map_of_list_of_pattern_string(
|
1574 1334 | &self,
|
1575 - | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1576 - | self.length_string_set_query.as_ref()
|
1577 - | }
|
1578 - | #[allow(missing_docs)] // documentation missing in model
|
1579 - | pub fn range_byte_list_query(&self) -> ::std::option::Option<&[i8]> {
|
1580 - | self.range_byte_list_query.as_deref()
|
1581 - | }
|
1582 - | #[allow(missing_docs)] // documentation missing in model
|
1583 - | pub fn range_short_list_query(&self) -> ::std::option::Option<&[i16]> {
|
1584 - | self.range_short_list_query.as_deref()
|
1585 - | }
|
1586 - | #[allow(missing_docs)] // documentation missing in model
|
1587 - | pub fn range_integer_list_query(&self) -> ::std::option::Option<&[i32]> {
|
1588 - | self.range_integer_list_query.as_deref()
|
1589 - | }
|
1590 - | #[allow(missing_docs)] // documentation missing in model
|
1591 - | pub fn range_long_list_query(&self) -> ::std::option::Option<&[i64]> {
|
1592 - | self.range_long_list_query.as_deref()
|
1593 - | }
|
1594 - | #[allow(missing_docs)] // documentation missing in model
|
1595 - | pub fn range_byte_set_query(&self) -> ::std::option::Option<&[i8]> {
|
1596 - | self.range_byte_set_query.as_deref()
|
1597 - | }
|
1598 - | #[allow(missing_docs)] // documentation missing in model
|
1599 - | pub fn range_short_set_query(&self) -> ::std::option::Option<&[i16]> {
|
1600 - | self.range_short_set_query.as_deref()
|
1601 - | }
|
1602 - | #[allow(missing_docs)] // documentation missing in model
|
1603 - | pub fn range_integer_set_query(&self) -> ::std::option::Option<&[i32]> {
|
1604 - | self.range_integer_set_query.as_deref()
|
1605 - | }
|
1606 - | #[allow(missing_docs)] // documentation missing in model
|
1607 - | pub fn range_long_set_query(&self) -> ::std::option::Option<&[i64]> {
|
1608 - | self.range_long_set_query.as_deref()
|
1609 - | }
|
1610 - | #[allow(missing_docs)] // documentation missing in model
|
1611 - | pub fn enum_string_list_query(&self) -> ::std::option::Option<&[crate::model::EnumString]> {
|
1612 - | self.enum_string_list_query.as_deref()
|
1335 + | ) -> ::std::option::Option<
|
1336 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1337 + | > {
|
1338 + | self.map_of_list_of_pattern_string.as_ref()
|
1613 1339 | }
|
1614 1340 | }
|
1615 1341 | #[allow(clippy::new_without_default)]
|
1616 1342 | #[allow(clippy::too_many_arguments)]
|
1617 1343 | #[::pyo3::pymethods]
|
1618 - | impl ConstrainedHttpBoundShapesOperationInput {
|
1344 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1619 1345 | #[new]
|
1620 1346 | pub fn new(
|
1621 - | length_string_label: ::std::string::String,
|
1622 - | range_integer_label: i32,
|
1623 - | range_short_label: i16,
|
1624 - | range_long_label: i64,
|
1625 - | range_byte_label: i8,
|
1626 - | enum_string_label: crate::model::EnumString,
|
1627 - | length_string_header_map: ::std::collections::HashMap<
|
1628 - | ::std::string::String,
|
1629 - | ::std::string::String,
|
1630 - | >,
|
1631 - | range_integer_header: i32,
|
1632 - | range_short_header: i16,
|
1633 - | range_long_header: i64,
|
1634 - | range_byte_header: i8,
|
1635 - | range_byte_query: i8,
|
1636 - | range_short_query: i16,
|
1637 - | range_integer_query: i32,
|
1638 - | range_long_query: i64,
|
1639 - | length_string_header: ::std::option::Option<::std::string::String>,
|
1640 - | length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1641 - | list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1642 - | length_list_pattern_string_header: ::std::option::Option<
|
1643 - | ::std::vec::Vec<::std::string::String>,
|
1644 - | >,
|
1645 - | length_set_pattern_string_header: ::std::option::Option<
|
1646 - | ::std::vec::Vec<::std::string::String>,
|
1647 - | >,
|
1648 - | range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1649 - | range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1650 - | range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1651 - | range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1652 - | range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1653 - | range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1654 - | range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1655 - | range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1656 - | length_string_query: ::std::option::Option<::std::string::String>,
|
1657 - | enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
1658 - | length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1659 - | length_list_pattern_string_query: ::std::option::Option<
|
1660 - | ::std::vec::Vec<::std::string::String>,
|
1347 + | map_of_list_of_pattern_string: ::std::option::Option<
|
1348 + | ::std::collections::HashMap<
|
1349 + | ::std::string::String,
|
1350 + | ::std::vec::Vec<::std::string::String>,
|
1351 + | >,
|
1661 1352 | >,
|
1662 - | length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1663 - | range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1664 - | range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1665 - | range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1666 - | range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1667 - | range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1668 - | range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1669 - | range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1670 - | range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1671 - | enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
1672 1353 | ) -> Self {
|
1673 1354 | Self {
|
1674 - | length_string_label,
|
1675 - | range_integer_label,
|
1676 - | range_short_label,
|
1677 - | range_long_label,
|
1678 - | range_byte_label,
|
1679 - | enum_string_label,
|
1680 - | length_string_header_map,
|
1681 - | range_integer_header,
|
1682 - | range_short_header,
|
1683 - | range_long_header,
|
1684 - | range_byte_header,
|
1685 - | range_byte_query,
|
1686 - | range_short_query,
|
1687 - | range_integer_query,
|
1688 - | range_long_query,
|
1689 - | length_string_header,
|
1690 - | length_string_set_header,
|
1691 - | list_length_string_header,
|
1692 - | length_list_pattern_string_header,
|
1693 - | length_set_pattern_string_header,
|
1694 - | range_byte_set_header,
|
1695 - | range_short_set_header,
|
1696 - | range_integer_set_header,
|
1697 - | range_long_set_header,
|
1698 - | range_byte_list_header,
|
1699 - | range_short_list_header,
|
1700 - | range_integer_list_header,
|
1701 - | range_long_list_header,
|
1702 - | length_string_query,
|
1703 - | enum_string_query,
|
1704 - | length_string_list_query,
|
1705 - | length_list_pattern_string_query,
|
1706 - | length_string_set_query,
|
1707 - | range_byte_list_query,
|
1708 - | range_short_list_query,
|
1709 - | range_integer_list_query,
|
1710 - | range_long_list_query,
|
1711 - | range_byte_set_query,
|
1712 - | range_short_set_query,
|
1713 - | range_integer_set_query,
|
1714 - | range_long_set_query,
|
1715 - | enum_string_list_query,
|
1355 + | map_of_list_of_pattern_string,
|
1716 1356 | }
|
1717 1357 | }
|
1718 1358 | fn __repr__(&self) -> String {
|
1719 1359 | format!("{self:?}")
|
1720 1360 | }
|
1721 1361 | fn __str__(&self) -> String {
|
1722 1362 | format!("{self:?}")
|
1723 1363 | }
|
1724 1364 | }
|
1725 1365 | impl<'source> ::pyo3::FromPyObject<'source>
|
1726 - | for std::boxed::Box<ConstrainedHttpBoundShapesOperationInput>
|
1366 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfPatternStringOperationInput>
|
1727 1367 | {
|
1728 1368 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1729 - | ob.extract::<ConstrainedHttpBoundShapesOperationInput>()
|
1369 + | ob.extract::<QueryParamsTargetingMapOfListOfPatternStringOperationInput>()
|
1730 1370 | .map(Box::new)
|
1731 1371 | }
|
1732 1372 | }
|
1733 1373 |
|
1734 1374 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1735 - | for std::boxed::Box<ConstrainedHttpBoundShapesOperationInput>
|
1375 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfPatternStringOperationInput>
|
1736 1376 | {
|
1737 1377 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1738 1378 | (*self).into_py(py)
|
1739 1379 | }
|
1740 1380 | }
|
1741 - | impl crate::constrained::Constrained for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
1742 - | type Unconstrained =
|
1743 - | crate::input::constrained_http_bound_shapes_operation_input_internal::Builder;
|
1381 + | impl crate::constrained::Constrained
|
1382 + | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
1383 + | {
|
1384 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input_internal::Builder;
|
1744 1385 | }
|
1745 - | impl ConstrainedHttpBoundShapesOperationInput {
|
1746 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
1747 - | pub fn builder() -> crate::input::constrained_http_bound_shapes_operation_input::Builder {
|
1748 - | crate::input::constrained_http_bound_shapes_operation_input::Builder::default()
|
1386 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1387 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1388 + | pub fn builder(
|
1389 + | ) -> crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder
|
1390 + | {
|
1391 + | crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder::default()
|
1749 1392 | }
|
1750 1393 | }
|
1751 1394 |
|
1752 1395 | #[::pyo3::pyclass]
|
1396 + | /// :param map_of_length_pattern_string typing.Optional\[typing.Dict\[str, str\]\]:
|
1753 1397 | /// :rtype None:
|
1754 1398 | #[allow(missing_docs)] // documentation missing in model
|
1755 - | #[derive(
|
1756 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1757 - | )]
|
1758 - | pub struct ConstrainedShapesOnlyInOutputOperationInput {}
|
1399 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1400 + | pub struct QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1401 + | #[pyo3(get, set)]
|
1402 + | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1403 + | #[allow(missing_docs)] // documentation missing in model
|
1404 + | pub map_of_length_pattern_string: ::std::option::Option<
|
1405 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1406 + | >,
|
1407 + | }
|
1408 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1409 + | #[allow(missing_docs)] // documentation missing in model
|
1410 + | pub fn map_of_length_pattern_string(
|
1411 + | &self,
|
1412 + | ) -> ::std::option::Option<
|
1413 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1414 + | > {
|
1415 + | self.map_of_length_pattern_string.as_ref()
|
1416 + | }
|
1417 + | }
|
1759 1418 | #[allow(clippy::new_without_default)]
|
1760 1419 | #[allow(clippy::too_many_arguments)]
|
1761 1420 | #[::pyo3::pymethods]
|
1762 - | impl ConstrainedShapesOnlyInOutputOperationInput {
|
1421 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1763 1422 | #[new]
|
1764 - | pub fn new() -> Self {
|
1765 - | Self {}
|
1423 + | pub fn new(
|
1424 + | map_of_length_pattern_string: ::std::option::Option<
|
1425 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1426 + | >,
|
1427 + | ) -> Self {
|
1428 + | Self {
|
1429 + | map_of_length_pattern_string,
|
1430 + | }
|
1766 1431 | }
|
1767 1432 | fn __repr__(&self) -> String {
|
1768 1433 | format!("{self:?}")
|
1769 1434 | }
|
1770 1435 | fn __str__(&self) -> String {
|
1771 1436 | format!("{self:?}")
|
1772 1437 | }
|
1773 1438 | }
|
1774 1439 | impl<'source> ::pyo3::FromPyObject<'source>
|
1775 - | for std::boxed::Box<ConstrainedShapesOnlyInOutputOperationInput>
|
1440 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthPatternStringOperationInput>
|
1776 1441 | {
|
1777 1442 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1778 - | ob.extract::<ConstrainedShapesOnlyInOutputOperationInput>()
|
1443 + | ob.extract::<QueryParamsTargetingMapOfLengthPatternStringOperationInput>()
|
1779 1444 | .map(Box::new)
|
1780 1445 | }
|
1781 1446 | }
|
1782 1447 |
|
1783 1448 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1784 - | for std::boxed::Box<ConstrainedShapesOnlyInOutputOperationInput>
|
1449 + | for std::boxed::Box<QueryParamsTargetingMapOfLengthPatternStringOperationInput>
|
1785 1450 | {
|
1786 1451 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1787 1452 | (*self).into_py(py)
|
1788 1453 | }
|
1789 1454 | }
|
1790 - | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
1791 - | type Unconstrained =
|
1792 - | crate::input::constrained_shapes_only_in_output_operation_input_internal::Builder;
|
1793 - | }
|
1794 - | impl ConstrainedShapesOnlyInOutputOperationInput {
|
1795 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1796 - | pub fn builder() -> crate::input::constrained_shapes_only_in_output_operation_input::Builder {
|
1797 - | crate::input::constrained_shapes_only_in_output_operation_input::Builder::default()
|
1798 - | }
|
1455 + | impl crate::constrained::Constrained
|
1456 + | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
1457 + | {
|
1458 + | type Unconstrained = crate::input::query_params_targeting_map_of_length_pattern_string_operation_input_internal::Builder;
|
1459 + | }
|
1460 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1461 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1462 + | pub fn builder(
|
1463 + | ) -> crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder
|
1464 + | {
|
1465 + | crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder::default()
|
1466 + | }
|
1799 1467 | }
|
1800 1468 |
|
1801 1469 | #[::pyo3::pyclass]
|
1802 - | /// :param con_a constraints_without_public_constrained_types.model.ConA:
|
1470 + | /// :param map_of_length_pattern_string typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1803 1471 | /// :rtype None:
|
1804 1472 | #[allow(missing_docs)] // documentation missing in model
|
1805 1473 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1806 - | pub struct ConstrainedShapesOperationInput {
|
1474 + | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
1807 1475 | #[pyo3(get, set)]
|
1808 - | /// :type constraints_without_public_constrained_types.model.ConA:
|
1476 + | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
1809 1477 | #[allow(missing_docs)] // documentation missing in model
|
1810 - | pub con_a: crate::model::ConA,
|
1478 + | pub map_of_length_pattern_string: ::std::option::Option<
|
1479 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1480 + | >,
|
1811 1481 | }
|
1812 - | impl ConstrainedShapesOperationInput {
|
1482 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
1813 1483 | #[allow(missing_docs)] // documentation missing in model
|
1814 - | pub fn con_a(&self) -> &crate::model::ConA {
|
1815 - | &self.con_a
|
1484 + | pub fn map_of_length_pattern_string(
|
1485 + | &self,
|
1486 + | ) -> ::std::option::Option<
|
1487 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
1488 + | > {
|
1489 + | self.map_of_length_pattern_string.as_ref()
|
1816 1490 | }
|
1817 1491 | }
|
1818 1492 | #[allow(clippy::new_without_default)]
|
1819 1493 | #[allow(clippy::too_many_arguments)]
|
1820 1494 | #[::pyo3::pymethods]
|
1821 - | impl ConstrainedShapesOperationInput {
|
1495 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
1822 1496 | #[new]
|
1823 - | pub fn new(con_a: crate::model::ConA) -> Self {
|
1824 - | Self { con_a }
|
1497 + | pub fn new(
|
1498 + | map_of_length_pattern_string: ::std::option::Option<
|
1499 + | ::std::collections::HashMap<
|
1500 + | ::std::string::String,
|
1501 + | ::std::vec::Vec<::std::string::String>,
|
1502 + | >,
|
1503 + | >,
|
1504 + | ) -> Self {
|
1505 + | Self {
|
1506 + | map_of_length_pattern_string,
|
1507 + | }
|
1825 1508 | }
|
1826 1509 | fn __repr__(&self) -> String {
|
1827 1510 | format!("{self:?}")
|
1828 1511 | }
|
1829 1512 | fn __str__(&self) -> String {
|
1830 1513 | format!("{self:?}")
|
1831 1514 | }
|
1832 1515 | }
|
1833 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ConstrainedShapesOperationInput> {
|
1516 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1517 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>
|
1518 + | {
|
1834 1519 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1835 - | ob.extract::<ConstrainedShapesOperationInput>()
|
1520 + | ob.extract::<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>()
|
1836 1521 | .map(Box::new)
|
1837 1522 | }
|
1838 1523 | }
|
1839 1524 |
|
1840 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ConstrainedShapesOperationInput> {
|
1525 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1526 + | for std::boxed::Box<QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput>
|
1527 + | {
|
1841 1528 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1842 1529 | (*self).into_py(py)
|
1843 1530 | }
|
1844 1531 | }
|
1845 - | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOperationInput {
|
1846 - | type Unconstrained = crate::input::constrained_shapes_operation_input_internal::Builder;
|
1532 + | impl crate::constrained::Constrained
|
1533 + | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1534 + | {
|
1535 + | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal::Builder;
|
1847 1536 | }
|
1848 - | impl ConstrainedShapesOperationInput {
|
1849 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1850 - | pub fn builder() -> crate::input::constrained_shapes_operation_input::Builder {
|
1851 - | crate::input::constrained_shapes_operation_input::Builder::default()
|
1537 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
1538 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1539 + | pub fn builder() -> crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder{
|
1540 + | crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder::default()
|
1852 1541 | }
|
1853 1542 | }
|
1854 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1855 - | pub(crate) mod event_streams_operation_input_internal {
|
1856 1543 |
|
1857 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1858 - | /// Holds one variant for each of the ways the builder can fail.
|
1859 - | #[non_exhaustive]
|
1860 - | #[allow(clippy::enum_variant_names)]
|
1861 - | pub(crate) enum ConstraintViolation {
|
1862 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1863 - | MissingEvents,
|
1544 + | #[::pyo3::pyclass]
|
1545 + | /// :param length_map typing.Optional\[typing.Dict\[str, str\]\]:
|
1546 + | /// :rtype None:
|
1547 + | #[allow(missing_docs)] // documentation missing in model
|
1548 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1549 + | pub struct HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1550 + | #[pyo3(get, set)]
|
1551 + | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
1552 + | #[allow(missing_docs)] // documentation missing in model
|
1553 + | pub length_map: ::std::option::Option<
|
1554 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1555 + | >,
|
1556 + | }
|
1557 + | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1558 + | #[allow(missing_docs)] // documentation missing in model
|
1559 + | pub fn length_map(
|
1560 + | &self,
|
1561 + | ) -> ::std::option::Option<
|
1562 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1563 + | > {
|
1564 + | self.length_map.as_ref()
|
1864 1565 | }
|
1865 - | impl ::std::fmt::Display for ConstraintViolation {
|
1866 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1867 - | match self {
|
1868 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1869 - | }
|
1870 - | }
|
1566 + | }
|
1567 + | #[allow(clippy::new_without_default)]
|
1568 + | #[allow(clippy::too_many_arguments)]
|
1569 + | #[::pyo3::pymethods]
|
1570 + | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1571 + | #[new]
|
1572 + | pub fn new(
|
1573 + | length_map: ::std::option::Option<
|
1574 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1575 + | >,
|
1576 + | ) -> Self {
|
1577 + | Self { length_map }
|
1871 1578 | }
|
1872 - | impl ::std::error::Error for ConstraintViolation {}
|
1873 - | impl ConstraintViolation {
|
1874 - | pub(crate) fn as_validation_exception_field(
|
1875 - | self,
|
1876 - | path: ::std::string::String,
|
1877 - | ) -> crate::model::ValidationExceptionField {
|
1878 - | match self {
|
1879 - | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
1880 - | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
1881 - | path: path + "/events",
|
1882 - | },
|
1883 - | }
|
1884 - | }
|
1579 + | fn __repr__(&self) -> String {
|
1580 + | format!("{self:?}")
|
1885 1581 | }
|
1886 - | impl ::std::convert::From<ConstraintViolation>
|
1887 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1888 - | {
|
1889 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1890 - | let first_validation_exception_field =
|
1891 - | constraint_violation.as_validation_exception_field("".to_owned());
|
1892 - | let validation_exception = crate::error::ValidationException {
|
1893 - | message: format!(
|
1894 - | "1 validation error detected. {}",
|
1895 - | &first_validation_exception_field.message
|
1896 - | ),
|
1897 - | field_list: Some(vec![first_validation_exception_field]),
|
1898 - | };
|
1899 - | Self::ConstraintViolation(
|
1900 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1901 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1902 - | )
|
1903 - | }
|
1582 + | fn __str__(&self) -> String {
|
1583 + | format!("{self:?}")
|
1904 1584 | }
|
1905 - | impl ::std::convert::From<Builder>
|
1906 - | for crate::constrained::MaybeConstrained<crate::input::EventStreamsOperationInput>
|
1907 - | {
|
1908 - | fn from(builder: Builder) -> Self {
|
1909 - | Self::Unconstrained(builder)
|
1910 - | }
|
1585 + | }
|
1586 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1587 + | for std::boxed::Box<HttpPrefixHeadersTargetingLengthMapOperationInput>
|
1588 + | {
|
1589 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1590 + | ob.extract::<HttpPrefixHeadersTargetingLengthMapOperationInput>()
|
1591 + | .map(Box::new)
|
1911 1592 | }
|
1912 - | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
1913 - | type Error = ConstraintViolation;
|
1593 + | }
|
1914 1594 |
|
1915 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1916 - | builder.build()
|
1917 - | }
|
1918 - | }
|
1919 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1920 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1921 - | pub(crate) struct Builder {
|
1922 - | pub(crate) events: ::std::option::Option<
|
1923 - | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1924 - | >,
|
1595 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1596 + | for std::boxed::Box<HttpPrefixHeadersTargetingLengthMapOperationInput>
|
1597 + | {
|
1598 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1599 + | (*self).into_py(py)
|
1925 1600 | }
|
1926 - | impl Builder {
|
1927 - | #[allow(missing_docs)] // documentation missing in model
|
1928 - | pub(crate) fn set_events(
|
1929 - | mut self,
|
1930 - | input: impl ::std::convert::Into<
|
1931 - | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1932 - | >,
|
1933 - | ) -> Self {
|
1934 - | self.events = Some(input.into());
|
1935 - | self
|
1936 - | }
|
1937 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1938 - | ///
|
1939 - | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
1940 - | ///
|
1941 - | pub fn build(
|
1942 - | self,
|
1943 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1944 - | self.build_enforcing_all_constraints()
|
1945 - | }
|
1946 - | fn build_enforcing_all_constraints(
|
1947 - | self,
|
1948 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1949 - | Ok(crate::input::EventStreamsOperationInput {
|
1950 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
1951 - | })
|
1952 - | }
|
1601 + | }
|
1602 + | impl crate::constrained::Constrained
|
1603 + | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
1604 + | {
|
1605 + | type Unconstrained =
|
1606 + | crate::input::http_prefix_headers_targeting_length_map_operation_input_internal::Builder;
|
1607 + | }
|
1608 + | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1609 + | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1610 + | pub fn builder(
|
1611 + | ) -> crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder {
|
1612 + | crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder::default()
|
1953 1613 | }
|
1954 1614 | }
|
1955 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1956 - | pub mod event_streams_operation_input {
|
1957 1615 |
|
1958 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1959 - | /// Holds one variant for each of the ways the builder can fail.
|
1960 - | #[allow(clippy::enum_variant_names)]
|
1961 - | pub enum ConstraintViolation {
|
1962 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1963 - | MissingEvents,
|
1964 - | }
|
1965 - | impl ::std::fmt::Display for ConstraintViolation {
|
1966 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1967 - | match self {
|
1968 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1969 - | }
|
1970 - | }
|
1616 + | #[::pyo3::pyclass]
|
1617 + | /// :param map_of_enum_string typing.Optional\[typing.Dict\[constraints_without_public_constrained_types.model.EnumString, constraints_without_public_constrained_types.model.EnumString\]\]:
|
1618 + | /// :rtype None:
|
1619 + | #[allow(missing_docs)] // documentation missing in model
|
1620 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1621 + | pub struct QueryParamsTargetingMapOfEnumStringOperationInput {
|
1622 + | #[pyo3(get, set)]
|
1623 + | /// :type typing.Optional\[typing.Dict\[constraints_without_public_constrained_types.model.EnumString, constraints_without_public_constrained_types.model.EnumString\]\]:
|
1624 + | #[allow(missing_docs)] // documentation missing in model
|
1625 + | pub map_of_enum_string: ::std::option::Option<
|
1626 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1627 + | >,
|
1628 + | }
|
1629 + | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
1630 + | #[allow(missing_docs)] // documentation missing in model
|
1631 + | pub fn map_of_enum_string(
|
1632 + | &self,
|
1633 + | ) -> ::std::option::Option<
|
1634 + | &::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1635 + | > {
|
1636 + | self.map_of_enum_string.as_ref()
|
1971 1637 | }
|
1972 - | impl ::std::error::Error for ConstraintViolation {}
|
1973 - | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
1974 - | type Error = ConstraintViolation;
|
1975 - |
|
1976 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1977 - | builder.build()
|
1978 - | }
|
1979 - | }
|
1980 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1981 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1982 - | pub struct Builder {
|
1983 - | pub(crate) events: ::std::option::Option<
|
1984 - | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1638 + | }
|
1639 + | #[allow(clippy::new_without_default)]
|
1640 + | #[allow(clippy::too_many_arguments)]
|
1641 + | #[::pyo3::pymethods]
|
1642 + | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
1643 + | #[new]
|
1644 + | pub fn new(
|
1645 + | map_of_enum_string: ::std::option::Option<
|
1646 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1985 1647 | >,
|
1648 + | ) -> Self {
|
1649 + | Self { map_of_enum_string }
|
1986 1650 | }
|
1987 - | impl Builder {
|
1988 - | #[allow(missing_docs)] // documentation missing in model
|
1989 - | pub fn events(
|
1990 - | mut self,
|
1991 - | input: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1992 - | ) -> Self {
|
1993 - | self.events = Some(input);
|
1994 - | self
|
1995 - | }
|
1996 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1997 - | ///
|
1998 - | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if you do not provide a value for all non-`Option`al members.
|
1999 - | ///
|
2000 - | pub fn build(
|
2001 - | self,
|
2002 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
2003 - | self.build_enforcing_required_and_enum_traits()
|
2004 - | }
|
2005 - | fn build_enforcing_required_and_enum_traits(
|
2006 - | self,
|
2007 - | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
2008 - | Ok(crate::input::EventStreamsOperationInput {
|
2009 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
2010 - | })
|
2011 - | }
|
2012 - | }
|
2013 - | }
|
2014 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2015 - | pub(crate) mod streaming_blob_operation_input_internal {
|
2016 - |
|
2017 - | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
2018 - | fn from(builder: Builder) -> Self {
|
2019 - | builder.build()
|
2020 - | }
|
1651 + | fn __repr__(&self) -> String {
|
1652 + | format!("{self:?}")
|
2021 1653 | }
|
2022 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2023 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2024 - | pub(crate) struct Builder {
|
2025 - | pub(crate) streaming_blob:
|
2026 - | ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
1654 + | fn __str__(&self) -> String {
|
1655 + | format!("{self:?}")
|
2027 1656 | }
|
2028 - | impl Builder {
|
2029 - | #[allow(missing_docs)] // documentation missing in model
|
2030 - | pub(crate) fn set_streaming_blob(
|
2031 - | mut self,
|
2032 - | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::ByteStream>,
|
2033 - | ) -> Self {
|
2034 - | self.streaming_blob = Some(input.into());
|
2035 - | self
|
2036 - | }
|
2037 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2038 - | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
2039 - | self.build_enforcing_all_constraints()
|
2040 - | }
|
2041 - | fn build_enforcing_all_constraints(self) -> crate::input::StreamingBlobOperationInput {
|
2042 - | crate::input::StreamingBlobOperationInput {
|
2043 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
2044 - | }
|
2045 - | }
|
1657 + | }
|
1658 + | impl<'source> ::pyo3::FromPyObject<'source>
|
1659 + | for std::boxed::Box<QueryParamsTargetingMapOfEnumStringOperationInput>
|
1660 + | {
|
1661 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1662 + | ob.extract::<QueryParamsTargetingMapOfEnumStringOperationInput>()
|
1663 + | .map(Box::new)
|
2046 1664 | }
|
2047 1665 | }
|
2048 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2049 - | pub mod streaming_blob_operation_input {
|
2050 1666 |
|
2051 - | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
2052 - | fn from(builder: Builder) -> Self {
|
2053 - | builder.build()
|
2054 - | }
|
2055 - | }
|
2056 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2057 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2058 - | pub struct Builder {
|
2059 - | pub(crate) streaming_blob:
|
2060 - | ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
1667 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
1668 + | for std::boxed::Box<QueryParamsTargetingMapOfEnumStringOperationInput>
|
1669 + | {
|
1670 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1671 + | (*self).into_py(py)
|
2061 1672 | }
|
2062 - | impl Builder {
|
2063 - | #[allow(missing_docs)] // documentation missing in model
|
2064 - | pub fn streaming_blob(
|
2065 - | mut self,
|
2066 - | input: ::aws_smithy_http_server_python::types::ByteStream,
|
2067 - | ) -> Self {
|
2068 - | self.streaming_blob = Some(input);
|
2069 - | self
|
2070 - | }
|
2071 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
2072 - | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
2073 - | self.build_enforcing_required_and_enum_traits()
|
2074 - | }
|
2075 - | fn build_enforcing_required_and_enum_traits(
|
2076 - | self,
|
2077 - | ) -> crate::input::StreamingBlobOperationInput {
|
2078 - | crate::input::StreamingBlobOperationInput {
|
2079 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
2080 - | }
|
2081 - | }
|
1673 + | }
|
1674 + | impl crate::constrained::Constrained
|
1675 + | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
1676 + | {
|
1677 + | type Unconstrained =
|
1678 + | crate::input::query_params_targeting_map_of_enum_string_operation_input_internal::Builder;
|
1679 + | }
|
1680 + | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
1681 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1682 + | pub fn builder(
|
1683 + | ) -> crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder {
|
1684 + | crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder::default()
|
2082 1685 | }
|
2083 1686 | }
|
2084 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2085 - | pub(crate) mod non_streaming_blob_operation_input_internal {
|
2086 1687 |
|
2087 - | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
2088 - | fn from(builder: Builder) -> Self {
|
2089 - | builder.build()
|
2090 - | }
|
1688 + | #[::pyo3::pyclass]
|
1689 + | /// :param non_streaming_blob typing.Optional\[constraints_without_public_constrained_types.types.Blob\]:
|
1690 + | /// :rtype None:
|
1691 + | #[allow(missing_docs)] // documentation missing in model
|
1692 + | #[derive(
|
1693 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1694 + | )]
|
1695 + | pub struct NonStreamingBlobOperationInput {
|
1696 + | #[pyo3(get, set)]
|
1697 + | /// :type typing.Optional\[constraints_without_public_constrained_types.types.Blob\]:
|
1698 + | #[allow(missing_docs)] // documentation missing in model
|
1699 + | pub non_streaming_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
1700 + | }
|
1701 + | impl NonStreamingBlobOperationInput {
|
1702 + | #[allow(missing_docs)] // documentation missing in model
|
1703 + | pub fn non_streaming_blob(
|
1704 + | &self,
|
1705 + | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
1706 + | self.non_streaming_blob.as_ref()
|
2091 1707 | }
|
2092 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2093 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2094 - | pub(crate) struct Builder {
|
2095 - | pub(crate) non_streaming_blob:
|
2096 - | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
1708 + | }
|
1709 + | #[allow(clippy::new_without_default)]
|
1710 + | #[allow(clippy::too_many_arguments)]
|
1711 + | #[::pyo3::pymethods]
|
1712 + | impl NonStreamingBlobOperationInput {
|
1713 + | #[new]
|
1714 + | pub fn new(
|
1715 + | non_streaming_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
1716 + | ) -> Self {
|
1717 + | Self { non_streaming_blob }
|
2097 1718 | }
|
2098 - | impl Builder {
|
2099 - | #[allow(missing_docs)] // documentation missing in model
|
2100 - | pub(crate) fn set_non_streaming_blob(
|
2101 - | mut self,
|
2102 - | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
2103 - | ) -> Self {
|
2104 - | self.non_streaming_blob = input.map(|v| v.into());
|
2105 - | self
|
2106 - | }
|
2107 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2108 - | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
2109 - | self.build_enforcing_all_constraints()
|
2110 - | }
|
2111 - | fn build_enforcing_all_constraints(self) -> crate::input::NonStreamingBlobOperationInput {
|
2112 - | crate::input::NonStreamingBlobOperationInput {
|
2113 - | non_streaming_blob: self.non_streaming_blob,
|
2114 - | }
|
2115 - | }
|
1719 + | fn __repr__(&self) -> String {
|
1720 + | format!("{self:?}")
|
1721 + | }
|
1722 + | fn __str__(&self) -> String {
|
1723 + | format!("{self:?}")
|
2116 1724 | }
|
2117 1725 | }
|
2118 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2119 - | pub mod non_streaming_blob_operation_input {
|
2120 - |
|
2121 - | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
2122 - | fn from(builder: Builder) -> Self {
|
2123 - | builder.build()
|
2124 - | }
|
1726 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NonStreamingBlobOperationInput> {
|
1727 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1728 + | ob.extract::<NonStreamingBlobOperationInput>().map(Box::new)
|
2125 1729 | }
|
2126 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2127 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2128 - | pub struct Builder {
|
2129 - | pub(crate) non_streaming_blob:
|
2130 - | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
1730 + | }
|
1731 + |
|
1732 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NonStreamingBlobOperationInput> {
|
1733 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1734 + | (*self).into_py(py)
|
2131 1735 | }
|
2132 - | impl Builder {
|
2133 - | #[allow(missing_docs)] // documentation missing in model
|
2134 - | pub fn non_streaming_blob(
|
2135 - | mut self,
|
2136 - | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
2137 - | ) -> Self {
|
2138 - | self.non_streaming_blob = input;
|
2139 - | self
|
2140 - | }
|
2141 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
2142 - | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
2143 - | self.build_enforcing_required_and_enum_traits()
|
2144 - | }
|
2145 - | fn build_enforcing_required_and_enum_traits(
|
2146 - | self,
|
2147 - | ) -> crate::input::NonStreamingBlobOperationInput {
|
2148 - | crate::input::NonStreamingBlobOperationInput {
|
2149 - | non_streaming_blob: self.non_streaming_blob,
|
2150 - | }
|
2151 - | }
|
1736 + | }
|
1737 + | impl crate::constrained::Constrained for crate::input::NonStreamingBlobOperationInput {
|
1738 + | type Unconstrained = crate::input::non_streaming_blob_operation_input_internal::Builder;
|
1739 + | }
|
1740 + | impl NonStreamingBlobOperationInput {
|
1741 + | /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1742 + | pub fn builder() -> crate::input::non_streaming_blob_operation_input::Builder {
|
1743 + | crate::input::non_streaming_blob_operation_input::Builder::default()
|
2152 1744 | }
|
2153 1745 | }
|
2154 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2155 - | pub(crate) mod query_params_targeting_map_of_enum_string_operation_input_internal {
|
2156 1746 |
|
2157 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2158 - | /// Holds one variant for each of the ways the builder can fail.
|
1747 + | #[::pyo3::pyclass]
|
1748 + | /// :param streaming_blob constraints_without_public_constrained_types.types.ByteStream:
|
1749 + | /// :rtype None:
|
1750 + | #[allow(missing_docs)] // documentation missing in model
|
1751 + | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
1752 + | pub struct StreamingBlobOperationInput {
|
1753 + | #[pyo3(get, set)]
|
1754 + | /// :type constraints_without_public_constrained_types.types.ByteStream:
|
1755 + | #[allow(missing_docs)] // documentation missing in model
|
1756 + | pub streaming_blob: ::aws_smithy_http_server_python::types::ByteStream,
|
1757 + | }
|
1758 + | impl StreamingBlobOperationInput {
|
1759 + | #[allow(missing_docs)] // documentation missing in model
|
1760 + | pub fn streaming_blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
1761 + | &self.streaming_blob
|
1762 + | }
|
1763 + | }
|
1764 + | #[allow(clippy::new_without_default)]
|
1765 + | #[allow(clippy::too_many_arguments)]
|
1766 + | #[::pyo3::pymethods]
|
1767 + | impl StreamingBlobOperationInput {
|
1768 + | #[new]
|
1769 + | pub fn new(streaming_blob: ::aws_smithy_http_server_python::types::ByteStream) -> Self {
|
1770 + | Self { streaming_blob }
|
1771 + | }
|
1772 + | fn __repr__(&self) -> String {
|
1773 + | format!("{self:?}")
|
1774 + | }
|
1775 + | fn __str__(&self) -> String {
|
1776 + | format!("{self:?}")
|
1777 + | }
|
1778 + | }
|
1779 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingBlobOperationInput> {
|
1780 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1781 + | ob.extract::<StreamingBlobOperationInput>().map(Box::new)
|
1782 + | }
|
1783 + | }
|
1784 + |
|
1785 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamingBlobOperationInput> {
|
1786 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1787 + | (*self).into_py(py)
|
1788 + | }
|
1789 + | }
|
1790 + | impl crate::constrained::Constrained for crate::input::StreamingBlobOperationInput {
|
1791 + | type Unconstrained = crate::input::streaming_blob_operation_input_internal::Builder;
|
1792 + | }
|
1793 + | impl StreamingBlobOperationInput {
|
1794 + | /// Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1795 + | pub fn builder() -> crate::input::streaming_blob_operation_input::Builder {
|
1796 + | crate::input::streaming_blob_operation_input::Builder::default()
|
1797 + | }
|
1798 + | }
|
1799 + |
|
1800 + | #[::pyo3::pyclass]
|
1801 + | /// :param events typing.AsyncIterator\[constraints_without_public_constrained_types.model.Event\]:
|
1802 + | /// :rtype None:
|
1803 + | #[allow(missing_docs)] // documentation missing in model
|
1804 + | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
1805 + | pub struct EventStreamsOperationInput {
|
1806 + | #[pyo3(get, set)]
|
1807 + | /// :type typing.AsyncIterator\[constraints_without_public_constrained_types.model.Event\]:
|
1808 + | #[allow(missing_docs)] // documentation missing in model
|
1809 + | pub events: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1810 + | }
|
1811 + | impl EventStreamsOperationInput {
|
1812 + | #[allow(missing_docs)] // documentation missing in model
|
1813 + | pub fn events(&self) -> &crate::python_event_stream::EventStreamsOperationInputEventsReceiver {
|
1814 + | &self.events
|
1815 + | }
|
1816 + | }
|
1817 + | #[allow(clippy::new_without_default)]
|
1818 + | #[allow(clippy::too_many_arguments)]
|
1819 + | #[::pyo3::pymethods]
|
1820 + | impl EventStreamsOperationInput {
|
1821 + | #[new]
|
1822 + | pub fn new(
|
1823 + | events: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1824 + | ) -> Self {
|
1825 + | Self { events }
|
1826 + | }
|
1827 + | fn __repr__(&self) -> String {
|
1828 + | format!("{self:?}")
|
1829 + | }
|
1830 + | fn __str__(&self) -> String {
|
1831 + | format!("{self:?}")
|
1832 + | }
|
1833 + | }
|
1834 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EventStreamsOperationInput> {
|
1835 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1836 + | ob.extract::<EventStreamsOperationInput>().map(Box::new)
|
1837 + | }
|
1838 + | }
|
1839 + |
|
1840 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EventStreamsOperationInput> {
|
1841 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1842 + | (*self).into_py(py)
|
1843 + | }
|
1844 + | }
|
1845 + | impl crate::constrained::Constrained for crate::input::EventStreamsOperationInput {
|
1846 + | type Unconstrained = crate::input::event_streams_operation_input_internal::Builder;
|
1847 + | }
|
1848 + | impl EventStreamsOperationInput {
|
1849 + | /// Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1850 + | pub fn builder() -> crate::input::event_streams_operation_input::Builder {
|
1851 + | crate::input::event_streams_operation_input::Builder::default()
|
1852 + | }
|
1853 + | }
|
1854 + | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1855 + | pub(crate) mod constrained_shapes_operation_input_internal {
|
1856 + |
|
1857 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1858 + | /// Holds one variant for each of the ways the builder can fail.
|
2159 1859 | #[non_exhaustive]
|
2160 1860 | #[allow(clippy::enum_variant_names)]
|
2161 1861 | pub(crate) enum ConstraintViolation {
|
2162 - | /// Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
1862 + | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
1863 + | MissingConA,
|
1864 + | /// Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
2163 1865 | #[doc(hidden)]
|
2164 - | MapOfEnumString(crate::model::map_of_enum_string_internal::ConstraintViolation),
|
1866 + | ConA(crate::model::con_a_internal::ConstraintViolation),
|
2165 1867 | }
|
2166 1868 | impl ::std::fmt::Display for ConstraintViolation {
|
2167 1869 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2168 1870 | match self {
|
2169 - | ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
1871 + | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
1872 + | ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
2170 1873 | }
|
2171 1874 | }
|
2172 1875 | }
|
2173 1876 | impl ::std::error::Error for ConstraintViolation {}
|
2174 1877 | impl ConstraintViolation {
|
2175 1878 | pub(crate) fn as_validation_exception_field(
|
2176 1879 | self,
|
2177 1880 | path: ::std::string::String,
|
2178 1881 | ) -> crate::model::ValidationExceptionField {
|
2179 1882 | match self {
|
2180 - | ConstraintViolation::MapOfEnumString(inner) => {
|
2181 - | inner.as_validation_exception_field(path + "/mapOfEnumString")
|
1883 + | ConstraintViolation::MissingConA => crate::model::ValidationExceptionField {
|
1884 + | message: format!(
|
1885 + | "Value at '{}/conA' failed to satisfy constraint: Member must not be null",
|
1886 + | path
|
1887 + | ),
|
1888 + | path: path + "/conA",
|
1889 + | },
|
1890 + | ConstraintViolation::ConA(inner) => {
|
1891 + | inner.as_validation_exception_field(path + "/conA")
|
2182 1892 | }
|
2183 1893 | }
|
2184 1894 | }
|
2185 1895 | }
|
2186 1896 | impl ::std::convert::From<ConstraintViolation>
|
2187 1897 | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2188 1898 | {
|
2189 1899 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2190 1900 | let first_validation_exception_field =
|
2191 1901 | constraint_violation.as_validation_exception_field("".to_owned());
|
2192 1902 | let validation_exception = crate::error::ValidationException {
|
2193 1903 | message: format!(
|
2194 1904 | "1 validation error detected. {}",
|
2195 1905 | &first_validation_exception_field.message
|
2196 1906 | ),
|
2197 1907 | field_list: Some(vec![first_validation_exception_field]),
|
2198 1908 | };
|
2199 1909 | Self::ConstraintViolation(
|
2200 1910 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2201 1911 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2202 1912 | )
|
2203 1913 | }
|
2204 1914 | }
|
2205 1915 | impl ::std::convert::From<Builder>
|
2206 - | for crate::constrained::MaybeConstrained<
|
2207 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
2208 - | >
|
1916 + | for crate::constrained::MaybeConstrained<crate::input::ConstrainedShapesOperationInput>
|
2209 1917 | {
|
2210 1918 | fn from(builder: Builder) -> Self {
|
2211 1919 | Self::Unconstrained(builder)
|
2212 1920 | }
|
2213 1921 | }
|
2214 - | impl ::std::convert::TryFrom<Builder>
|
2215 - | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
2216 - | {
|
1922 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
2217 1923 | type Error = ConstraintViolation;
|
2218 1924 |
|
2219 1925 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2220 1926 | builder.build()
|
2221 1927 | }
|
2222 1928 | }
|
2223 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1929 + | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
2224 1930 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2225 1931 | pub(crate) struct Builder {
|
2226 - | pub(crate) map_of_enum_string: ::std::option::Option<
|
2227 - | crate::constrained::MaybeConstrained<
|
2228 - | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
2229 - | >,
|
2230 - | >,
|
1932 + | pub(crate) con_a:
|
1933 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
2231 1934 | }
|
2232 1935 | impl Builder {
|
2233 1936 | #[allow(missing_docs)] // documentation missing in model
|
2234 - | pub(crate) fn set_map_of_enum_string(
|
1937 + | pub(crate) fn set_con_a(
|
2235 1938 | mut self,
|
2236 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained>>>,
|
1939 + | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
2237 1940 | ) -> Self {
|
2238 - | self.map_of_enum_string = input.map(|v| v.into());
|
1941 + | self.con_a = Some(input.into());
|
2239 1942 | self
|
2240 1943 | }
|
2241 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1944 + | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
2242 1945 | ///
|
2243 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1946 + | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
2244 1947 | ///
|
1948 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
2245 1949 | pub fn build(
|
2246 1950 | self,
|
2247 - | ) -> Result<
|
2248 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
2249 - | ConstraintViolation,
|
2250 - | > {
|
1951 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
2251 1952 | self.build_enforcing_all_constraints()
|
2252 1953 | }
|
2253 1954 | fn build_enforcing_all_constraints(
|
2254 1955 | self,
|
2255 - | ) -> Result<
|
2256 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
2257 - | ConstraintViolation,
|
2258 - | > {
|
2259 - | Ok(
|
2260 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2261 - | map_of_enum_string: self
|
2262 - | .map_of_enum_string
|
2263 - | .map(|v| match v {
|
2264 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2265 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2266 - | })
|
2267 - | .map(|res| {
|
2268 - | res.map(|v| v.into())
|
2269 - | .map_err(ConstraintViolation::MapOfEnumString)
|
2270 - | })
|
2271 - | .transpose()?,
|
2272 - | },
|
2273 - | )
|
1956 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
1957 + | Ok(crate::input::ConstrainedShapesOperationInput {
|
1958 + | con_a: self
|
1959 + | .con_a
|
1960 + | .map(|v| match v {
|
1961 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1962 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1963 + | })
|
1964 + | .map(|res| res.map_err(ConstraintViolation::ConA))
|
1965 + | .transpose()?
|
1966 + | .ok_or(ConstraintViolation::MissingConA)?,
|
1967 + | })
|
2274 1968 | }
|
2275 1969 | }
|
2276 1970 | }
|
2277 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2278 - | pub mod query_params_targeting_map_of_enum_string_operation_input {
|
1971 + | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1972 + | pub mod constrained_shapes_operation_input {
|
2279 1973 |
|
2280 - | impl ::std::convert::From<Builder>
|
2281 - | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
2282 - | {
|
2283 - | fn from(builder: Builder) -> Self {
|
1974 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1975 + | /// Holds one variant for each of the ways the builder can fail.
|
1976 + | #[allow(clippy::enum_variant_names)]
|
1977 + | pub enum ConstraintViolation {
|
1978 + | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
1979 + | MissingConA,
|
1980 + | }
|
1981 + | impl ::std::fmt::Display for ConstraintViolation {
|
1982 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1983 + | match self {
|
1984 + | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
1985 + | }
|
1986 + | }
|
1987 + | }
|
1988 + | impl ::std::error::Error for ConstraintViolation {}
|
1989 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
1990 + | type Error = ConstraintViolation;
|
1991 + |
|
1992 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2284 1993 | builder.build()
|
2285 1994 | }
|
2286 1995 | }
|
2287 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1996 + | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
2288 1997 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2289 1998 | pub struct Builder {
|
2290 - | pub(crate) map_of_enum_string: ::std::option::Option<
|
2291 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
2292 - | >,
|
1999 + | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
2293 2000 | }
|
2294 2001 | impl Builder {
|
2295 2002 | #[allow(missing_docs)] // documentation missing in model
|
2296 - | pub fn map_of_enum_string(
|
2297 - | mut self,
|
2298 - | input: ::std::option::Option<
|
2299 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
2300 - | >,
|
2301 - | ) -> Self {
|
2302 - | self.map_of_enum_string = input;
|
2003 + | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
2004 + | self.con_a = Some(input);
|
2303 2005 | self
|
2304 2006 | }
|
2305 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2306 - | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2007 + | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
2008 + | ///
|
2009 + | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
2010 + | ///
|
2011 + | pub fn build(
|
2012 + | self,
|
2013 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
2307 2014 | self.build_enforcing_required_and_enum_traits()
|
2308 2015 | }
|
2309 2016 | fn build_enforcing_required_and_enum_traits(
|
2310 2017 | self,
|
2311 - | ) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2312 - | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2313 - | map_of_enum_string: self.map_of_enum_string,
|
2314 - | }
|
2018 + | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
2019 + | Ok(crate::input::ConstrainedShapesOperationInput {
|
2020 + | con_a: self.con_a.ok_or(ConstraintViolation::MissingConA)?,
|
2021 + | })
|
2315 2022 | }
|
2316 2023 | }
|
2317 2024 | }
|
2318 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2319 - | pub(crate) mod http_prefix_headers_targeting_length_map_operation_input_internal {
|
2025 + | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2026 + | pub(crate) mod constrained_shapes_only_in_output_operation_input_internal {
|
2320 2027 |
|
2321 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2322 - | /// Holds one variant for each of the ways the builder can fail.
|
2323 - | #[non_exhaustive]
|
2324 - | #[allow(clippy::enum_variant_names)]
|
2325 - | pub(crate) enum ConstraintViolation {
|
2326 - | /// Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
2327 - | #[doc(hidden)]
|
2328 - | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
2329 - | }
|
2330 - | impl ::std::fmt::Display for ConstraintViolation {
|
2331 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2332 - | match self {
|
2333 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
2334 - | }
|
2335 - | }
|
2336 - | }
|
2337 - | impl ::std::error::Error for ConstraintViolation {}
|
2338 - | impl ConstraintViolation {
|
2339 - | pub(crate) fn as_validation_exception_field(
|
2340 - | self,
|
2341 - | path: ::std::string::String,
|
2342 - | ) -> crate::model::ValidationExceptionField {
|
2343 - | match self {
|
2344 - | ConstraintViolation::LengthMap(inner) => {
|
2345 - | inner.as_validation_exception_field(path + "/lengthMap")
|
2346 - | }
|
2347 - | }
|
2348 - | }
|
2349 - | }
|
2350 - | impl ::std::convert::From<ConstraintViolation>
|
2351 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2352 - | {
|
2353 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2354 - | let first_validation_exception_field =
|
2355 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2356 - | let validation_exception = crate::error::ValidationException {
|
2357 - | message: format!(
|
2358 - | "1 validation error detected. {}",
|
2359 - | &first_validation_exception_field.message
|
2360 - | ),
|
2361 - | field_list: Some(vec![first_validation_exception_field]),
|
2362 - | };
|
2363 - | Self::ConstraintViolation(
|
2364 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2365 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2366 - | )
|
2367 - | }
|
2368 - | }
|
2369 - | impl ::std::convert::From<Builder>
|
2370 - | for crate::constrained::MaybeConstrained<
|
2371 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
2372 - | >
|
2373 - | {
|
2028 + | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2374 2029 | fn from(builder: Builder) -> Self {
|
2375 - | Self::Unconstrained(builder)
|
2376 - | }
|
2377 - | }
|
2378 - | impl ::std::convert::TryFrom<Builder>
|
2379 - | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
2380 - | {
|
2381 - | type Error = ConstraintViolation;
|
2382 - |
|
2383 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2384 2030 | builder.build()
|
2385 2031 | }
|
2386 2032 | }
|
2387 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2033 + | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2388 2034 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2389 - | pub(crate) struct Builder {
|
2390 - | pub(crate) length_map:
|
2391 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
2392 - | }
|
2035 + | pub(crate) struct Builder {}
|
2393 2036 | impl Builder {
|
2394 - | #[allow(missing_docs)] // documentation missing in model
|
2395 - | pub(crate) fn set_length_map(
|
2396 - | mut self,
|
2397 - | input: Option<
|
2398 - | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
2399 - | >,
|
2400 - | ) -> Self {
|
2401 - | self.length_map = input.map(|v| v.into());
|
2402 - | self
|
2403 - | }
|
2404 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2405 - | ///
|
2406 - | /// The builder fails to construct a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
2407 - | ///
|
2408 - | pub fn build(
|
2409 - | self,
|
2410 - | ) -> Result<
|
2411 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
2412 - | ConstraintViolation,
|
2413 - | > {
|
2037 + | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2038 + | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2414 2039 | self.build_enforcing_all_constraints()
|
2415 2040 | }
|
2416 2041 | fn build_enforcing_all_constraints(
|
2417 2042 | self,
|
2418 - | ) -> Result<
|
2419 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
2420 - | ConstraintViolation,
|
2421 - | > {
|
2422 - | Ok(
|
2423 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2424 - | length_map: self
|
2425 - | .length_map
|
2426 - | .map(|v| match v {
|
2427 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2428 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2429 - | })
|
2430 - | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
2431 - | .transpose()?
|
2432 - | .map(|v: crate::model::ConBMap| v.into()),
|
2433 - | },
|
2434 - | )
|
2043 + | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2044 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
2435 2045 | }
|
2436 2046 | }
|
2437 2047 | }
|
2438 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2439 - | pub mod http_prefix_headers_targeting_length_map_operation_input {
|
2048 + | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2049 + | pub mod constrained_shapes_only_in_output_operation_input {
|
2440 2050 |
|
2441 - | impl ::std::convert::From<Builder>
|
2442 - | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
2443 - | {
|
2051 + | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2444 2052 | fn from(builder: Builder) -> Self {
|
2445 2053 | builder.build()
|
2446 2054 | }
|
2447 2055 | }
|
2448 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2056 + | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2449 2057 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2450 - | pub struct Builder {
|
2451 - | pub(crate) length_map: ::std::option::Option<
|
2452 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2453 - | >,
|
2454 - | }
|
2058 + | pub struct Builder {}
|
2455 2059 | impl Builder {
|
2456 - | #[allow(missing_docs)] // documentation missing in model
|
2457 - | pub fn length_map(
|
2458 - | mut self,
|
2459 - | input: ::std::option::Option<
|
2460 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2461 - | >,
|
2462 - | ) -> Self {
|
2463 - | self.length_map = input;
|
2464 - | self
|
2465 - | }
|
2466 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2467 - | pub fn build(self) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2060 + | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
2061 + | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2468 2062 | self.build_enforcing_required_and_enum_traits()
|
2469 2063 | }
|
2470 2064 | fn build_enforcing_required_and_enum_traits(
|
2471 2065 | self,
|
2472 - | ) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2473 - | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2474 - | length_map: self.length_map,
|
2475 - | }
|
2066 + | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
2067 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
2476 2068 | }
|
2477 2069 | }
|
2478 2070 | }
|
2479 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2480 - | pub(crate) mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal {
|
2071 + | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2072 + | pub(crate) mod constrained_http_bound_shapes_operation_input_internal {
|
2481 2073 |
|
2482 2074 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2483 2075 | /// Holds one variant for each of the ways the builder can fail.
|
2484 2076 | #[non_exhaustive]
|
2485 2077 | #[allow(clippy::enum_variant_names)]
|
2486 2078 | pub(crate) enum ConstraintViolation {
|
2487 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
2079 + | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
2080 + | MissingLengthStringLabel,
|
2081 + | /// Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2488 2082 | #[doc(hidden)]
|
2489 - | MapOfLengthPatternString(
|
2490 - | crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation,
|
2083 + | LengthStringLabel(crate::model::length_string_internal::ConstraintViolation),
|
2084 + | /// Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2085 + | #[doc(hidden)]
|
2086 + | RangeIntegerLabel(crate::model::range_integer_internal::ConstraintViolation),
|
2087 + | /// Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2088 + | #[doc(hidden)]
|
2089 + | RangeShortLabel(crate::model::range_short_internal::ConstraintViolation),
|
2090 + | /// Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2091 + | #[doc(hidden)]
|
2092 + | RangeLongLabel(crate::model::range_long_internal::ConstraintViolation),
|
2093 + | /// Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2094 + | #[doc(hidden)]
|
2095 + | RangeByteLabel(crate::model::range_byte_internal::ConstraintViolation),
|
2096 + | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
2097 + | MissingEnumStringLabel,
|
2098 + | /// Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2099 + | #[doc(hidden)]
|
2100 + | EnumStringLabel(crate::model::enum_string_internal::ConstraintViolation),
|
2101 + | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
2102 + | MissingLengthStringHeaderMap,
|
2103 + | /// Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2104 + | #[doc(hidden)]
|
2105 + | LengthStringHeaderMap(crate::model::map_of_length_string_internal::ConstraintViolation),
|
2106 + | /// Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2107 + | #[doc(hidden)]
|
2108 + | LengthStringHeader(crate::model::length_string_internal::ConstraintViolation),
|
2109 + | /// Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2110 + | #[doc(hidden)]
|
2111 + | RangeIntegerHeader(crate::model::range_integer_internal::ConstraintViolation),
|
2112 + | /// Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2113 + | #[doc(hidden)]
|
2114 + | RangeShortHeader(crate::model::range_short_internal::ConstraintViolation),
|
2115 + | /// Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2116 + | #[doc(hidden)]
|
2117 + | RangeLongHeader(crate::model::range_long_internal::ConstraintViolation),
|
2118 + | /// Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2119 + | #[doc(hidden)]
|
2120 + | RangeByteHeader(crate::model::range_byte_internal::ConstraintViolation),
|
2121 + | /// Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2122 + | #[doc(hidden)]
|
2123 + | LengthStringSetHeader(crate::model::set_of_length_string_internal::ConstraintViolation),
|
2124 + | /// Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2125 + | #[doc(hidden)]
|
2126 + | ListLengthStringHeader(crate::model::list_of_length_string_internal::ConstraintViolation),
|
2127 + | /// Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2128 + | #[doc(hidden)]
|
2129 + | LengthListPatternStringHeader(
|
2130 + | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
2491 2131 | ),
|
2492 - | }
|
2493 - | impl ::std::fmt::Display for ConstraintViolation {
|
2494 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2495 - | match self {
|
2496 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
2497 - | }
|
2498 - | }
|
2499 - | }
|
2500 - | impl ::std::error::Error for ConstraintViolation {}
|
2501 - | impl ConstraintViolation {
|
2502 - | pub(crate) fn as_validation_exception_field(
|
2503 - | self,
|
2504 - | path: ::std::string::String,
|
2505 - | ) -> crate::model::ValidationExceptionField {
|
2506 - | match self {
|
2507 - | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
2508 - | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
2509 - | }
|
2510 - | }
|
2511 - | }
|
2512 - | }
|
2513 - | impl ::std::convert::From<ConstraintViolation>
|
2514 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2515 - | {
|
2516 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2517 - | let first_validation_exception_field =
|
2518 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2519 - | let validation_exception = crate::error::ValidationException {
|
2520 - | message: format!(
|
2521 - | "1 validation error detected. {}",
|
2522 - | &first_validation_exception_field.message
|
2523 - | ),
|
2524 - | field_list: Some(vec![first_validation_exception_field]),
|
2525 - | };
|
2526 - | Self::ConstraintViolation(
|
2527 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2528 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2529 - | )
|
2530 - | }
|
2531 - | }
|
2532 - | impl ::std::convert::From<Builder>
|
2533 - | for crate::constrained::MaybeConstrained<
|
2534 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
2535 - | >
|
2536 - | {
|
2537 - | fn from(builder: Builder) -> Self {
|
2538 - | Self::Unconstrained(builder)
|
2539 - | }
|
2540 - | }
|
2541 - | impl ::std::convert::TryFrom<Builder>
|
2542 - | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2543 - | {
|
2544 - | type Error = ConstraintViolation;
|
2545 - |
|
2546 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2547 - | builder.build()
|
2548 - | }
|
2549 - | }
|
2550 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2551 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2552 - | pub(crate) struct Builder {
|
2553 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
|
2554 - | }
|
2555 - | impl Builder {
|
2556 - | #[allow(missing_docs)] // documentation missing in model
|
2557 - | pub(crate) fn set_map_of_length_pattern_string(
|
2558 - | mut self,
|
2559 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>>,
|
2560 - | ) -> Self {
|
2561 - | self.map_of_length_pattern_string = input.map(|v| v.into());
|
2562 - | self
|
2563 - | }
|
2564 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2565 - | ///
|
2566 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2567 - | ///
|
2568 - | pub fn build(
|
2569 - | self,
|
2570 - | ) -> Result<
|
2571 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
2572 - | ConstraintViolation,
|
2573 - | > {
|
2574 - | self.build_enforcing_all_constraints()
|
2575 - | }
|
2576 - | fn build_enforcing_all_constraints(
|
2577 - | self,
|
2578 - | ) -> Result<
|
2579 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
2580 - | ConstraintViolation,
|
2581 - | > {
|
2582 - | Ok(
|
2583 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
2584 - | map_of_length_pattern_string: self
|
2585 - | .map_of_length_pattern_string
|
2586 - | .map(|v| match v {
|
2587 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2588 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2589 - | })
|
2590 - | .map(|res| {
|
2591 - | res.map(|v| v.into())
|
2592 - | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
2593 - | })
|
2594 - | .transpose()?,
|
2595 - | },
|
2596 - | )
|
2597 - | }
|
2598 - | }
|
2599 - | }
|
2600 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2601 - | pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input {
|
2602 - |
|
2603 - | impl ::std::convert::From<Builder>
|
2604 - | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2605 - | {
|
2606 - | fn from(builder: Builder) -> Self {
|
2607 - | builder.build()
|
2608 - | }
|
2609 - | }
|
2610 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2611 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2612 - | pub struct Builder {
|
2613 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
2614 - | ::std::collections::HashMap<
|
2615 - | ::std::string::String,
|
2616 - | ::std::vec::Vec<::std::string::String>,
|
2617 - | >,
|
2618 - | >,
|
2619 - | }
|
2620 - | impl Builder {
|
2621 - | #[allow(missing_docs)] // documentation missing in model
|
2622 - | pub fn map_of_length_pattern_string(
|
2623 - | mut self,
|
2624 - | input: ::std::option::Option<
|
2625 - | ::std::collections::HashMap<
|
2626 - | ::std::string::String,
|
2627 - | ::std::vec::Vec<::std::string::String>,
|
2628 - | >,
|
2629 - | >,
|
2630 - | ) -> Self {
|
2631 - | self.map_of_length_pattern_string = input;
|
2632 - | self
|
2633 - | }
|
2634 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2635 - | pub fn build(
|
2636 - | self,
|
2637 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2638 - | {
|
2639 - | self.build_enforcing_required_and_enum_traits()
|
2640 - | }
|
2641 - | fn build_enforcing_required_and_enum_traits(
|
2642 - | self,
|
2643 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
2644 - | {
|
2645 - | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
2646 - | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
2647 - | }
|
2648 - | }
|
2649 - | }
|
2650 - | }
|
2651 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2652 - | pub(crate) mod query_params_targeting_map_of_length_pattern_string_operation_input_internal {
|
2653 - |
|
2654 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2655 - | /// Holds one variant for each of the ways the builder can fail.
|
2656 - | #[non_exhaustive]
|
2657 - | #[allow(clippy::enum_variant_names)]
|
2658 - | pub(crate) enum ConstraintViolation {
|
2659 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
2132 + | /// Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2660 2133 | #[doc(hidden)]
|
2661 - | MapOfLengthPatternString(
|
2662 - | crate::model::map_of_length_pattern_string_internal::ConstraintViolation,
|
2134 + | LengthSetPatternStringHeader(
|
2135 + | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
2136 + | ),
|
2137 + | /// Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2138 + | #[doc(hidden)]
|
2139 + | RangeByteSetHeader(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
2140 + | /// Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2141 + | #[doc(hidden)]
|
2142 + | RangeShortSetHeader(crate::model::set_of_range_short_internal::ConstraintViolation),
|
2143 + | /// Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2144 + | #[doc(hidden)]
|
2145 + | RangeIntegerSetHeader(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
2146 + | /// Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2147 + | #[doc(hidden)]
|
2148 + | RangeLongSetHeader(crate::model::set_of_range_long_internal::ConstraintViolation),
|
2149 + | /// Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2150 + | #[doc(hidden)]
|
2151 + | RangeByteListHeader(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
2152 + | /// Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2153 + | #[doc(hidden)]
|
2154 + | RangeShortListHeader(crate::model::list_of_range_short_internal::ConstraintViolation),
|
2155 + | /// Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2156 + | #[doc(hidden)]
|
2157 + | RangeIntegerListHeader(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
2158 + | /// Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2159 + | #[doc(hidden)]
|
2160 + | RangeLongListHeader(crate::model::list_of_range_long_internal::ConstraintViolation),
|
2161 + | /// Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2162 + | #[doc(hidden)]
|
2163 + | LengthStringQuery(crate::model::length_string_internal::ConstraintViolation),
|
2164 + | /// Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2165 + | #[doc(hidden)]
|
2166 + | RangeByteQuery(crate::model::range_byte_internal::ConstraintViolation),
|
2167 + | /// Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2168 + | #[doc(hidden)]
|
2169 + | RangeShortQuery(crate::model::range_short_internal::ConstraintViolation),
|
2170 + | /// Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2171 + | #[doc(hidden)]
|
2172 + | RangeIntegerQuery(crate::model::range_integer_internal::ConstraintViolation),
|
2173 + | /// Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2174 + | #[doc(hidden)]
|
2175 + | RangeLongQuery(crate::model::range_long_internal::ConstraintViolation),
|
2176 + | /// Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2177 + | #[doc(hidden)]
|
2178 + | EnumStringQuery(crate::model::enum_string_internal::ConstraintViolation),
|
2179 + | /// Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2180 + | #[doc(hidden)]
|
2181 + | LengthStringListQuery(crate::model::list_of_length_string_internal::ConstraintViolation),
|
2182 + | /// Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2183 + | #[doc(hidden)]
|
2184 + | LengthListPatternStringQuery(
|
2185 + | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
2663 2186 | ),
|
2187 + | /// Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2188 + | #[doc(hidden)]
|
2189 + | LengthStringSetQuery(crate::model::set_of_length_string_internal::ConstraintViolation),
|
2190 + | /// Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2191 + | #[doc(hidden)]
|
2192 + | RangeByteListQuery(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
2193 + | /// Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2194 + | #[doc(hidden)]
|
2195 + | RangeShortListQuery(crate::model::list_of_range_short_internal::ConstraintViolation),
|
2196 + | /// Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2197 + | #[doc(hidden)]
|
2198 + | RangeIntegerListQuery(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
2199 + | /// Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2200 + | #[doc(hidden)]
|
2201 + | RangeLongListQuery(crate::model::list_of_range_long_internal::ConstraintViolation),
|
2202 + | /// Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2203 + | #[doc(hidden)]
|
2204 + | RangeByteSetQuery(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
2205 + | /// Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2206 + | #[doc(hidden)]
|
2207 + | RangeShortSetQuery(crate::model::set_of_range_short_internal::ConstraintViolation),
|
2208 + | /// Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2209 + | #[doc(hidden)]
|
2210 + | RangeIntegerSetQuery(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
2211 + | /// Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2212 + | #[doc(hidden)]
|
2213 + | RangeLongSetQuery(crate::model::set_of_range_long_internal::ConstraintViolation),
|
2214 + | /// Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
2215 + | #[doc(hidden)]
|
2216 + | EnumStringListQuery(crate::model::list_of_enum_string_internal::ConstraintViolation),
|
2664 2217 | }
|
2665 2218 | impl ::std::fmt::Display for ConstraintViolation {
|
2666 2219 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2667 2220 | match self {
|
2668 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
2221 + | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2222 + | ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2223 + | ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2224 + | ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2225 + | ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2226 + | ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2227 + | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2228 + | ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2229 + | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2230 + | ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2231 + | ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2232 + | ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2233 + | ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2234 + | ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2235 + | ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2236 + | ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2237 + | ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2238 + | ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2239 + | ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2240 + | ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2241 + | ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2242 + | ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2243 + | ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2244 + | ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2245 + | ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2246 + | ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2247 + | ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2248 + | ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2249 + | ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2250 + | ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2251 + | ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2252 + | ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2253 + | ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2254 + | ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2255 + | ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2256 + | ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2257 + | ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2258 + | ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2259 + | ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2260 + | ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2261 + | ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2262 + | ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2263 + | ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2264 + | ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2265 + | ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
2669 2266 | }
|
2670 2267 | }
|
2671 2268 | }
|
2672 2269 | impl ::std::error::Error for ConstraintViolation {}
|
2673 2270 | impl ConstraintViolation {
|
2674 2271 | pub(crate) fn as_validation_exception_field(
|
2675 2272 | self,
|
2676 2273 | path: ::std::string::String,
|
2677 2274 | ) -> crate::model::ValidationExceptionField {
|
2678 2275 | match self {
|
2679 - | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
2680 - | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
2681 - | }
|
2682 - | }
|
2683 - | }
|
2276 + | ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
|
2277 + | message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
|
2278 + | path: path + "/lengthStringLabel",
|
2279 + | },
|
2280 + | ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
|
2281 + | ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
|
2282 + | ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
|
2283 + | ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
|
2284 + | ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
|
2285 + | ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
|
2286 + | message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
|
2287 + | path: path + "/enumStringLabel",
|
2288 + | },
|
2289 + | ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
|
2290 + | ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
|
2291 + | message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
|
2292 + | path: path + "/lengthStringHeaderMap",
|
2293 + | },
|
2294 + | ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
|
2295 + | ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
|
2296 + | ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
|
2297 + | ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
|
2298 + | ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
|
2299 + | ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
|
2300 + | ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
|
2301 + | ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
|
2302 + | ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
|
2303 + | ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
|
2304 + | ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
|
2305 + | ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
|
2306 + | ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
|
2307 + | ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
|
2308 + | ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
|
2309 + | ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
|
2310 + | ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
|
2311 + | ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
|
2312 + | ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
|
2313 + | ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
|
2314 + | ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
|
2315 + | ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
|
2316 + | ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
|
2317 + | ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
|
2318 + | ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
|
2319 + | ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
|
2320 + | ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
|
2321 + | ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
|
2322 + | ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
|
2323 + | ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
|
2324 + | ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
|
2325 + | ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
|
2326 + | ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
|
2327 + | ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
|
2328 + | ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
|
2329 + | ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
|
2330 + | }
|
2331 + | }
|
2684 2332 | }
|
2685 2333 | impl ::std::convert::From<ConstraintViolation>
|
2686 2334 | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2687 2335 | {
|
2688 2336 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2689 2337 | let first_validation_exception_field =
|
2690 2338 | constraint_violation.as_validation_exception_field("".to_owned());
|
2691 2339 | let validation_exception = crate::error::ValidationException {
|
2692 2340 | message: format!(
|
2693 2341 | "1 validation error detected. {}",
|
2694 2342 | &first_validation_exception_field.message
|
2695 2343 | ),
|
2696 2344 | field_list: Some(vec![first_validation_exception_field]),
|
2697 2345 | };
|
2698 2346 | Self::ConstraintViolation(
|
2699 2347 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2700 2348 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2701 2349 | )
|
2702 2350 | }
|
2703 2351 | }
|
2704 2352 | impl ::std::convert::From<Builder>
|
2705 2353 | for crate::constrained::MaybeConstrained<
|
2706 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
2354 + | crate::input::ConstrainedHttpBoundShapesOperationInput,
|
2707 2355 | >
|
2708 2356 | {
|
2709 2357 | fn from(builder: Builder) -> Self {
|
2710 2358 | Self::Unconstrained(builder)
|
2711 2359 | }
|
2712 2360 | }
|
2713 - | impl ::std::convert::TryFrom<Builder>
|
2714 - | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
2715 - | {
|
2361 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
2716 2362 | type Error = ConstraintViolation;
|
2717 2363 |
|
2718 2364 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2719 2365 | builder.build()
|
2720 2366 | }
|
2721 2367 | }
|
2722 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2368 + | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2723 2369 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2724 2370 | pub(crate) struct Builder {
|
2725 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
2371 + | pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
2372 + | pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
2373 + | pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
2374 + | pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
2375 + | pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
2376 + | pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
2377 + | pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
2378 + | pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
2379 + | pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
2380 + | pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
2381 + | pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
2382 + | pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
2383 + | pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
2384 + | pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
2385 + | pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
2386 + | pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
2387 + | pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
2388 + | pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
2389 + | pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
2390 + | pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
2391 + | pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
2392 + | pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
2393 + | pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
2394 + | pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
2395 + | pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
2396 + | pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
2397 + | pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
2398 + | pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
2399 + | pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
2400 + | pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
2401 + | pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
2402 + | pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
2403 + | pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
2404 + | pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
2405 + | pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
2406 + | pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
2407 + | pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
2408 + | pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
2409 + | pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
2410 + | pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
2411 + | pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
2412 + | pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
2726 2413 | }
|
2727 2414 | impl Builder {
|
2728 2415 | #[allow(missing_docs)] // documentation missing in model
|
2729 - | pub(crate) fn set_map_of_length_pattern_string(
|
2416 + | pub(crate) fn set_length_string_label(
|
2730 2417 | mut self,
|
2731 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
|
2418 + | input: impl ::std::convert::Into<
|
2419 + | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
2420 + | >,
|
2732 2421 | ) -> Self {
|
2733 - | self.map_of_length_pattern_string = input.map(|v| v.into());
|
2422 + | self.length_string_label = Some(input.into());
|
2734 2423 | self
|
2735 2424 | }
|
2736 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2737 - | ///
|
2738 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2739 - | ///
|
2740 - | pub fn build(
|
2741 - | self,
|
2742 - | ) -> Result<
|
2743 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
2744 - | ConstraintViolation,
|
2745 - | > {
|
2746 - | self.build_enforcing_all_constraints()
|
2747 - | }
|
2748 - | fn build_enforcing_all_constraints(
|
2749 - | self,
|
2750 - | ) -> Result<
|
2751 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
2752 - | ConstraintViolation,
|
2753 - | > {
|
2754 - | Ok(
|
2755 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2756 - | map_of_length_pattern_string: self
|
2757 - | .map_of_length_pattern_string
|
2758 - | .map(|v| match v {
|
2759 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2760 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2761 - | })
|
2762 - | .map(|res| {
|
2763 - | res.map(|v| v.into())
|
2764 - | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
2765 - | })
|
2766 - | .transpose()?,
|
2767 - | },
|
2768 - | )
|
2425 + | #[allow(missing_docs)] // documentation missing in model
|
2426 + | pub(crate) fn set_range_integer_label(
|
2427 + | mut self,
|
2428 + | input: impl ::std::convert::Into<
|
2429 + | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
2430 + | >,
|
2431 + | ) -> Self {
|
2432 + | self.range_integer_label = Some(input.into());
|
2433 + | self
|
2769 2434 | }
|
2770 - | }
|
2771 - | }
|
2772 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2773 - | pub mod query_params_targeting_map_of_length_pattern_string_operation_input {
|
2774 - |
|
2775 - | impl ::std::convert::From<Builder>
|
2776 - | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
2777 - | {
|
2778 - | fn from(builder: Builder) -> Self {
|
2779 - | builder.build()
|
2435 + | #[allow(missing_docs)] // documentation missing in model
|
2436 + | pub(crate) fn set_range_short_label(
|
2437 + | mut self,
|
2438 + | input: impl ::std::convert::Into<
|
2439 + | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
2440 + | >,
|
2441 + | ) -> Self {
|
2442 + | self.range_short_label = Some(input.into());
|
2443 + | self
|
2780 2444 | }
|
2781 - | }
|
2782 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2783 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2784 - | pub struct Builder {
|
2785 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
2786 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2787 - | >,
|
2788 - | }
|
2789 - | impl Builder {
|
2790 2445 | #[allow(missing_docs)] // documentation missing in model
|
2791 - | pub fn map_of_length_pattern_string(
|
2446 + | pub(crate) fn set_range_long_label(
|
2792 2447 | mut self,
|
2793 - | input: ::std::option::Option<
|
2794 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2448 + | input: impl ::std::convert::Into<
|
2449 + | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
2795 2450 | >,
|
2796 2451 | ) -> Self {
|
2797 - | self.map_of_length_pattern_string = input;
|
2452 + | self.range_long_label = Some(input.into());
|
2798 2453 | self
|
2799 2454 | }
|
2800 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2801 - | pub fn build(
|
2802 - | self,
|
2803 - | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2804 - | self.build_enforcing_required_and_enum_traits()
|
2455 + | #[allow(missing_docs)] // documentation missing in model
|
2456 + | pub(crate) fn set_range_byte_label(
|
2457 + | mut self,
|
2458 + | input: impl ::std::convert::Into<
|
2459 + | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
2460 + | >,
|
2461 + | ) -> Self {
|
2462 + | self.range_byte_label = Some(input.into());
|
2463 + | self
|
2805 2464 | }
|
2806 - | fn build_enforcing_required_and_enum_traits(
|
2807 - | self,
|
2808 - | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2809 - | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2810 - | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
2811 - | }
|
2465 + | #[allow(missing_docs)] // documentation missing in model
|
2466 + | pub(crate) fn set_enum_string_label(
|
2467 + | mut self,
|
2468 + | input: impl ::std::convert::Into<
|
2469 + | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
2470 + | >,
|
2471 + | ) -> Self {
|
2472 + | self.enum_string_label = Some(input.into());
|
2473 + | self
|
2812 2474 | }
|
2813 - | }
|
2814 - | }
|
2815 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2816 - | pub(crate) mod query_params_targeting_map_of_list_of_pattern_string_operation_input_internal {
|
2817 - |
|
2818 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2819 - | /// Holds one variant for each of the ways the builder can fail.
|
2820 - | #[non_exhaustive]
|
2821 - | #[allow(clippy::enum_variant_names)]
|
2822 - | pub(crate) enum ConstraintViolation {
|
2823 - | /// Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
2824 - | #[doc(hidden)]
|
2825 - | MapOfListOfPatternString(
|
2826 - | crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation,
|
2827 - | ),
|
2828 - | }
|
2829 - | impl ::std::fmt::Display for ConstraintViolation {
|
2830 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2831 - | match self {
|
2832 - | ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
2833 - | }
|
2475 + | #[allow(missing_docs)] // documentation missing in model
|
2476 + | pub(crate) fn set_length_string_header_map(
|
2477 + | mut self,
|
2478 + | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
2479 + | ) -> Self {
|
2480 + | self.length_string_header_map = Some(input.into());
|
2481 + | self
|
2834 2482 | }
|
2835 - | }
|
2836 - | impl ::std::error::Error for ConstraintViolation {}
|
2837 - | impl ConstraintViolation {
|
2838 - | pub(crate) fn as_validation_exception_field(
|
2839 - | self,
|
2840 - | path: ::std::string::String,
|
2841 - | ) -> crate::model::ValidationExceptionField {
|
2842 - | match self {
|
2843 - | ConstraintViolation::MapOfListOfPatternString(inner) => {
|
2844 - | inner.as_validation_exception_field(path + "/mapOfListOfPatternString")
|
2845 - | }
|
2846 - | }
|
2847 - | }
|
2848 - | }
|
2849 - | impl ::std::convert::From<ConstraintViolation>
|
2850 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2851 - | {
|
2852 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2853 - | let first_validation_exception_field =
|
2854 - | constraint_violation.as_validation_exception_field("".to_owned());
|
2855 - | let validation_exception = crate::error::ValidationException {
|
2856 - | message: format!(
|
2857 - | "1 validation error detected. {}",
|
2858 - | &first_validation_exception_field.message
|
2859 - | ),
|
2860 - | field_list: Some(vec![first_validation_exception_field]),
|
2861 - | };
|
2862 - | Self::ConstraintViolation(
|
2863 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2864 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2865 - | )
|
2483 + | #[allow(missing_docs)] // documentation missing in model
|
2484 + | pub(crate) fn set_length_string_header(
|
2485 + | mut self,
|
2486 + | input: Option<
|
2487 + | impl ::std::convert::Into<
|
2488 + | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
2489 + | >,
|
2490 + | >,
|
2491 + | ) -> Self {
|
2492 + | self.length_string_header = input.map(|v| v.into());
|
2493 + | self
|
2866 2494 | }
|
2867 - | }
|
2868 - | impl ::std::convert::From<Builder>
|
2869 - | for crate::constrained::MaybeConstrained<
|
2870 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
2871 - | >
|
2872 - | {
|
2873 - | fn from(builder: Builder) -> Self {
|
2874 - | Self::Unconstrained(builder)
|
2495 + | #[allow(missing_docs)] // documentation missing in model
|
2496 + | pub(crate) fn set_range_integer_header(
|
2497 + | mut self,
|
2498 + | input: impl ::std::convert::Into<
|
2499 + | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
2500 + | >,
|
2501 + | ) -> Self {
|
2502 + | self.range_integer_header = Some(input.into());
|
2503 + | self
|
2875 2504 | }
|
2876 - | }
|
2877 - | impl ::std::convert::TryFrom<Builder>
|
2878 - | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
2879 - | {
|
2880 - | type Error = ConstraintViolation;
|
2881 - |
|
2882 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2883 - | builder.build()
|
2505 + | #[allow(missing_docs)] // documentation missing in model
|
2506 + | pub(crate) fn set_range_short_header(
|
2507 + | mut self,
|
2508 + | input: impl ::std::convert::Into<
|
2509 + | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
2510 + | >,
|
2511 + | ) -> Self {
|
2512 + | self.range_short_header = Some(input.into());
|
2513 + | self
|
2884 2514 | }
|
2885 - | }
|
2886 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2887 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2888 - | pub(crate) struct Builder {
|
2889 - | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
|
2890 - | }
|
2891 - | impl Builder {
|
2892 2515 | #[allow(missing_docs)] // documentation missing in model
|
2893 - | pub(crate) fn set_map_of_list_of_pattern_string(
|
2516 + | pub(crate) fn set_range_long_header(
|
2894 2517 | mut self,
|
2895 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>>,
|
2518 + | input: impl ::std::convert::Into<
|
2519 + | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
2520 + | >,
|
2896 2521 | ) -> Self {
|
2897 - | self.map_of_list_of_pattern_string = input.map(|v| v.into());
|
2522 + | self.range_long_header = Some(input.into());
|
2898 2523 | self
|
2899 2524 | }
|
2900 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2901 - | ///
|
2902 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2903 - | ///
|
2904 - | pub fn build(
|
2905 - | self,
|
2906 - | ) -> Result<
|
2907 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
2908 - | ConstraintViolation,
|
2909 - | > {
|
2910 - | self.build_enforcing_all_constraints()
|
2525 + | #[allow(missing_docs)] // documentation missing in model
|
2526 + | pub(crate) fn set_range_byte_header(
|
2527 + | mut self,
|
2528 + | input: impl ::std::convert::Into<
|
2529 + | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
2530 + | >,
|
2531 + | ) -> Self {
|
2532 + | self.range_byte_header = Some(input.into());
|
2533 + | self
|
2911 2534 | }
|
2912 - | fn build_enforcing_all_constraints(
|
2913 - | self,
|
2914 - | ) -> Result<
|
2915 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
2916 - | ConstraintViolation,
|
2917 - | > {
|
2918 - | Ok(
|
2919 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2920 - | map_of_list_of_pattern_string: self
|
2921 - | .map_of_list_of_pattern_string
|
2922 - | .map(|v| match v {
|
2923 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2924 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2925 - | })
|
2926 - | .map(|res| {
|
2927 - | res.map(|v| v.into())
|
2928 - | .map_err(ConstraintViolation::MapOfListOfPatternString)
|
2929 - | })
|
2930 - | .transpose()?,
|
2931 - | },
|
2932 - | )
|
2535 + | #[allow(missing_docs)] // documentation missing in model
|
2536 + | pub(crate) fn set_length_string_set_header(
|
2537 + | mut self,
|
2538 + | input: Option<
|
2539 + | impl ::std::convert::Into<
|
2540 + | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
2541 + | >,
|
2542 + | >,
|
2543 + | ) -> Self {
|
2544 + | self.length_string_set_header = input.map(|v| v.into());
|
2545 + | self
|
2933 2546 | }
|
2934 - | }
|
2935 - | }
|
2936 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2937 - | pub mod query_params_targeting_map_of_list_of_pattern_string_operation_input {
|
2938 - |
|
2939 - | impl ::std::convert::From<Builder>
|
2940 - | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
2941 - | {
|
2942 - | fn from(builder: Builder) -> Self {
|
2943 - | builder.build()
|
2547 + | #[allow(missing_docs)] // documentation missing in model
|
2548 + | pub(crate) fn set_list_length_string_header(
|
2549 + | mut self,
|
2550 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
2551 + | ) -> Self {
|
2552 + | self.list_length_string_header = input.map(|v| v.into());
|
2553 + | self
|
2944 2554 | }
|
2945 - | }
|
2946 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2947 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2948 - | pub struct Builder {
|
2949 - | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<
|
2950 - | ::std::collections::HashMap<
|
2951 - | ::std::string::String,
|
2952 - | ::std::vec::Vec<::std::string::String>,
|
2555 + | #[allow(missing_docs)] // documentation missing in model
|
2556 + | pub(crate) fn set_length_list_pattern_string_header(
|
2557 + | mut self,
|
2558 + | input: Option<
|
2559 + | impl ::std::convert::Into<
|
2560 + | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
2561 + | >,
|
2953 2562 | >,
|
2954 - | >,
|
2955 - | }
|
2956 - | impl Builder {
|
2563 + | ) -> Self {
|
2564 + | self.length_list_pattern_string_header = input.map(|v| v.into());
|
2565 + | self
|
2566 + | }
|
2957 2567 | #[allow(missing_docs)] // documentation missing in model
|
2958 - | pub fn map_of_list_of_pattern_string(
|
2568 + | pub(crate) fn set_length_set_pattern_string_header(
|
2959 2569 | mut self,
|
2960 - | input: ::std::option::Option<
|
2961 - | ::std::collections::HashMap<
|
2962 - | ::std::string::String,
|
2963 - | ::std::vec::Vec<::std::string::String>,
|
2570 + | input: Option<
|
2571 + | impl ::std::convert::Into<
|
2572 + | crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
|
2964 2573 | >,
|
2965 2574 | >,
|
2966 2575 | ) -> Self {
|
2967 - | self.map_of_list_of_pattern_string = input;
|
2576 + | self.length_set_pattern_string_header = input.map(|v| v.into());
|
2968 2577 | self
|
2969 2578 | }
|
2970 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2971 - | pub fn build(
|
2972 - | self,
|
2973 - | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2974 - | self.build_enforcing_required_and_enum_traits()
|
2579 + | #[allow(missing_docs)] // documentation missing in model
|
2580 + | pub(crate) fn set_range_byte_set_header(
|
2581 + | mut self,
|
2582 + | input: Option<
|
2583 + | impl ::std::convert::Into<
|
2584 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
2585 + | >,
|
2586 + | >,
|
2587 + | ) -> Self {
|
2588 + | self.range_byte_set_header = input.map(|v| v.into());
|
2589 + | self
|
2975 2590 | }
|
2976 - | fn build_enforcing_required_and_enum_traits(
|
2977 - | self,
|
2978 - | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2979 - | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2980 - | map_of_list_of_pattern_string: self.map_of_list_of_pattern_string,
|
2981 - | }
|
2591 + | #[allow(missing_docs)] // documentation missing in model
|
2592 + | pub(crate) fn set_range_short_set_header(
|
2593 + | mut self,
|
2594 + | input: Option<
|
2595 + | impl ::std::convert::Into<
|
2596 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
2597 + | >,
|
2598 + | >,
|
2599 + | ) -> Self {
|
2600 + | self.range_short_set_header = input.map(|v| v.into());
|
2601 + | self
|
2982 2602 | }
|
2983 - | }
|
2984 - | }
|
2985 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2986 - | pub(crate) mod query_params_targeting_map_of_pattern_string_operation_input_internal {
|
2987 - |
|
2988 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2989 - | /// Holds one variant for each of the ways the builder can fail.
|
2990 - | #[non_exhaustive]
|
2991 - | #[allow(clippy::enum_variant_names)]
|
2992 - | pub(crate) enum ConstraintViolation {
|
2993 - | /// Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
2994 - | #[doc(hidden)]
|
2995 - | MapOfPatternString(crate::model::map_of_pattern_string_internal::ConstraintViolation),
|
2996 - | }
|
2997 - | impl ::std::fmt::Display for ConstraintViolation {
|
2998 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2999 - | match self {
|
3000 - | ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
3001 - | }
|
2603 + | #[allow(missing_docs)] // documentation missing in model
|
2604 + | pub(crate) fn set_range_integer_set_header(
|
2605 + | mut self,
|
2606 + | input: Option<
|
2607 + | impl ::std::convert::Into<
|
2608 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
2609 + | >,
|
2610 + | >,
|
2611 + | ) -> Self {
|
2612 + | self.range_integer_set_header = input.map(|v| v.into());
|
2613 + | self
|
3002 2614 | }
|
3003 - | }
|
3004 - | impl ::std::error::Error for ConstraintViolation {}
|
3005 - | impl ConstraintViolation {
|
3006 - | pub(crate) fn as_validation_exception_field(
|
3007 - | self,
|
3008 - | path: ::std::string::String,
|
3009 - | ) -> crate::model::ValidationExceptionField {
|
3010 - | match self {
|
3011 - | ConstraintViolation::MapOfPatternString(inner) => {
|
3012 - | inner.as_validation_exception_field(path + "/mapOfPatternString")
|
3013 - | }
|
3014 - | }
|
2615 + | #[allow(missing_docs)] // documentation missing in model
|
2616 + | pub(crate) fn set_range_long_set_header(
|
2617 + | mut self,
|
2618 + | input: Option<
|
2619 + | impl ::std::convert::Into<
|
2620 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
2621 + | >,
|
2622 + | >,
|
2623 + | ) -> Self {
|
2624 + | self.range_long_set_header = input.map(|v| v.into());
|
2625 + | self
|
3015 2626 | }
|
3016 - | }
|
3017 - | impl ::std::convert::From<ConstraintViolation>
|
3018 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3019 - | {
|
3020 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3021 - | let first_validation_exception_field =
|
3022 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3023 - | let validation_exception = crate::error::ValidationException {
|
3024 - | message: format!(
|
3025 - | "1 validation error detected. {}",
|
3026 - | &first_validation_exception_field.message
|
3027 - | ),
|
3028 - | field_list: Some(vec![first_validation_exception_field]),
|
3029 - | };
|
3030 - | Self::ConstraintViolation(
|
3031 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3032 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3033 - | )
|
2627 + | #[allow(missing_docs)] // documentation missing in model
|
2628 + | pub(crate) fn set_range_byte_list_header(
|
2629 + | mut self,
|
2630 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
2631 + | ) -> Self {
|
2632 + | self.range_byte_list_header = input.map(|v| v.into());
|
2633 + | self
|
3034 2634 | }
|
3035 - | }
|
3036 - | impl ::std::convert::From<Builder>
|
3037 - | for crate::constrained::MaybeConstrained<
|
3038 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
3039 - | >
|
3040 - | {
|
3041 - | fn from(builder: Builder) -> Self {
|
3042 - | Self::Unconstrained(builder)
|
2635 + | #[allow(missing_docs)] // documentation missing in model
|
2636 + | pub(crate) fn set_range_short_list_header(
|
2637 + | mut self,
|
2638 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
2639 + | ) -> Self {
|
2640 + | self.range_short_list_header = input.map(|v| v.into());
|
2641 + | self
|
3043 2642 | }
|
3044 - | }
|
3045 - | impl ::std::convert::TryFrom<Builder>
|
3046 - | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
3047 - | {
|
3048 - | type Error = ConstraintViolation;
|
3049 - |
|
3050 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3051 - | builder.build()
|
2643 + | #[allow(missing_docs)] // documentation missing in model
|
2644 + | pub(crate) fn set_range_integer_list_header(
|
2645 + | mut self,
|
2646 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
2647 + | ) -> Self {
|
2648 + | self.range_integer_list_header = input.map(|v| v.into());
|
2649 + | self
|
3052 2650 | }
|
3053 - | }
|
3054 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3055 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3056 - | pub(crate) struct Builder {
|
3057 - | pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
3058 - | }
|
3059 - | impl Builder {
|
3060 2651 | #[allow(missing_docs)] // documentation missing in model
|
3061 - | pub(crate) fn set_map_of_pattern_string(
|
2652 + | pub(crate) fn set_range_long_list_header(
|
3062 2653 | mut self,
|
3063 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
|
2654 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
3064 2655 | ) -> Self {
|
3065 - | self.map_of_pattern_string = input.map(|v| v.into());
|
2656 + | self.range_long_list_header = input.map(|v| v.into());
|
3066 2657 | self
|
3067 2658 | }
|
3068 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3069 - | ///
|
3070 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3071 - | ///
|
3072 - | pub fn build(
|
3073 - | self,
|
3074 - | ) -> Result<
|
3075 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
3076 - | ConstraintViolation,
|
3077 - | > {
|
3078 - | self.build_enforcing_all_constraints()
|
2659 + | #[allow(missing_docs)] // documentation missing in model
|
2660 + | pub(crate) fn set_length_string_query(
|
2661 + | mut self,
|
2662 + | input: Option<
|
2663 + | impl ::std::convert::Into<
|
2664 + | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
2665 + | >,
|
2666 + | >,
|
2667 + | ) -> Self {
|
2668 + | self.length_string_query = input.map(|v| v.into());
|
2669 + | self
|
3079 2670 | }
|
3080 - | fn build_enforcing_all_constraints(
|
3081 - | self,
|
3082 - | ) -> Result<
|
3083 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
3084 - | ConstraintViolation,
|
3085 - | > {
|
3086 - | Ok(
|
3087 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3088 - | map_of_pattern_string: self
|
3089 - | .map_of_pattern_string
|
3090 - | .map(|v| match v {
|
3091 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3092 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3093 - | })
|
3094 - | .map(|res| {
|
3095 - | res.map(|v| v.into())
|
3096 - | .map_err(ConstraintViolation::MapOfPatternString)
|
3097 - | })
|
3098 - | .transpose()?,
|
3099 - | },
|
3100 - | )
|
2671 + | #[allow(missing_docs)] // documentation missing in model
|
2672 + | pub(crate) fn set_range_byte_query(
|
2673 + | mut self,
|
2674 + | input: impl ::std::convert::Into<
|
2675 + | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
2676 + | >,
|
2677 + | ) -> Self {
|
2678 + | self.range_byte_query = Some(input.into());
|
2679 + | self
|
3101 2680 | }
|
3102 - | }
|
3103 - | }
|
3104 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3105 - | pub mod query_params_targeting_map_of_pattern_string_operation_input {
|
3106 - |
|
3107 - | impl ::std::convert::From<Builder>
|
3108 - | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
3109 - | {
|
3110 - | fn from(builder: Builder) -> Self {
|
3111 - | builder.build()
|
2681 + | #[allow(missing_docs)] // documentation missing in model
|
2682 + | pub(crate) fn set_range_short_query(
|
2683 + | mut self,
|
2684 + | input: impl ::std::convert::Into<
|
2685 + | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
2686 + | >,
|
2687 + | ) -> Self {
|
2688 + | self.range_short_query = Some(input.into());
|
2689 + | self
|
3112 2690 | }
|
3113 - | }
|
3114 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3115 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3116 - | pub struct Builder {
|
3117 - | pub(crate) map_of_pattern_string: ::std::option::Option<
|
3118 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3119 - | >,
|
3120 - | }
|
3121 - | impl Builder {
|
3122 2691 | #[allow(missing_docs)] // documentation missing in model
|
3123 - | pub fn map_of_pattern_string(
|
2692 + | pub(crate) fn set_range_integer_query(
|
3124 2693 | mut self,
|
3125 - | input: ::std::option::Option<
|
3126 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2694 + | input: impl ::std::convert::Into<
|
2695 + | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
3127 2696 | >,
|
3128 2697 | ) -> Self {
|
3129 - | self.map_of_pattern_string = input;
|
2698 + | self.range_integer_query = Some(input.into());
|
3130 2699 | self
|
3131 2700 | }
|
3132 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3133 - | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3134 - | self.build_enforcing_required_and_enum_traits()
|
2701 + | #[allow(missing_docs)] // documentation missing in model
|
2702 + | pub(crate) fn set_range_long_query(
|
2703 + | mut self,
|
2704 + | input: impl ::std::convert::Into<
|
2705 + | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
2706 + | >,
|
2707 + | ) -> Self {
|
2708 + | self.range_long_query = Some(input.into());
|
2709 + | self
|
3135 2710 | }
|
3136 - | fn build_enforcing_required_and_enum_traits(
|
3137 - | self,
|
3138 - | ) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3139 - | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3140 - | map_of_pattern_string: self.map_of_pattern_string,
|
3141 - | }
|
2711 + | #[allow(missing_docs)] // documentation missing in model
|
2712 + | pub(crate) fn set_enum_string_query(
|
2713 + | mut self,
|
2714 + | input: Option<
|
2715 + | impl ::std::convert::Into<
|
2716 + | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
2717 + | >,
|
2718 + | >,
|
2719 + | ) -> Self {
|
2720 + | self.enum_string_query = input.map(|v| v.into());
|
2721 + | self
|
3142 2722 | }
|
3143 - | }
|
3144 - | }
|
3145 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3146 - | pub(crate) mod query_params_targeting_map_of_list_of_enum_string_operation_input_internal {
|
3147 - |
|
3148 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3149 - | /// Holds one variant for each of the ways the builder can fail.
|
3150 - | #[non_exhaustive]
|
3151 - | #[allow(clippy::enum_variant_names)]
|
3152 - | pub(crate) enum ConstraintViolation {
|
3153 - | /// Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
3154 - | #[doc(hidden)]
|
3155 - | MapOfListOfEnumString(
|
3156 - | crate::model::map_of_list_of_enum_string_internal::ConstraintViolation,
|
3157 - | ),
|
3158 - | }
|
3159 - | impl ::std::fmt::Display for ConstraintViolation {
|
3160 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3161 - | match self {
|
3162 - | ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
3163 - | }
|
2723 + | #[allow(missing_docs)] // documentation missing in model
|
2724 + | pub(crate) fn set_length_string_list_query(
|
2725 + | mut self,
|
2726 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
2727 + | ) -> Self {
|
2728 + | self.length_string_list_query = input.map(|v| v.into());
|
2729 + | self
|
3164 2730 | }
|
3165 - | }
|
3166 - | impl ::std::error::Error for ConstraintViolation {}
|
3167 - | impl ConstraintViolation {
|
3168 - | pub(crate) fn as_validation_exception_field(
|
3169 - | self,
|
3170 - | path: ::std::string::String,
|
3171 - | ) -> crate::model::ValidationExceptionField {
|
3172 - | match self {
|
3173 - | ConstraintViolation::MapOfListOfEnumString(inner) => {
|
3174 - | inner.as_validation_exception_field(path + "/mapOfListOfEnumString")
|
3175 - | }
|
3176 - | }
|
2731 + | #[allow(missing_docs)] // documentation missing in model
|
2732 + | pub(crate) fn set_length_list_pattern_string_query(
|
2733 + | mut self,
|
2734 + | input: Option<
|
2735 + | impl ::std::convert::Into<
|
2736 + | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
2737 + | >,
|
2738 + | >,
|
2739 + | ) -> Self {
|
2740 + | self.length_list_pattern_string_query = input.map(|v| v.into());
|
2741 + | self
|
3177 2742 | }
|
3178 - | }
|
3179 - | impl ::std::convert::From<ConstraintViolation>
|
3180 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3181 - | {
|
3182 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3183 - | let first_validation_exception_field =
|
3184 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3185 - | let validation_exception = crate::error::ValidationException {
|
3186 - | message: format!(
|
3187 - | "1 validation error detected. {}",
|
3188 - | &first_validation_exception_field.message
|
3189 - | ),
|
3190 - | field_list: Some(vec![first_validation_exception_field]),
|
3191 - | };
|
3192 - | Self::ConstraintViolation(
|
3193 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3194 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3195 - | )
|
2743 + | #[allow(missing_docs)] // documentation missing in model
|
2744 + | pub(crate) fn set_length_string_set_query(
|
2745 + | mut self,
|
2746 + | input: Option<
|
2747 + | impl ::std::convert::Into<
|
2748 + | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
2749 + | >,
|
2750 + | >,
|
2751 + | ) -> Self {
|
2752 + | self.length_string_set_query = input.map(|v| v.into());
|
2753 + | self
|
3196 2754 | }
|
3197 - | }
|
3198 - | impl ::std::convert::From<Builder>
|
3199 - | for crate::constrained::MaybeConstrained<
|
3200 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
3201 - | >
|
3202 - | {
|
3203 - | fn from(builder: Builder) -> Self {
|
3204 - | Self::Unconstrained(builder)
|
2755 + | #[allow(missing_docs)] // documentation missing in model
|
2756 + | pub(crate) fn set_range_byte_list_query(
|
2757 + | mut self,
|
2758 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
2759 + | ) -> Self {
|
2760 + | self.range_byte_list_query = input.map(|v| v.into());
|
2761 + | self
|
3205 2762 | }
|
3206 - | }
|
3207 - | impl ::std::convert::TryFrom<Builder>
|
3208 - | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
3209 - | {
|
3210 - | type Error = ConstraintViolation;
|
3211 - |
|
3212 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3213 - | builder.build()
|
2763 + | #[allow(missing_docs)] // documentation missing in model
|
2764 + | pub(crate) fn set_range_short_list_query(
|
2765 + | mut self,
|
2766 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
2767 + | ) -> Self {
|
2768 + | self.range_short_list_query = input.map(|v| v.into());
|
2769 + | self
|
3214 2770 | }
|
3215 - | }
|
3216 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3217 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3218 - | pub(crate) struct Builder {
|
3219 - | pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
|
3220 - | }
|
3221 - | impl Builder {
|
3222 2771 | #[allow(missing_docs)] // documentation missing in model
|
3223 - | pub(crate) fn set_map_of_list_of_enum_string(
|
2772 + | pub(crate) fn set_range_integer_list_query(
|
3224 2773 | mut self,
|
3225 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>>,
|
2774 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
3226 2775 | ) -> Self {
|
3227 - | self.map_of_list_of_enum_string = input.map(|v| v.into());
|
2776 + | self.range_integer_list_query = input.map(|v| v.into());
|
3228 2777 | self
|
3229 2778 | }
|
3230 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3231 - | ///
|
3232 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3233 - | ///
|
3234 - | pub fn build(
|
3235 - | self,
|
3236 - | ) -> Result<
|
3237 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
3238 - | ConstraintViolation,
|
3239 - | > {
|
3240 - | self.build_enforcing_all_constraints()
|
2779 + | #[allow(missing_docs)] // documentation missing in model
|
2780 + | pub(crate) fn set_range_long_list_query(
|
2781 + | mut self,
|
2782 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
2783 + | ) -> Self {
|
2784 + | self.range_long_list_query = input.map(|v| v.into());
|
2785 + | self
|
3241 2786 | }
|
3242 - | fn build_enforcing_all_constraints(
|
3243 - | self,
|
3244 - | ) -> Result<
|
3245 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
3246 - | ConstraintViolation,
|
3247 - | > {
|
3248 - | Ok(
|
3249 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3250 - | map_of_list_of_enum_string: self
|
3251 - | .map_of_list_of_enum_string
|
3252 - | .map(|v| match v {
|
3253 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3254 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3255 - | })
|
3256 - | .map(|res| {
|
3257 - | res.map(|v| v.into())
|
3258 - | .map_err(ConstraintViolation::MapOfListOfEnumString)
|
3259 - | })
|
3260 - | .transpose()?,
|
3261 - | },
|
3262 - | )
|
2787 + | #[allow(missing_docs)] // documentation missing in model
|
2788 + | pub(crate) fn set_range_byte_set_query(
|
2789 + | mut self,
|
2790 + | input: Option<
|
2791 + | impl ::std::convert::Into<
|
2792 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
2793 + | >,
|
2794 + | >,
|
2795 + | ) -> Self {
|
2796 + | self.range_byte_set_query = input.map(|v| v.into());
|
2797 + | self
|
3263 2798 | }
|
3264 - | }
|
3265 - | }
|
3266 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3267 - | pub mod query_params_targeting_map_of_list_of_enum_string_operation_input {
|
3268 - |
|
3269 - | impl ::std::convert::From<Builder>
|
3270 - | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
3271 - | {
|
3272 - | fn from(builder: Builder) -> Self {
|
3273 - | builder.build()
|
2799 + | #[allow(missing_docs)] // documentation missing in model
|
2800 + | pub(crate) fn set_range_short_set_query(
|
2801 + | mut self,
|
2802 + | input: Option<
|
2803 + | impl ::std::convert::Into<
|
2804 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
2805 + | >,
|
2806 + | >,
|
2807 + | ) -> Self {
|
2808 + | self.range_short_set_query = input.map(|v| v.into());
|
2809 + | self
|
3274 2810 | }
|
3275 - | }
|
3276 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3277 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3278 - | pub struct Builder {
|
3279 - | pub(crate) map_of_list_of_enum_string: ::std::option::Option<
|
3280 - | ::std::collections::HashMap<
|
3281 - | crate::model::EnumString,
|
3282 - | ::std::vec::Vec<crate::model::EnumString>,
|
2811 + | #[allow(missing_docs)] // documentation missing in model
|
2812 + | pub(crate) fn set_range_integer_set_query(
|
2813 + | mut self,
|
2814 + | input: Option<
|
2815 + | impl ::std::convert::Into<
|
2816 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
2817 + | >,
|
3283 2818 | >,
|
3284 - | >,
|
3285 - | }
|
3286 - | impl Builder {
|
2819 + | ) -> Self {
|
2820 + | self.range_integer_set_query = input.map(|v| v.into());
|
2821 + | self
|
2822 + | }
|
3287 2823 | #[allow(missing_docs)] // documentation missing in model
|
3288 - | pub fn map_of_list_of_enum_string(
|
2824 + | pub(crate) fn set_range_long_set_query(
|
3289 2825 | mut self,
|
3290 - | input: ::std::option::Option<
|
3291 - | ::std::collections::HashMap<
|
3292 - | crate::model::EnumString,
|
3293 - | ::std::vec::Vec<crate::model::EnumString>,
|
2826 + | input: Option<
|
2827 + | impl ::std::convert::Into<
|
2828 + | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
3294 2829 | >,
|
3295 2830 | >,
|
3296 2831 | ) -> Self {
|
3297 - | self.map_of_list_of_enum_string = input;
|
2832 + | self.range_long_set_query = input.map(|v| v.into());
|
3298 2833 | self
|
3299 2834 | }
|
3300 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3301 - | pub fn build(
|
3302 - | self,
|
3303 - | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3304 - | self.build_enforcing_required_and_enum_traits()
|
2835 + | #[allow(missing_docs)] // documentation missing in model
|
2836 + | pub(crate) fn set_enum_string_list_query(
|
2837 + | mut self,
|
2838 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>>,
|
2839 + | ) -> Self {
|
2840 + | self.enum_string_list_query = input.map(|v| v.into());
|
2841 + | self
|
3305 2842 | }
|
3306 - | fn build_enforcing_required_and_enum_traits(
|
2843 + | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2844 + | ///
|
2845 + | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
2846 + | ///
|
2847 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
2848 + | pub fn build(
|
3307 2849 | self,
|
3308 - | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3309 - | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3310 - | map_of_list_of_enum_string: self.map_of_list_of_enum_string,
|
3311 - | }
|
3312 - | }
|
3313 - | }
|
3314 - | }
|
3315 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3316 - | pub(crate) mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal {
|
3317 - |
|
3318 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3319 - | /// Holds one variant for each of the ways the builder can fail.
|
3320 - | #[non_exhaustive]
|
3321 - | #[allow(clippy::enum_variant_names)]
|
3322 - | pub(crate) enum ConstraintViolation {
|
3323 - | /// Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
3324 - | #[doc(hidden)]
|
3325 - | MapOfLengthListOfPatternString(
|
3326 - | crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation,
|
3327 - | ),
|
3328 - | }
|
3329 - | impl ::std::fmt::Display for ConstraintViolation {
|
3330 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3331 - | match self {
|
3332 - | ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
3333 - | }
|
2850 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
2851 + | {
|
2852 + | self.build_enforcing_all_constraints()
|
3334 2853 | }
|
3335 - | }
|
3336 - | impl ::std::error::Error for ConstraintViolation {}
|
3337 - | impl ConstraintViolation {
|
3338 - | pub(crate) fn as_validation_exception_field(
|
2854 + | fn build_enforcing_all_constraints(
|
3339 2855 | self,
|
3340 - | path: ::std::string::String,
|
3341 - | ) -> crate::model::ValidationExceptionField {
|
3342 - | match self {
|
3343 - | ConstraintViolation::MapOfLengthListOfPatternString(inner) => {
|
3344 - | inner.as_validation_exception_field(path + "/mapOfLengthListOfPatternString")
|
3345 - | }
|
3346 - | }
|
3347 - | }
|
3348 - | }
|
3349 - | impl ::std::convert::From<ConstraintViolation>
|
3350 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3351 - | {
|
3352 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3353 - | let first_validation_exception_field =
|
3354 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3355 - | let validation_exception = crate::error::ValidationException {
|
3356 - | message: format!(
|
3357 - | "1 validation error detected. {}",
|
3358 - | &first_validation_exception_field.message
|
3359 - | ),
|
3360 - | field_list: Some(vec![first_validation_exception_field]),
|
3361 - | };
|
3362 - | Self::ConstraintViolation(
|
3363 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3364 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3365 - | )
|
3366 - | }
|
3367 - | }
|
3368 - | impl ::std::convert::From<Builder>
|
3369 - | for crate::constrained::MaybeConstrained<
|
3370 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3371 - | >
|
3372 - | {
|
3373 - | fn from(builder: Builder) -> Self {
|
3374 - | Self::Unconstrained(builder)
|
3375 - | }
|
3376 - | }
|
3377 - | impl ::std::convert::TryFrom<Builder>
|
3378 - | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3379 - | {
|
3380 - | type Error = ConstraintViolation;
|
3381 - |
|
3382 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3383 - | builder.build()
|
3384 - | }
|
3385 - | }
|
3386 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3387 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3388 - | pub(crate) struct Builder {
|
3389 - | 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>>,
|
3390 - | }
|
3391 - | impl Builder {
|
3392 - | #[allow(missing_docs)] // documentation missing in model
|
3393 - | pub(crate) fn set_map_of_length_list_of_pattern_string(
|
3394 - | mut self,
|
3395 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>>,
|
3396 - | ) -> Self {
|
3397 - | self.map_of_length_list_of_pattern_string = input.map(|v| v.into());
|
3398 - | self
|
3399 - | }
|
3400 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3401 - | ///
|
3402 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3403 - | ///
|
3404 - | pub fn build(
|
3405 - | self,
|
3406 - | ) -> Result<
|
3407 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3408 - | ConstraintViolation,
|
3409 - | > {
|
3410 - | self.build_enforcing_all_constraints()
|
3411 - | }
|
3412 - | fn build_enforcing_all_constraints(
|
3413 - | self,
|
3414 - | ) -> Result<
|
3415 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
3416 - | ConstraintViolation,
|
3417 - | > {
|
3418 - | Ok(
|
3419 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
3420 - | map_of_length_list_of_pattern_string: self
|
3421 - | .map_of_length_list_of_pattern_string
|
3422 - | .map(|v| match v {
|
3423 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3424 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3425 - | })
|
3426 - | .map(|res| {
|
3427 - | res.map(|v| v.into())
|
3428 - | .map_err(ConstraintViolation::MapOfLengthListOfPatternString)
|
3429 - | })
|
3430 - | .transpose()?,
|
3431 - | },
|
3432 - | )
|
3433 - | }
|
3434 - | }
|
3435 - | }
|
3436 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3437 - | pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input {
|
3438 - |
|
3439 - | impl ::std::convert::From<Builder>
|
3440 - | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3441 - | {
|
3442 - | fn from(builder: Builder) -> Self {
|
3443 - | builder.build()
|
3444 - | }
|
3445 - | }
|
3446 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3447 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3448 - | pub struct Builder {
|
3449 - | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<
|
3450 - | ::std::collections::HashMap<
|
3451 - | ::std::string::String,
|
3452 - | ::std::vec::Vec<::std::string::String>,
|
3453 - | >,
|
3454 - | >,
|
3455 - | }
|
3456 - | impl Builder {
|
3457 - | #[allow(missing_docs)] // documentation missing in model
|
3458 - | pub fn map_of_length_list_of_pattern_string(
|
3459 - | mut self,
|
3460 - | input: ::std::option::Option<
|
3461 - | ::std::collections::HashMap<
|
3462 - | ::std::string::String,
|
3463 - | ::std::vec::Vec<::std::string::String>,
|
3464 - | >,
|
3465 - | >,
|
3466 - | ) -> Self {
|
3467 - | self.map_of_length_list_of_pattern_string = input;
|
3468 - | self
|
3469 - | }
|
3470 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3471 - | pub fn build(
|
3472 - | self,
|
3473 - | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3474 - | {
|
3475 - | self.build_enforcing_required_and_enum_traits()
|
3476 - | }
|
3477 - | fn build_enforcing_required_and_enum_traits(
|
3478 - | self,
|
3479 - | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
3480 - | {
|
3481 - | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
3482 - | map_of_length_list_of_pattern_string: self.map_of_length_list_of_pattern_string,
|
3483 - | }
|
3484 - | }
|
3485 - | }
|
3486 - | }
|
3487 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3488 - | pub(crate) mod query_params_targeting_map_of_set_of_length_string_operation_input_internal {
|
3489 - |
|
3490 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3491 - | /// Holds one variant for each of the ways the builder can fail.
|
3492 - | #[non_exhaustive]
|
3493 - | #[allow(clippy::enum_variant_names)]
|
3494 - | pub(crate) enum ConstraintViolation {
|
3495 - | /// Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
3496 - | #[doc(hidden)]
|
3497 - | MapOfSetOfLengthString(
|
3498 - | crate::model::map_of_set_of_length_string_internal::ConstraintViolation,
|
3499 - | ),
|
3500 - | }
|
3501 - | impl ::std::fmt::Display for ConstraintViolation {
|
3502 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3503 - | match self {
|
3504 - | ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
3505 - | }
|
3506 - | }
|
3507 - | }
|
3508 - | impl ::std::error::Error for ConstraintViolation {}
|
3509 - | impl ConstraintViolation {
|
3510 - | pub(crate) fn as_validation_exception_field(
|
3511 - | self,
|
3512 - | path: ::std::string::String,
|
3513 - | ) -> crate::model::ValidationExceptionField {
|
3514 - | match self {
|
3515 - | ConstraintViolation::MapOfSetOfLengthString(inner) => {
|
3516 - | inner.as_validation_exception_field(path + "/mapOfSetOfLengthString")
|
3517 - | }
|
3518 - | }
|
3519 - | }
|
3520 - | }
|
3521 - | impl ::std::convert::From<ConstraintViolation>
|
3522 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3523 - | {
|
3524 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3525 - | let first_validation_exception_field =
|
3526 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3527 - | let validation_exception = crate::error::ValidationException {
|
3528 - | message: format!(
|
3529 - | "1 validation error detected. {}",
|
3530 - | &first_validation_exception_field.message
|
3531 - | ),
|
3532 - | field_list: Some(vec![first_validation_exception_field]),
|
3533 - | };
|
3534 - | Self::ConstraintViolation(
|
3535 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3536 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3537 - | )
|
3538 - | }
|
3539 - | }
|
3540 - | impl ::std::convert::From<Builder>
|
3541 - | for crate::constrained::MaybeConstrained<
|
3542 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3543 - | >
|
3544 - | {
|
3545 - | fn from(builder: Builder) -> Self {
|
3546 - | Self::Unconstrained(builder)
|
3547 - | }
|
3548 - | }
|
3549 - | impl ::std::convert::TryFrom<Builder>
|
3550 - | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
3551 - | {
|
3552 - | type Error = ConstraintViolation;
|
3553 - |
|
3554 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3555 - | builder.build()
|
3556 - | }
|
3557 - | }
|
3558 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3559 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3560 - | pub(crate) struct Builder {
|
3561 - | pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
|
3562 - | }
|
3563 - | impl Builder {
|
3564 - | #[allow(missing_docs)] // documentation missing in model
|
3565 - | pub(crate) fn set_map_of_set_of_length_string(
|
3566 - | mut self,
|
3567 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>>,
|
3568 - | ) -> Self {
|
3569 - | self.map_of_set_of_length_string = input.map(|v| v.into());
|
3570 - | self
|
3571 - | }
|
3572 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3573 - | ///
|
3574 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3575 - | ///
|
3576 - | pub fn build(
|
3577 - | self,
|
3578 - | ) -> Result<
|
3579 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3580 - | ConstraintViolation,
|
3581 - | > {
|
3582 - | self.build_enforcing_all_constraints()
|
3583 - | }
|
3584 - | fn build_enforcing_all_constraints(
|
3585 - | self,
|
3586 - | ) -> Result<
|
3587 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
3588 - | ConstraintViolation,
|
3589 - | > {
|
3590 - | Ok(
|
3591 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3592 - | map_of_set_of_length_string: self
|
3593 - | .map_of_set_of_length_string
|
3594 - | .map(|v| match v {
|
3595 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3596 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3597 - | })
|
3598 - | .map(|res| {
|
3599 - | res.map(|v| v.into())
|
3600 - | .map_err(ConstraintViolation::MapOfSetOfLengthString)
|
3601 - | })
|
3602 - | .transpose()?,
|
3603 - | },
|
3604 - | )
|
3605 - | }
|
3606 - | }
|
3607 - | }
|
3608 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3609 - | pub mod query_params_targeting_map_of_set_of_length_string_operation_input {
|
3610 - |
|
3611 - | impl ::std::convert::From<Builder>
|
3612 - | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
3613 - | {
|
3614 - | fn from(builder: Builder) -> Self {
|
3615 - | builder.build()
|
3616 - | }
|
3617 - | }
|
3618 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3619 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3620 - | pub struct Builder {
|
3621 - | pub(crate) map_of_set_of_length_string: ::std::option::Option<
|
3622 - | ::std::collections::HashMap<
|
3623 - | ::std::string::String,
|
3624 - | ::std::vec::Vec<::std::string::String>,
|
3625 - | >,
|
3626 - | >,
|
3627 - | }
|
3628 - | impl Builder {
|
3629 - | #[allow(missing_docs)] // documentation missing in model
|
3630 - | pub fn map_of_set_of_length_string(
|
3631 - | mut self,
|
3632 - | input: ::std::option::Option<
|
3633 - | ::std::collections::HashMap<
|
3634 - | ::std::string::String,
|
3635 - | ::std::vec::Vec<::std::string::String>,
|
3636 - | >,
|
3637 - | >,
|
3638 - | ) -> Self {
|
3639 - | self.map_of_set_of_length_string = input;
|
3640 - | self
|
3641 - | }
|
3642 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3643 - | pub fn build(
|
3644 - | self,
|
3645 - | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3646 - | self.build_enforcing_required_and_enum_traits()
|
3647 - | }
|
3648 - | fn build_enforcing_required_and_enum_traits(
|
3649 - | self,
|
3650 - | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3651 - | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3652 - | map_of_set_of_length_string: self.map_of_set_of_length_string,
|
3653 - | }
|
3654 - | }
|
3655 - | }
|
3656 - | }
|
3657 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3658 - | pub(crate) mod query_params_targeting_map_of_list_of_length_string_operation_input_internal {
|
3659 - |
|
3660 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3661 - | /// Holds one variant for each of the ways the builder can fail.
|
3662 - | #[non_exhaustive]
|
3663 - | #[allow(clippy::enum_variant_names)]
|
3664 - | pub(crate) enum ConstraintViolation {
|
3665 - | /// Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
3666 - | #[doc(hidden)]
|
3667 - | MapOfListOfLengthString(
|
3668 - | crate::model::map_of_list_of_length_string_internal::ConstraintViolation,
|
3669 - | ),
|
3670 - | }
|
3671 - | impl ::std::fmt::Display for ConstraintViolation {
|
3672 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3673 - | match self {
|
3674 - | ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
3675 - | }
|
3676 - | }
|
3677 - | }
|
3678 - | impl ::std::error::Error for ConstraintViolation {}
|
3679 - | impl ConstraintViolation {
|
3680 - | pub(crate) fn as_validation_exception_field(
|
3681 - | self,
|
3682 - | path: ::std::string::String,
|
3683 - | ) -> crate::model::ValidationExceptionField {
|
3684 - | match self {
|
3685 - | ConstraintViolation::MapOfListOfLengthString(inner) => {
|
3686 - | inner.as_validation_exception_field(path + "/mapOfListOfLengthString")
|
3687 - | }
|
3688 - | }
|
3689 - | }
|
3690 - | }
|
3691 - | impl ::std::convert::From<ConstraintViolation>
|
3692 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3693 - | {
|
3694 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3695 - | let first_validation_exception_field =
|
3696 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3697 - | let validation_exception = crate::error::ValidationException {
|
3698 - | message: format!(
|
3699 - | "1 validation error detected. {}",
|
3700 - | &first_validation_exception_field.message
|
3701 - | ),
|
3702 - | field_list: Some(vec![first_validation_exception_field]),
|
3703 - | };
|
3704 - | Self::ConstraintViolation(
|
3705 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3706 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3707 - | )
|
3708 - | }
|
3709 - | }
|
3710 - | impl ::std::convert::From<Builder>
|
3711 - | for crate::constrained::MaybeConstrained<
|
3712 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3713 - | >
|
3714 - | {
|
3715 - | fn from(builder: Builder) -> Self {
|
3716 - | Self::Unconstrained(builder)
|
3717 - | }
|
3718 - | }
|
3719 - | impl ::std::convert::TryFrom<Builder>
|
3720 - | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
3721 - | {
|
3722 - | type Error = ConstraintViolation;
|
3723 - |
|
3724 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3725 - | builder.build()
|
3726 - | }
|
3727 - | }
|
3728 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3729 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3730 - | pub(crate) struct Builder {
|
3731 - | pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
|
3732 - | }
|
3733 - | impl Builder {
|
3734 - | #[allow(missing_docs)] // documentation missing in model
|
3735 - | pub(crate) fn set_map_of_list_of_length_string(
|
3736 - | mut self,
|
3737 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>>,
|
3738 - | ) -> Self {
|
3739 - | self.map_of_list_of_length_string = input.map(|v| v.into());
|
3740 - | self
|
3741 - | }
|
3742 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3743 - | ///
|
3744 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3745 - | ///
|
3746 - | pub fn build(
|
3747 - | self,
|
3748 - | ) -> Result<
|
3749 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3750 - | ConstraintViolation,
|
3751 - | > {
|
3752 - | self.build_enforcing_all_constraints()
|
3753 - | }
|
3754 - | fn build_enforcing_all_constraints(
|
3755 - | self,
|
3756 - | ) -> Result<
|
3757 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
3758 - | ConstraintViolation,
|
3759 - | > {
|
3760 - | Ok(
|
3761 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3762 - | map_of_list_of_length_string: self
|
3763 - | .map_of_list_of_length_string
|
3764 - | .map(|v| match v {
|
3765 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3766 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3767 - | })
|
3768 - | .map(|res| {
|
3769 - | res.map(|v| v.into())
|
3770 - | .map_err(ConstraintViolation::MapOfListOfLengthString)
|
3771 - | })
|
3772 - | .transpose()?,
|
3773 - | },
|
3774 - | )
|
3775 - | }
|
3776 - | }
|
3777 - | }
|
3778 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3779 - | pub mod query_params_targeting_map_of_list_of_length_string_operation_input {
|
3780 - |
|
3781 - | impl ::std::convert::From<Builder>
|
3782 - | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
3783 - | {
|
3784 - | fn from(builder: Builder) -> Self {
|
3785 - | builder.build()
|
3786 - | }
|
3787 - | }
|
3788 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3789 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3790 - | pub struct Builder {
|
3791 - | pub(crate) map_of_list_of_length_string: ::std::option::Option<
|
3792 - | ::std::collections::HashMap<
|
3793 - | ::std::string::String,
|
3794 - | ::std::vec::Vec<::std::string::String>,
|
3795 - | >,
|
3796 - | >,
|
3797 - | }
|
3798 - | impl Builder {
|
3799 - | #[allow(missing_docs)] // documentation missing in model
|
3800 - | pub fn map_of_list_of_length_string(
|
3801 - | mut self,
|
3802 - | input: ::std::option::Option<
|
3803 - | ::std::collections::HashMap<
|
3804 - | ::std::string::String,
|
3805 - | ::std::vec::Vec<::std::string::String>,
|
3806 - | >,
|
3807 - | >,
|
3808 - | ) -> Self {
|
3809 - | self.map_of_list_of_length_string = input;
|
3810 - | self
|
3811 - | }
|
3812 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3813 - | pub fn build(
|
3814 - | self,
|
3815 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3816 - | self.build_enforcing_required_and_enum_traits()
|
3817 - | }
|
3818 - | fn build_enforcing_required_and_enum_traits(
|
3819 - | self,
|
3820 - | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3821 - | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3822 - | map_of_list_of_length_string: self.map_of_list_of_length_string,
|
3823 - | }
|
3824 - | }
|
3825 - | }
|
3826 - | }
|
3827 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3828 - | pub(crate) mod query_params_targeting_map_of_length_string_operation_input_internal {
|
3829 - |
|
3830 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3831 - | /// Holds one variant for each of the ways the builder can fail.
|
3832 - | #[non_exhaustive]
|
3833 - | #[allow(clippy::enum_variant_names)]
|
3834 - | pub(crate) enum ConstraintViolation {
|
3835 - | /// Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
3836 - | #[doc(hidden)]
|
3837 - | MapOfLengthString(crate::model::map_of_length_string_internal::ConstraintViolation),
|
3838 - | }
|
3839 - | impl ::std::fmt::Display for ConstraintViolation {
|
3840 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3841 - | match self {
|
3842 - | ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
3843 - | }
|
3844 - | }
|
3845 - | }
|
3846 - | impl ::std::error::Error for ConstraintViolation {}
|
3847 - | impl ConstraintViolation {
|
3848 - | pub(crate) fn as_validation_exception_field(
|
3849 - | self,
|
3850 - | path: ::std::string::String,
|
3851 - | ) -> crate::model::ValidationExceptionField {
|
3852 - | match self {
|
3853 - | ConstraintViolation::MapOfLengthString(inner) => {
|
3854 - | inner.as_validation_exception_field(path + "/mapOfLengthString")
|
3855 - | }
|
3856 - | }
|
3857 - | }
|
3858 - | }
|
3859 - | impl ::std::convert::From<ConstraintViolation>
|
3860 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3861 - | {
|
3862 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3863 - | let first_validation_exception_field =
|
3864 - | constraint_violation.as_validation_exception_field("".to_owned());
|
3865 - | let validation_exception = crate::error::ValidationException {
|
3866 - | message: format!(
|
3867 - | "1 validation error detected. {}",
|
3868 - | &first_validation_exception_field.message
|
3869 - | ),
|
3870 - | field_list: Some(vec![first_validation_exception_field]),
|
3871 - | };
|
3872 - | Self::ConstraintViolation(
|
3873 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3874 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3875 - | )
|
3876 - | }
|
3877 - | }
|
3878 - | impl ::std::convert::From<Builder>
|
3879 - | for crate::constrained::MaybeConstrained<
|
3880 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3881 - | >
|
3882 - | {
|
3883 - | fn from(builder: Builder) -> Self {
|
3884 - | Self::Unconstrained(builder)
|
3885 - | }
|
3886 - | }
|
3887 - | impl ::std::convert::TryFrom<Builder>
|
3888 - | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
3889 - | {
|
3890 - | type Error = ConstraintViolation;
|
3891 - |
|
3892 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3893 - | builder.build()
|
3894 - | }
|
3895 - | }
|
3896 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3897 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3898 - | pub(crate) struct Builder {
|
3899 - | pub(crate) map_of_length_string: ::std::option::Option<
|
3900 - | crate::constrained::MaybeConstrained<
|
3901 - | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
3902 - | >,
|
3903 - | >,
|
3904 - | }
|
3905 - | impl Builder {
|
3906 - | #[allow(missing_docs)] // documentation missing in model
|
3907 - | pub(crate) fn set_map_of_length_string(
|
3908 - | mut self,
|
3909 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
|
3910 - | ) -> Self {
|
3911 - | self.map_of_length_string = input.map(|v| v.into());
|
3912 - | self
|
3913 - | }
|
3914 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3915 - | ///
|
3916 - | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
3917 - | ///
|
3918 - | pub fn build(
|
3919 - | self,
|
3920 - | ) -> Result<
|
3921 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3922 - | ConstraintViolation,
|
3923 - | > {
|
3924 - | self.build_enforcing_all_constraints()
|
3925 - | }
|
3926 - | fn build_enforcing_all_constraints(
|
3927 - | self,
|
3928 - | ) -> Result<
|
3929 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
3930 - | ConstraintViolation,
|
3931 - | > {
|
3932 - | Ok(
|
3933 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3934 - | map_of_length_string: self
|
3935 - | .map_of_length_string
|
3936 - | .map(|v| match v {
|
3937 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3938 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3939 - | })
|
3940 - | .map(|res| {
|
3941 - | res.map(|v| v.into())
|
3942 - | .map_err(ConstraintViolation::MapOfLengthString)
|
3943 - | })
|
3944 - | .transpose()?,
|
3945 - | },
|
3946 - | )
|
3947 - | }
|
3948 - | }
|
3949 - | }
|
3950 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3951 - | pub mod query_params_targeting_map_of_length_string_operation_input {
|
3952 - |
|
3953 - | impl ::std::convert::From<Builder>
|
3954 - | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
3955 - | {
|
3956 - | fn from(builder: Builder) -> Self {
|
3957 - | builder.build()
|
3958 - | }
|
3959 - | }
|
3960 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3961 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3962 - | pub struct Builder {
|
3963 - | pub(crate) map_of_length_string: ::std::option::Option<
|
3964 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3965 - | >,
|
3966 - | }
|
3967 - | impl Builder {
|
3968 - | #[allow(missing_docs)] // documentation missing in model
|
3969 - | pub fn map_of_length_string(
|
3970 - | mut self,
|
3971 - | input: ::std::option::Option<
|
3972 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3973 - | >,
|
3974 - | ) -> Self {
|
3975 - | self.map_of_length_string = input;
|
3976 - | self
|
3977 - | }
|
3978 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3979 - | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3980 - | self.build_enforcing_required_and_enum_traits()
|
3981 - | }
|
3982 - | fn build_enforcing_required_and_enum_traits(
|
3983 - | self,
|
3984 - | ) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3985 - | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3986 - | map_of_length_string: self.map_of_length_string,
|
3987 - | }
|
3988 - | }
|
3989 - | }
|
3990 - | }
|
3991 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3992 - | pub(crate) mod query_params_targeting_length_map_operation_input_internal {
|
3993 - |
|
3994 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3995 - | /// Holds one variant for each of the ways the builder can fail.
|
3996 - | #[non_exhaustive]
|
3997 - | #[allow(clippy::enum_variant_names)]
|
3998 - | pub(crate) enum ConstraintViolation {
|
3999 - | /// Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
4000 - | #[doc(hidden)]
|
4001 - | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
4002 - | }
|
4003 - | impl ::std::fmt::Display for ConstraintViolation {
|
4004 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4005 - | match self {
|
4006 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
4007 - | }
|
4008 - | }
|
4009 - | }
|
4010 - | impl ::std::error::Error for ConstraintViolation {}
|
4011 - | impl ConstraintViolation {
|
4012 - | pub(crate) fn as_validation_exception_field(
|
4013 - | self,
|
4014 - | path: ::std::string::String,
|
4015 - | ) -> crate::model::ValidationExceptionField {
|
4016 - | match self {
|
4017 - | ConstraintViolation::LengthMap(inner) => {
|
4018 - | inner.as_validation_exception_field(path + "/lengthMap")
|
4019 - | }
|
4020 - | }
|
4021 - | }
|
4022 - | }
|
4023 - | impl ::std::convert::From<ConstraintViolation>
|
4024 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4025 - | {
|
4026 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4027 - | let first_validation_exception_field =
|
4028 - | constraint_violation.as_validation_exception_field("".to_owned());
|
4029 - | let validation_exception = crate::error::ValidationException {
|
4030 - | message: format!(
|
4031 - | "1 validation error detected. {}",
|
4032 - | &first_validation_exception_field.message
|
4033 - | ),
|
4034 - | field_list: Some(vec![first_validation_exception_field]),
|
4035 - | };
|
4036 - | Self::ConstraintViolation(
|
4037 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4038 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4039 - | )
|
4040 - | }
|
4041 - | }
|
4042 - | impl ::std::convert::From<Builder>
|
4043 - | for crate::constrained::MaybeConstrained<
|
4044 - | crate::input::QueryParamsTargetingLengthMapOperationInput,
|
4045 - | >
|
4046 - | {
|
4047 - | fn from(builder: Builder) -> Self {
|
4048 - | Self::Unconstrained(builder)
|
4049 - | }
|
4050 - | }
|
4051 - | impl ::std::convert::TryFrom<Builder>
|
4052 - | for crate::input::QueryParamsTargetingLengthMapOperationInput
|
4053 - | {
|
4054 - | type Error = ConstraintViolation;
|
4055 - |
|
4056 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4057 - | builder.build()
|
4058 - | }
|
4059 - | }
|
4060 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4061 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4062 - | pub(crate) struct Builder {
|
4063 - | pub(crate) length_map:
|
4064 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4065 - | }
|
4066 - | impl Builder {
|
4067 - | #[allow(missing_docs)] // documentation missing in model
|
4068 - | pub(crate) fn set_length_map(
|
4069 - | mut self,
|
4070 - | input: Option<
|
4071 - | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4072 - | >,
|
4073 - | ) -> Self {
|
4074 - | self.length_map = input.map(|v| v.into());
|
4075 - | self
|
4076 - | }
|
4077 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4078 - | ///
|
4079 - | /// The builder fails to construct a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
4080 - | ///
|
4081 - | pub fn build(
|
4082 - | self,
|
4083 - | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
4084 - | {
|
4085 - | self.build_enforcing_all_constraints()
|
4086 - | }
|
4087 - | fn build_enforcing_all_constraints(
|
4088 - | self,
|
4089 - | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
4090 - | {
|
4091 - | Ok(crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4092 - | length_map: self
|
4093 - | .length_map
|
4094 - | .map(|v| match v {
|
4095 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4096 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4097 - | })
|
4098 - | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
4099 - | .transpose()?
|
4100 - | .map(|v: crate::model::ConBMap| v.into()),
|
4101 - | })
|
4102 - | }
|
4103 - | }
|
4104 - | }
|
4105 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4106 - | pub mod query_params_targeting_length_map_operation_input {
|
4107 - |
|
4108 - | impl ::std::convert::From<Builder> for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4109 - | fn from(builder: Builder) -> Self {
|
4110 - | builder.build()
|
4111 - | }
|
4112 - | }
|
4113 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4114 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4115 - | pub struct Builder {
|
4116 - | pub(crate) length_map: ::std::option::Option<
|
4117 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4118 - | >,
|
4119 - | }
|
4120 - | impl Builder {
|
4121 - | #[allow(missing_docs)] // documentation missing in model
|
4122 - | pub fn length_map(
|
4123 - | mut self,
|
4124 - | input: ::std::option::Option<
|
4125 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4126 - | >,
|
4127 - | ) -> Self {
|
4128 - | self.length_map = input;
|
4129 - | self
|
4130 - | }
|
4131 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4132 - | pub fn build(self) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4133 - | self.build_enforcing_required_and_enum_traits()
|
4134 - | }
|
4135 - | fn build_enforcing_required_and_enum_traits(
|
4136 - | self,
|
4137 - | ) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4138 - | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4139 - | length_map: self.length_map,
|
4140 - | }
|
4141 - | }
|
4142 - | }
|
4143 - | }
|
4144 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4145 - | pub(crate) mod constrained_recursive_shapes_operation_input_internal {
|
4146 - |
|
4147 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4148 - | /// Holds one variant for each of the ways the builder can fail.
|
4149 - | #[non_exhaustive]
|
4150 - | #[allow(clippy::enum_variant_names)]
|
4151 - | pub(crate) enum ConstraintViolation {
|
4152 - | /// Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
4153 - | #[doc(hidden)]
|
4154 - | Nested(crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation),
|
4155 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4156 - | MissingRecursiveList,
|
4157 - | /// Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
4158 - | #[doc(hidden)]
|
4159 - | RecursiveList(crate::model::recursive_list_internal::ConstraintViolation),
|
4160 - | }
|
4161 - | impl ::std::fmt::Display for ConstraintViolation {
|
4162 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4163 - | match self {
|
4164 - | ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
4165 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4166 - | ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
4167 - | }
|
4168 - | }
|
4169 - | }
|
4170 - | impl ::std::error::Error for ConstraintViolation {}
|
4171 - | impl ConstraintViolation {
|
4172 - | pub(crate) fn as_validation_exception_field(
|
4173 - | self,
|
4174 - | path: ::std::string::String,
|
4175 - | ) -> crate::model::ValidationExceptionField {
|
4176 - | match self {
|
4177 - | ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
|
4178 - | ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
|
4179 - | message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
|
4180 - | path: path + "/recursiveList",
|
4181 - | },
|
4182 - | ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
|
4183 - | }
|
4184 - | }
|
4185 - | }
|
4186 - | impl ::std::convert::From<ConstraintViolation>
|
4187 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4188 - | {
|
4189 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4190 - | let first_validation_exception_field =
|
4191 - | constraint_violation.as_validation_exception_field("".to_owned());
|
4192 - | let validation_exception = crate::error::ValidationException {
|
4193 - | message: format!(
|
4194 - | "1 validation error detected. {}",
|
4195 - | &first_validation_exception_field.message
|
4196 - | ),
|
4197 - | field_list: Some(vec![first_validation_exception_field]),
|
4198 - | };
|
4199 - | Self::ConstraintViolation(
|
4200 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4201 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4202 - | )
|
4203 - | }
|
4204 - | }
|
4205 - | impl ::std::convert::From<Builder>
|
4206 - | for crate::constrained::MaybeConstrained<
|
4207 - | crate::input::ConstrainedRecursiveShapesOperationInput,
|
4208 - | >
|
4209 - | {
|
4210 - | fn from(builder: Builder) -> Self {
|
4211 - | Self::Unconstrained(builder)
|
4212 - | }
|
4213 - | }
|
4214 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
4215 - | type Error = ConstraintViolation;
|
4216 - |
|
4217 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4218 - | builder.build()
|
4219 - | }
|
4220 - | }
|
4221 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4222 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4223 - | pub(crate) struct Builder {
|
4224 - | pub(crate) nested: ::std::option::Option<
|
4225 - | crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
|
4226 - | >,
|
4227 - | pub(crate) recursive_list: ::std::option::Option<
|
4228 - | crate::constrained::MaybeConstrained<
|
4229 - | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
4230 - | >,
|
4231 - | >,
|
4232 - | }
|
4233 - | impl Builder {
|
4234 - | #[allow(missing_docs)] // documentation missing in model
|
4235 - | pub(crate) fn set_nested(
|
4236 - | mut self,
|
4237 - | input: Option<
|
4238 - | impl ::std::convert::Into<
|
4239 - | crate::constrained::MaybeConstrained<
|
4240 - | crate::model::RecursiveShapesInputOutputNested1,
|
4241 - | >,
|
4242 - | >,
|
4243 - | >,
|
4244 - | ) -> Self {
|
4245 - | self.nested = input.map(|v| v.into());
|
4246 - | self
|
4247 - | }
|
4248 - | #[allow(missing_docs)] // documentation missing in model
|
4249 - | pub(crate) fn set_recursive_list(
|
4250 - | mut self,
|
4251 - | input: impl ::std::convert::Into<
|
4252 - | crate::constrained::MaybeConstrained<
|
4253 - | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
4254 - | >,
|
4255 - | >,
|
4256 - | ) -> Self {
|
4257 - | self.recursive_list = Some(input.into());
|
4258 - | self
|
4259 - | }
|
4260 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4261 - | ///
|
4262 - | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
4263 - | ///
|
4264 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4265 - | pub fn build(
|
4266 - | self,
|
4267 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4268 - | {
|
4269 - | self.build_enforcing_all_constraints()
|
4270 - | }
|
4271 - | fn build_enforcing_all_constraints(
|
4272 - | self,
|
4273 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4274 - | {
|
4275 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4276 - | nested: self
|
4277 - | .nested
|
4278 - | .map(|v| match v {
|
4279 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4280 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4281 - | })
|
4282 - | .map(|res| res.map_err(ConstraintViolation::Nested))
|
4283 - | .transpose()?,
|
4284 - | recursive_list: self
|
4285 - | .recursive_list
|
4286 - | .map(|v| match v {
|
4287 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4288 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4289 - | })
|
4290 - | .map(|res| {
|
4291 - | res.map(|v| v.into())
|
4292 - | .map_err(ConstraintViolation::RecursiveList)
|
4293 - | })
|
4294 - | .transpose()?
|
4295 - | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4296 - | })
|
4297 - | }
|
4298 - | }
|
4299 - | }
|
4300 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4301 - | pub mod constrained_recursive_shapes_operation_input {
|
4302 - |
|
4303 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4304 - | /// Holds one variant for each of the ways the builder can fail.
|
4305 - | #[allow(clippy::enum_variant_names)]
|
4306 - | pub enum ConstraintViolation {
|
4307 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4308 - | MissingRecursiveList,
|
4309 - | }
|
4310 - | impl ::std::fmt::Display for ConstraintViolation {
|
4311 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4312 - | match self {
|
4313 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4314 - | }
|
4315 - | }
|
4316 - | }
|
4317 - | impl ::std::error::Error for ConstraintViolation {}
|
4318 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
4319 - | type Error = ConstraintViolation;
|
4320 - |
|
4321 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4322 - | builder.build()
|
4323 - | }
|
4324 - | }
|
4325 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4326 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4327 - | pub struct Builder {
|
4328 - | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4329 - | pub(crate) recursive_list:
|
4330 - | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
4331 - | }
|
4332 - | impl Builder {
|
4333 - | #[allow(missing_docs)] // documentation missing in model
|
4334 - | pub fn nested(
|
4335 - | mut self,
|
4336 - | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4337 - | ) -> Self {
|
4338 - | self.nested = input;
|
4339 - | self
|
4340 - | }
|
4341 - | #[allow(missing_docs)] // documentation missing in model
|
4342 - | pub fn recursive_list(
|
4343 - | mut self,
|
4344 - | input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
4345 - | ) -> Self {
|
4346 - | self.recursive_list = Some(input);
|
4347 - | self
|
4348 - | }
|
4349 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4350 - | ///
|
4351 - | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
4352 - | ///
|
4353 - | pub fn build(
|
4354 - | self,
|
4355 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4356 - | {
|
4357 - | self.build_enforcing_required_and_enum_traits()
|
4358 - | }
|
4359 - | fn build_enforcing_required_and_enum_traits(
|
4360 - | self,
|
4361 - | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4362 - | {
|
4363 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4364 - | nested: self.nested,
|
4365 - | recursive_list: self
|
4366 - | .recursive_list
|
4367 - | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4368 - | })
|
4369 - | }
|
4370 - | }
|
4371 - | }
|
4372 - | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4373 - | pub(crate) mod constrained_http_payload_bound_shape_operation_input_internal {
|
4374 - |
|
4375 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4376 - | /// Holds one variant for each of the ways the builder can fail.
|
4377 - | #[non_exhaustive]
|
4378 - | #[allow(clippy::enum_variant_names)]
|
4379 - | pub(crate) enum ConstraintViolation {
|
4380 - | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4381 - | MissingHttpPayloadBoundConstrainedShape,
|
4382 - | /// Constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4383 - | #[doc(hidden)]
|
4384 - | HttpPayloadBoundConstrainedShape(crate::model::con_a_internal::ConstraintViolation),
|
4385 - | }
|
4386 - | impl ::std::fmt::Display for ConstraintViolation {
|
4387 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4388 - | match self {
|
4389 - | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4390 - | ConstraintViolation::HttpPayloadBoundConstrainedShape(_) => write!(f, "constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4391 - | }
|
4392 - | }
|
4393 - | }
|
4394 - | impl ::std::error::Error for ConstraintViolation {}
|
4395 - | impl ConstraintViolation {
|
4396 - | pub(crate) fn as_validation_exception_field(
|
4397 - | self,
|
4398 - | path: ::std::string::String,
|
4399 - | ) -> crate::model::ValidationExceptionField {
|
4400 - | match self {
|
4401 - | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => crate::model::ValidationExceptionField {
|
4402 - | message: format!("Value at '{}/httpPayloadBoundConstrainedShape' failed to satisfy constraint: Member must not be null", path),
|
4403 - | path: path + "/httpPayloadBoundConstrainedShape",
|
4404 - | },
|
4405 - | ConstraintViolation::HttpPayloadBoundConstrainedShape(inner) => inner.as_validation_exception_field(path + "/httpPayloadBoundConstrainedShape"),
|
4406 - | }
|
4407 - | }
|
4408 - | }
|
4409 - | impl ::std::convert::From<ConstraintViolation>
|
4410 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4411 - | {
|
4412 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4413 - | let first_validation_exception_field =
|
4414 - | constraint_violation.as_validation_exception_field("".to_owned());
|
4415 - | let validation_exception = crate::error::ValidationException {
|
4416 - | message: format!(
|
4417 - | "1 validation error detected. {}",
|
4418 - | &first_validation_exception_field.message
|
4419 - | ),
|
4420 - | field_list: Some(vec![first_validation_exception_field]),
|
4421 - | };
|
4422 - | Self::ConstraintViolation(
|
4423 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4424 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4425 - | )
|
4426 - | }
|
4427 - | }
|
4428 - | impl ::std::convert::From<Builder>
|
4429 - | for crate::constrained::MaybeConstrained<
|
4430 - | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput,
|
4431 - | >
|
4432 - | {
|
4433 - | fn from(builder: Builder) -> Self {
|
4434 - | Self::Unconstrained(builder)
|
4435 - | }
|
4436 - | }
|
4437 - | impl ::std::convert::TryFrom<Builder>
|
4438 - | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
4439 - | {
|
4440 - | type Error = ConstraintViolation;
|
4441 - |
|
4442 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4443 - | builder.build()
|
4444 - | }
|
4445 - | }
|
4446 - | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4447 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4448 - | pub(crate) struct Builder {
|
4449 - | pub(crate) http_payload_bound_constrained_shape:
|
4450 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
4451 - | }
|
4452 - | impl Builder {
|
4453 - | #[allow(missing_docs)] // documentation missing in model
|
4454 - | pub(crate) fn set_http_payload_bound_constrained_shape(
|
4455 - | mut self,
|
4456 - | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
4457 - | ) -> Self {
|
4458 - | self.http_payload_bound_constrained_shape = Some(input.into());
|
4459 - | self
|
4460 - | }
|
4461 - | /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4462 - | ///
|
4463 - | /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) if a [`ConstraintViolation`] occurs.
|
4464 - | ///
|
4465 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4466 - | pub fn build(
|
4467 - | self,
|
4468 - | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
4469 - | {
|
4470 - | self.build_enforcing_all_constraints()
|
4471 - | }
|
4472 - | fn build_enforcing_all_constraints(
|
4473 - | self,
|
4474 - | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
4475 - | {
|
4476 - | Ok(
|
4477 - | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
4478 - | http_payload_bound_constrained_shape: self
|
4479 - | .http_payload_bound_constrained_shape
|
4480 - | .map(|v| match v {
|
4481 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4482 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4483 - | })
|
4484 - | .map(|res| {
|
4485 - | res.map_err(ConstraintViolation::HttpPayloadBoundConstrainedShape)
|
4486 - | })
|
4487 - | .transpose()?
|
4488 - | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
4489 - | },
|
4490 - | )
|
4491 - | }
|
4492 - | }
|
4493 - | }
|
4494 - | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4495 - | pub mod constrained_http_payload_bound_shape_operation_input {
|
4496 - |
|
4497 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4498 - | /// Holds one variant for each of the ways the builder can fail.
|
4499 - | #[allow(clippy::enum_variant_names)]
|
4500 - | pub enum ConstraintViolation {
|
4501 - | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4502 - | MissingHttpPayloadBoundConstrainedShape,
|
4503 - | }
|
4504 - | impl ::std::fmt::Display for ConstraintViolation {
|
4505 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4506 - | match self {
|
4507 - | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4508 - | }
|
4509 - | }
|
4510 - | }
|
4511 - | impl ::std::error::Error for ConstraintViolation {}
|
4512 - | impl ::std::convert::TryFrom<Builder>
|
4513 - | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
4514 - | {
|
4515 - | type Error = ConstraintViolation;
|
4516 - |
|
4517 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4518 - | builder.build()
|
4519 - | }
|
4520 - | }
|
4521 - | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4522 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4523 - | pub struct Builder {
|
4524 - | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
4525 - | }
|
4526 - | impl Builder {
|
4527 - | #[allow(missing_docs)] // documentation missing in model
|
4528 - | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
4529 - | self.http_payload_bound_constrained_shape = Some(input);
|
4530 - | self
|
4531 - | }
|
4532 - | /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4533 - | ///
|
4534 - | /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) if you do not provide a value for all non-`Option`al members.
|
4535 - | ///
|
4536 - | pub fn build(
|
4537 - | self,
|
4538 - | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
4539 - | {
|
4540 - | self.build_enforcing_required_and_enum_traits()
|
4541 - | }
|
4542 - | fn build_enforcing_required_and_enum_traits(
|
4543 - | self,
|
4544 - | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
4545 - | {
|
4546 - | Ok(
|
4547 - | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
4548 - | http_payload_bound_constrained_shape: self
|
4549 - | .http_payload_bound_constrained_shape
|
4550 - | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
4551 - | },
|
4552 - | )
|
4553 - | }
|
4554 - | }
|
4555 - | }
|
4556 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4557 - | pub(crate) mod constrained_http_bound_shapes_operation_input_internal {
|
4558 - |
|
4559 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4560 - | /// Holds one variant for each of the ways the builder can fail.
|
4561 - | #[non_exhaustive]
|
4562 - | #[allow(clippy::enum_variant_names)]
|
4563 - | pub(crate) enum ConstraintViolation {
|
4564 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4565 - | MissingLengthStringLabel,
|
4566 - | /// Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4567 - | #[doc(hidden)]
|
4568 - | LengthStringLabel(crate::model::length_string_internal::ConstraintViolation),
|
4569 - | /// Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4570 - | #[doc(hidden)]
|
4571 - | RangeIntegerLabel(crate::model::range_integer_internal::ConstraintViolation),
|
4572 - | /// Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4573 - | #[doc(hidden)]
|
4574 - | RangeShortLabel(crate::model::range_short_internal::ConstraintViolation),
|
4575 - | /// Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4576 - | #[doc(hidden)]
|
4577 - | RangeLongLabel(crate::model::range_long_internal::ConstraintViolation),
|
4578 - | /// Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4579 - | #[doc(hidden)]
|
4580 - | RangeByteLabel(crate::model::range_byte_internal::ConstraintViolation),
|
4581 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4582 - | MissingEnumStringLabel,
|
4583 - | /// Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4584 - | #[doc(hidden)]
|
4585 - | EnumStringLabel(crate::model::enum_string_internal::ConstraintViolation),
|
4586 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4587 - | MissingLengthStringHeaderMap,
|
4588 - | /// Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4589 - | #[doc(hidden)]
|
4590 - | LengthStringHeaderMap(crate::model::map_of_length_string_internal::ConstraintViolation),
|
4591 - | /// Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4592 - | #[doc(hidden)]
|
4593 - | LengthStringHeader(crate::model::length_string_internal::ConstraintViolation),
|
4594 - | /// Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4595 - | #[doc(hidden)]
|
4596 - | RangeIntegerHeader(crate::model::range_integer_internal::ConstraintViolation),
|
4597 - | /// Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4598 - | #[doc(hidden)]
|
4599 - | RangeShortHeader(crate::model::range_short_internal::ConstraintViolation),
|
4600 - | /// Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4601 - | #[doc(hidden)]
|
4602 - | RangeLongHeader(crate::model::range_long_internal::ConstraintViolation),
|
4603 - | /// Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4604 - | #[doc(hidden)]
|
4605 - | RangeByteHeader(crate::model::range_byte_internal::ConstraintViolation),
|
4606 - | /// Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4607 - | #[doc(hidden)]
|
4608 - | LengthStringSetHeader(crate::model::set_of_length_string_internal::ConstraintViolation),
|
4609 - | /// Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4610 - | #[doc(hidden)]
|
4611 - | ListLengthStringHeader(crate::model::list_of_length_string_internal::ConstraintViolation),
|
4612 - | /// Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4613 - | #[doc(hidden)]
|
4614 - | LengthListPatternStringHeader(
|
4615 - | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
4616 - | ),
|
4617 - | /// Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4618 - | #[doc(hidden)]
|
4619 - | LengthSetPatternStringHeader(
|
4620 - | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
4621 - | ),
|
4622 - | /// Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4623 - | #[doc(hidden)]
|
4624 - | RangeByteSetHeader(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
4625 - | /// Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4626 - | #[doc(hidden)]
|
4627 - | RangeShortSetHeader(crate::model::set_of_range_short_internal::ConstraintViolation),
|
4628 - | /// Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4629 - | #[doc(hidden)]
|
4630 - | RangeIntegerSetHeader(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
4631 - | /// Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4632 - | #[doc(hidden)]
|
4633 - | RangeLongSetHeader(crate::model::set_of_range_long_internal::ConstraintViolation),
|
4634 - | /// Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4635 - | #[doc(hidden)]
|
4636 - | RangeByteListHeader(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
4637 - | /// Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4638 - | #[doc(hidden)]
|
4639 - | RangeShortListHeader(crate::model::list_of_range_short_internal::ConstraintViolation),
|
4640 - | /// Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4641 - | #[doc(hidden)]
|
4642 - | RangeIntegerListHeader(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
4643 - | /// Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4644 - | #[doc(hidden)]
|
4645 - | RangeLongListHeader(crate::model::list_of_range_long_internal::ConstraintViolation),
|
4646 - | /// Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4647 - | #[doc(hidden)]
|
4648 - | LengthStringQuery(crate::model::length_string_internal::ConstraintViolation),
|
4649 - | /// Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4650 - | #[doc(hidden)]
|
4651 - | RangeByteQuery(crate::model::range_byte_internal::ConstraintViolation),
|
4652 - | /// Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4653 - | #[doc(hidden)]
|
4654 - | RangeShortQuery(crate::model::range_short_internal::ConstraintViolation),
|
4655 - | /// Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4656 - | #[doc(hidden)]
|
4657 - | RangeIntegerQuery(crate::model::range_integer_internal::ConstraintViolation),
|
4658 - | /// Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4659 - | #[doc(hidden)]
|
4660 - | RangeLongQuery(crate::model::range_long_internal::ConstraintViolation),
|
4661 - | /// Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4662 - | #[doc(hidden)]
|
4663 - | EnumStringQuery(crate::model::enum_string_internal::ConstraintViolation),
|
4664 - | /// Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4665 - | #[doc(hidden)]
|
4666 - | LengthStringListQuery(crate::model::list_of_length_string_internal::ConstraintViolation),
|
4667 - | /// Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4668 - | #[doc(hidden)]
|
4669 - | LengthListPatternStringQuery(
|
4670 - | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
4671 - | ),
|
4672 - | /// Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4673 - | #[doc(hidden)]
|
4674 - | LengthStringSetQuery(crate::model::set_of_length_string_internal::ConstraintViolation),
|
4675 - | /// Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4676 - | #[doc(hidden)]
|
4677 - | RangeByteListQuery(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
4678 - | /// Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4679 - | #[doc(hidden)]
|
4680 - | RangeShortListQuery(crate::model::list_of_range_short_internal::ConstraintViolation),
|
4681 - | /// Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4682 - | #[doc(hidden)]
|
4683 - | RangeIntegerListQuery(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
4684 - | /// Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4685 - | #[doc(hidden)]
|
4686 - | RangeLongListQuery(crate::model::list_of_range_long_internal::ConstraintViolation),
|
4687 - | /// Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4688 - | #[doc(hidden)]
|
4689 - | RangeByteSetQuery(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
4690 - | /// Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4691 - | #[doc(hidden)]
|
4692 - | RangeShortSetQuery(crate::model::set_of_range_short_internal::ConstraintViolation),
|
4693 - | /// Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4694 - | #[doc(hidden)]
|
4695 - | RangeIntegerSetQuery(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
4696 - | /// Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4697 - | #[doc(hidden)]
|
4698 - | RangeLongSetQuery(crate::model::set_of_range_long_internal::ConstraintViolation),
|
4699 - | /// Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4700 - | #[doc(hidden)]
|
4701 - | EnumStringListQuery(crate::model::list_of_enum_string_internal::ConstraintViolation),
|
4702 - | }
|
4703 - | impl ::std::fmt::Display for ConstraintViolation {
|
4704 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4705 - | match self {
|
4706 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4707 - | ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4708 - | ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4709 - | ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4710 - | ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4711 - | ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4712 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4713 - | ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4714 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4715 - | ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4716 - | ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4717 - | ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4718 - | ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4719 - | ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4720 - | ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4721 - | ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4722 - | ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4723 - | ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4724 - | ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4725 - | ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4726 - | ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4727 - | ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4728 - | ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4729 - | ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4730 - | ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4731 - | ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4732 - | ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4733 - | ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4734 - | ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4735 - | ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4736 - | ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4737 - | ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4738 - | ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4739 - | ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4740 - | ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4741 - | ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4742 - | ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4743 - | ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4744 - | ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4745 - | ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4746 - | ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4747 - | ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4748 - | ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4749 - | ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4750 - | ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4751 - | }
|
4752 - | }
|
4753 - | }
|
4754 - | impl ::std::error::Error for ConstraintViolation {}
|
4755 - | impl ConstraintViolation {
|
4756 - | pub(crate) fn as_validation_exception_field(
|
4757 - | self,
|
4758 - | path: ::std::string::String,
|
4759 - | ) -> crate::model::ValidationExceptionField {
|
4760 - | match self {
|
4761 - | ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
|
4762 - | message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
|
4763 - | path: path + "/lengthStringLabel",
|
4764 - | },
|
4765 - | ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
|
4766 - | ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
|
4767 - | ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
|
4768 - | ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
|
4769 - | ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
|
4770 - | ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
|
4771 - | message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
|
4772 - | path: path + "/enumStringLabel",
|
4773 - | },
|
4774 - | ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
|
4775 - | ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
|
4776 - | message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
|
4777 - | path: path + "/lengthStringHeaderMap",
|
4778 - | },
|
4779 - | ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
|
4780 - | ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
|
4781 - | ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
|
4782 - | ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
|
4783 - | ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
|
4784 - | ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
|
4785 - | ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
|
4786 - | ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
|
4787 - | ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
|
4788 - | ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
|
4789 - | ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
|
4790 - | ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
|
4791 - | ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
|
4792 - | ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
|
4793 - | ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
|
4794 - | ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
|
4795 - | ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
|
4796 - | ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
|
4797 - | ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
|
4798 - | ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
|
4799 - | ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
|
4800 - | ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
|
4801 - | ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
|
4802 - | ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
|
4803 - | ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
|
4804 - | ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
|
4805 - | ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
|
4806 - | ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
|
4807 - | ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
|
4808 - | ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
|
4809 - | ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
|
4810 - | ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
|
4811 - | ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
|
4812 - | ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
|
4813 - | ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
|
4814 - | ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
|
4815 - | }
|
4816 - | }
|
4817 - | }
|
4818 - | impl ::std::convert::From<ConstraintViolation>
|
4819 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4820 - | {
|
4821 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4822 - | let first_validation_exception_field =
|
4823 - | constraint_violation.as_validation_exception_field("".to_owned());
|
4824 - | let validation_exception = crate::error::ValidationException {
|
4825 - | message: format!(
|
4826 - | "1 validation error detected. {}",
|
4827 - | &first_validation_exception_field.message
|
4828 - | ),
|
4829 - | field_list: Some(vec![first_validation_exception_field]),
|
4830 - | };
|
4831 - | Self::ConstraintViolation(
|
4832 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4833 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4834 - | )
|
4835 - | }
|
4836 - | }
|
4837 - | impl ::std::convert::From<Builder>
|
4838 - | for crate::constrained::MaybeConstrained<
|
4839 - | crate::input::ConstrainedHttpBoundShapesOperationInput,
|
4840 - | >
|
4841 - | {
|
4842 - | fn from(builder: Builder) -> Self {
|
4843 - | Self::Unconstrained(builder)
|
4844 - | }
|
4845 - | }
|
4846 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
4847 - | type Error = ConstraintViolation;
|
4848 - |
|
4849 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4850 - | builder.build()
|
4851 - | }
|
4852 - | }
|
4853 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4854 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4855 - | pub(crate) struct Builder {
|
4856 - | pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4857 - | pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4858 - | pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4859 - | pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4860 - | pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4861 - | pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
4862 - | pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
4863 - | pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4864 - | pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4865 - | pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4866 - | pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4867 - | pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4868 - | pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
4869 - | pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
4870 - | pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
4871 - | pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
4872 - | pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
4873 - | pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
4874 - | pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
4875 - | pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
4876 - | pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
4877 - | pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
4878 - | pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
4879 - | pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
4880 - | pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4881 - | pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4882 - | pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4883 - | pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4884 - | pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4885 - | pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
4886 - | pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
4887 - | pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
4888 - | pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
4889 - | pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
4890 - | pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
4891 - | pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
4892 - | pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
4893 - | pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
4894 - | pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
4895 - | pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
4896 - | pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
4897 - | pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
4898 - | }
|
4899 - | impl Builder {
|
4900 - | #[allow(missing_docs)] // documentation missing in model
|
4901 - | pub(crate) fn set_length_string_label(
|
4902 - | mut self,
|
4903 - | input: impl ::std::convert::Into<
|
4904 - | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
4905 - | >,
|
4906 - | ) -> Self {
|
4907 - | self.length_string_label = Some(input.into());
|
4908 - | self
|
4909 - | }
|
4910 - | #[allow(missing_docs)] // documentation missing in model
|
4911 - | pub(crate) fn set_range_integer_label(
|
4912 - | mut self,
|
4913 - | input: impl ::std::convert::Into<
|
4914 - | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
4915 - | >,
|
4916 - | ) -> Self {
|
4917 - | self.range_integer_label = Some(input.into());
|
4918 - | self
|
4919 - | }
|
4920 - | #[allow(missing_docs)] // documentation missing in model
|
4921 - | pub(crate) fn set_range_short_label(
|
4922 - | mut self,
|
4923 - | input: impl ::std::convert::Into<
|
4924 - | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
4925 - | >,
|
4926 - | ) -> Self {
|
4927 - | self.range_short_label = Some(input.into());
|
4928 - | self
|
4929 - | }
|
4930 - | #[allow(missing_docs)] // documentation missing in model
|
4931 - | pub(crate) fn set_range_long_label(
|
4932 - | mut self,
|
4933 - | input: impl ::std::convert::Into<
|
4934 - | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
4935 - | >,
|
4936 - | ) -> Self {
|
4937 - | self.range_long_label = Some(input.into());
|
4938 - | self
|
4939 - | }
|
4940 - | #[allow(missing_docs)] // documentation missing in model
|
4941 - | pub(crate) fn set_range_byte_label(
|
4942 - | mut self,
|
4943 - | input: impl ::std::convert::Into<
|
4944 - | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
4945 - | >,
|
4946 - | ) -> Self {
|
4947 - | self.range_byte_label = Some(input.into());
|
4948 - | self
|
4949 - | }
|
4950 - | #[allow(missing_docs)] // documentation missing in model
|
4951 - | pub(crate) fn set_enum_string_label(
|
4952 - | mut self,
|
4953 - | input: impl ::std::convert::Into<
|
4954 - | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
4955 - | >,
|
4956 - | ) -> Self {
|
4957 - | self.enum_string_label = Some(input.into());
|
4958 - | self
|
4959 - | }
|
4960 - | #[allow(missing_docs)] // documentation missing in model
|
4961 - | pub(crate) fn set_length_string_header_map(
|
4962 - | mut self,
|
4963 - | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
4964 - | ) -> Self {
|
4965 - | self.length_string_header_map = Some(input.into());
|
4966 - | self
|
4967 - | }
|
4968 - | #[allow(missing_docs)] // documentation missing in model
|
4969 - | pub(crate) fn set_length_string_header(
|
4970 - | mut self,
|
4971 - | input: Option<
|
4972 - | impl ::std::convert::Into<
|
4973 - | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
4974 - | >,
|
4975 - | >,
|
4976 - | ) -> Self {
|
4977 - | self.length_string_header = input.map(|v| v.into());
|
4978 - | self
|
4979 - | }
|
4980 - | #[allow(missing_docs)] // documentation missing in model
|
4981 - | pub(crate) fn set_range_integer_header(
|
4982 - | mut self,
|
4983 - | input: impl ::std::convert::Into<
|
4984 - | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
4985 - | >,
|
4986 - | ) -> Self {
|
4987 - | self.range_integer_header = Some(input.into());
|
4988 - | self
|
4989 - | }
|
4990 - | #[allow(missing_docs)] // documentation missing in model
|
4991 - | pub(crate) fn set_range_short_header(
|
4992 - | mut self,
|
4993 - | input: impl ::std::convert::Into<
|
4994 - | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
4995 - | >,
|
4996 - | ) -> Self {
|
4997 - | self.range_short_header = Some(input.into());
|
4998 - | self
|
4999 - | }
|
5000 - | #[allow(missing_docs)] // documentation missing in model
|
5001 - | pub(crate) fn set_range_long_header(
|
5002 - | mut self,
|
5003 - | input: impl ::std::convert::Into<
|
5004 - | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
5005 - | >,
|
5006 - | ) -> Self {
|
5007 - | self.range_long_header = Some(input.into());
|
5008 - | self
|
5009 - | }
|
5010 - | #[allow(missing_docs)] // documentation missing in model
|
5011 - | pub(crate) fn set_range_byte_header(
|
5012 - | mut self,
|
5013 - | input: impl ::std::convert::Into<
|
5014 - | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
5015 - | >,
|
5016 - | ) -> Self {
|
5017 - | self.range_byte_header = Some(input.into());
|
5018 - | self
|
5019 - | }
|
5020 - | #[allow(missing_docs)] // documentation missing in model
|
5021 - | pub(crate) fn set_length_string_set_header(
|
5022 - | mut self,
|
5023 - | input: Option<
|
5024 - | impl ::std::convert::Into<
|
5025 - | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
5026 - | >,
|
5027 - | >,
|
5028 - | ) -> Self {
|
5029 - | self.length_string_set_header = input.map(|v| v.into());
|
5030 - | self
|
5031 - | }
|
5032 - | #[allow(missing_docs)] // documentation missing in model
|
5033 - | pub(crate) fn set_list_length_string_header(
|
5034 - | mut self,
|
5035 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
5036 - | ) -> Self {
|
5037 - | self.list_length_string_header = input.map(|v| v.into());
|
5038 - | self
|
5039 - | }
|
5040 - | #[allow(missing_docs)] // documentation missing in model
|
5041 - | pub(crate) fn set_length_list_pattern_string_header(
|
5042 - | mut self,
|
5043 - | input: Option<
|
5044 - | impl ::std::convert::Into<
|
5045 - | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
5046 - | >,
|
5047 - | >,
|
5048 - | ) -> Self {
|
5049 - | self.length_list_pattern_string_header = input.map(|v| v.into());
|
5050 - | self
|
5051 - | }
|
5052 - | #[allow(missing_docs)] // documentation missing in model
|
5053 - | pub(crate) fn set_length_set_pattern_string_header(
|
5054 - | mut self,
|
5055 - | input: Option<
|
5056 - | impl ::std::convert::Into<
|
5057 - | crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
|
5058 - | >,
|
5059 - | >,
|
5060 - | ) -> Self {
|
5061 - | self.length_set_pattern_string_header = input.map(|v| v.into());
|
5062 - | self
|
5063 - | }
|
5064 - | #[allow(missing_docs)] // documentation missing in model
|
5065 - | pub(crate) fn set_range_byte_set_header(
|
5066 - | mut self,
|
5067 - | input: Option<
|
5068 - | impl ::std::convert::Into<
|
5069 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
5070 - | >,
|
5071 - | >,
|
5072 - | ) -> Self {
|
5073 - | self.range_byte_set_header = input.map(|v| v.into());
|
5074 - | self
|
5075 - | }
|
5076 - | #[allow(missing_docs)] // documentation missing in model
|
5077 - | pub(crate) fn set_range_short_set_header(
|
5078 - | mut self,
|
5079 - | input: Option<
|
5080 - | impl ::std::convert::Into<
|
5081 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
5082 - | >,
|
5083 - | >,
|
5084 - | ) -> Self {
|
5085 - | self.range_short_set_header = input.map(|v| v.into());
|
5086 - | self
|
5087 - | }
|
5088 - | #[allow(missing_docs)] // documentation missing in model
|
5089 - | pub(crate) fn set_range_integer_set_header(
|
5090 - | mut self,
|
5091 - | input: Option<
|
5092 - | impl ::std::convert::Into<
|
5093 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
5094 - | >,
|
5095 - | >,
|
5096 - | ) -> Self {
|
5097 - | self.range_integer_set_header = input.map(|v| v.into());
|
5098 - | self
|
5099 - | }
|
5100 - | #[allow(missing_docs)] // documentation missing in model
|
5101 - | pub(crate) fn set_range_long_set_header(
|
5102 - | mut self,
|
5103 - | input: Option<
|
5104 - | impl ::std::convert::Into<
|
5105 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
5106 - | >,
|
5107 - | >,
|
5108 - | ) -> Self {
|
5109 - | self.range_long_set_header = input.map(|v| v.into());
|
5110 - | self
|
5111 - | }
|
5112 - | #[allow(missing_docs)] // documentation missing in model
|
5113 - | pub(crate) fn set_range_byte_list_header(
|
5114 - | mut self,
|
5115 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
5116 - | ) -> Self {
|
5117 - | self.range_byte_list_header = input.map(|v| v.into());
|
5118 - | self
|
5119 - | }
|
5120 - | #[allow(missing_docs)] // documentation missing in model
|
5121 - | pub(crate) fn set_range_short_list_header(
|
5122 - | mut self,
|
5123 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
5124 - | ) -> Self {
|
5125 - | self.range_short_list_header = input.map(|v| v.into());
|
5126 - | self
|
5127 - | }
|
5128 - | #[allow(missing_docs)] // documentation missing in model
|
5129 - | pub(crate) fn set_range_integer_list_header(
|
5130 - | mut self,
|
5131 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
5132 - | ) -> Self {
|
5133 - | self.range_integer_list_header = input.map(|v| v.into());
|
5134 - | self
|
5135 - | }
|
5136 - | #[allow(missing_docs)] // documentation missing in model
|
5137 - | pub(crate) fn set_range_long_list_header(
|
5138 - | mut self,
|
5139 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
5140 - | ) -> Self {
|
5141 - | self.range_long_list_header = input.map(|v| v.into());
|
5142 - | self
|
5143 - | }
|
5144 - | #[allow(missing_docs)] // documentation missing in model
|
5145 - | pub(crate) fn set_length_string_query(
|
5146 - | mut self,
|
5147 - | input: Option<
|
5148 - | impl ::std::convert::Into<
|
5149 - | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
5150 - | >,
|
5151 - | >,
|
5152 - | ) -> Self {
|
5153 - | self.length_string_query = input.map(|v| v.into());
|
5154 - | self
|
5155 - | }
|
5156 - | #[allow(missing_docs)] // documentation missing in model
|
5157 - | pub(crate) fn set_range_byte_query(
|
5158 - | mut self,
|
5159 - | input: impl ::std::convert::Into<
|
5160 - | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
5161 - | >,
|
5162 - | ) -> Self {
|
5163 - | self.range_byte_query = Some(input.into());
|
5164 - | self
|
5165 - | }
|
5166 - | #[allow(missing_docs)] // documentation missing in model
|
5167 - | pub(crate) fn set_range_short_query(
|
5168 - | mut self,
|
5169 - | input: impl ::std::convert::Into<
|
5170 - | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
5171 - | >,
|
5172 - | ) -> Self {
|
5173 - | self.range_short_query = Some(input.into());
|
5174 - | self
|
5175 - | }
|
5176 - | #[allow(missing_docs)] // documentation missing in model
|
5177 - | pub(crate) fn set_range_integer_query(
|
5178 - | mut self,
|
5179 - | input: impl ::std::convert::Into<
|
5180 - | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
5181 - | >,
|
5182 - | ) -> Self {
|
5183 - | self.range_integer_query = Some(input.into());
|
5184 - | self
|
5185 - | }
|
5186 - | #[allow(missing_docs)] // documentation missing in model
|
5187 - | pub(crate) fn set_range_long_query(
|
5188 - | mut self,
|
5189 - | input: impl ::std::convert::Into<
|
5190 - | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
5191 - | >,
|
5192 - | ) -> Self {
|
5193 - | self.range_long_query = Some(input.into());
|
5194 - | self
|
5195 - | }
|
5196 - | #[allow(missing_docs)] // documentation missing in model
|
5197 - | pub(crate) fn set_enum_string_query(
|
5198 - | mut self,
|
5199 - | input: Option<
|
5200 - | impl ::std::convert::Into<
|
5201 - | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
5202 - | >,
|
5203 - | >,
|
5204 - | ) -> Self {
|
5205 - | self.enum_string_query = input.map(|v| v.into());
|
5206 - | self
|
5207 - | }
|
5208 - | #[allow(missing_docs)] // documentation missing in model
|
5209 - | pub(crate) fn set_length_string_list_query(
|
5210 - | mut self,
|
5211 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
5212 - | ) -> Self {
|
5213 - | self.length_string_list_query = input.map(|v| v.into());
|
5214 - | self
|
5215 - | }
|
5216 - | #[allow(missing_docs)] // documentation missing in model
|
5217 - | pub(crate) fn set_length_list_pattern_string_query(
|
5218 - | mut self,
|
5219 - | input: Option<
|
5220 - | impl ::std::convert::Into<
|
5221 - | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
5222 - | >,
|
5223 - | >,
|
5224 - | ) -> Self {
|
5225 - | self.length_list_pattern_string_query = input.map(|v| v.into());
|
5226 - | self
|
5227 - | }
|
5228 - | #[allow(missing_docs)] // documentation missing in model
|
5229 - | pub(crate) fn set_length_string_set_query(
|
5230 - | mut self,
|
5231 - | input: Option<
|
5232 - | impl ::std::convert::Into<
|
5233 - | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
5234 - | >,
|
5235 - | >,
|
5236 - | ) -> Self {
|
5237 - | self.length_string_set_query = input.map(|v| v.into());
|
5238 - | self
|
5239 - | }
|
5240 - | #[allow(missing_docs)] // documentation missing in model
|
5241 - | pub(crate) fn set_range_byte_list_query(
|
5242 - | mut self,
|
5243 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
5244 - | ) -> Self {
|
5245 - | self.range_byte_list_query = input.map(|v| v.into());
|
5246 - | self
|
5247 - | }
|
5248 - | #[allow(missing_docs)] // documentation missing in model
|
5249 - | pub(crate) fn set_range_short_list_query(
|
5250 - | mut self,
|
5251 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
5252 - | ) -> Self {
|
5253 - | self.range_short_list_query = input.map(|v| v.into());
|
5254 - | self
|
5255 - | }
|
5256 - | #[allow(missing_docs)] // documentation missing in model
|
5257 - | pub(crate) fn set_range_integer_list_query(
|
5258 - | mut self,
|
5259 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
5260 - | ) -> Self {
|
5261 - | self.range_integer_list_query = input.map(|v| v.into());
|
5262 - | self
|
5263 - | }
|
5264 - | #[allow(missing_docs)] // documentation missing in model
|
5265 - | pub(crate) fn set_range_long_list_query(
|
5266 - | mut self,
|
5267 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
5268 - | ) -> Self {
|
5269 - | self.range_long_list_query = input.map(|v| v.into());
|
5270 - | self
|
5271 - | }
|
5272 - | #[allow(missing_docs)] // documentation missing in model
|
5273 - | pub(crate) fn set_range_byte_set_query(
|
5274 - | mut self,
|
5275 - | input: Option<
|
5276 - | impl ::std::convert::Into<
|
5277 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
5278 - | >,
|
5279 - | >,
|
5280 - | ) -> Self {
|
5281 - | self.range_byte_set_query = input.map(|v| v.into());
|
5282 - | self
|
5283 - | }
|
5284 - | #[allow(missing_docs)] // documentation missing in model
|
5285 - | pub(crate) fn set_range_short_set_query(
|
5286 - | mut self,
|
5287 - | input: Option<
|
5288 - | impl ::std::convert::Into<
|
5289 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
5290 - | >,
|
5291 - | >,
|
5292 - | ) -> Self {
|
5293 - | self.range_short_set_query = input.map(|v| v.into());
|
5294 - | self
|
5295 - | }
|
5296 - | #[allow(missing_docs)] // documentation missing in model
|
5297 - | pub(crate) fn set_range_integer_set_query(
|
5298 - | mut self,
|
5299 - | input: Option<
|
5300 - | impl ::std::convert::Into<
|
5301 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
5302 - | >,
|
5303 - | >,
|
5304 - | ) -> Self {
|
5305 - | self.range_integer_set_query = input.map(|v| v.into());
|
5306 - | self
|
5307 - | }
|
5308 - | #[allow(missing_docs)] // documentation missing in model
|
5309 - | pub(crate) fn set_range_long_set_query(
|
5310 - | mut self,
|
5311 - | input: Option<
|
5312 - | impl ::std::convert::Into<
|
5313 - | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
5314 - | >,
|
5315 - | >,
|
5316 - | ) -> Self {
|
5317 - | self.range_long_set_query = input.map(|v| v.into());
|
5318 - | self
|
5319 - | }
|
5320 - | #[allow(missing_docs)] // documentation missing in model
|
5321 - | pub(crate) fn set_enum_string_list_query(
|
5322 - | mut self,
|
5323 - | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>>,
|
5324 - | ) -> Self {
|
5325 - | self.enum_string_list_query = input.map(|v| v.into());
|
5326 - | self
|
5327 - | }
|
5328 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5329 - | ///
|
5330 - | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
5331 - | ///
|
5332 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5333 - | pub fn build(
|
5334 - | self,
|
5335 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
5336 - | {
|
5337 - | self.build_enforcing_all_constraints()
|
5338 - | }
|
5339 - | fn build_enforcing_all_constraints(
|
5340 - | self,
|
5341 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
2856 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
5342 2857 | {
|
5343 2858 | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
5344 2859 | length_string_label: self
|
5345 2860 | .length_string_label
|
5346 2861 | .map(|v| match v {
|
5347 2862 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5348 2863 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5349 2864 | })
|
5350 2865 | .map(|res| res.map_err(ConstraintViolation::LengthStringLabel))
|
5351 2866 | .transpose()?
|
5686 3201 | res.map(|v| v.into())
|
5687 3202 | .map_err(ConstraintViolation::RangeShortListQuery)
|
5688 3203 | })
|
5689 3204 | .transpose()?,
|
5690 3205 | range_integer_list_query: self
|
5691 3206 | .range_integer_list_query
|
5692 3207 | .map(|v| match v {
|
5693 3208 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5694 3209 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5695 3210 | })
|
5696 - | .map(|res| {
|
5697 - | res.map(|v| v.into())
|
5698 - | .map_err(ConstraintViolation::RangeIntegerListQuery)
|
5699 - | })
|
3211 + | .map(|res| {
|
3212 + | res.map(|v| v.into())
|
3213 + | .map_err(ConstraintViolation::RangeIntegerListQuery)
|
3214 + | })
|
3215 + | .transpose()?,
|
3216 + | range_long_list_query: self
|
3217 + | .range_long_list_query
|
3218 + | .map(|v| match v {
|
3219 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3220 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3221 + | })
|
3222 + | .map(|res| {
|
3223 + | res.map(|v| v.into())
|
3224 + | .map_err(ConstraintViolation::RangeLongListQuery)
|
3225 + | })
|
3226 + | .transpose()?,
|
3227 + | range_byte_set_query: self
|
3228 + | .range_byte_set_query
|
3229 + | .map(|v| match v {
|
3230 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3231 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3232 + | })
|
3233 + | .map(|res| res.map_err(ConstraintViolation::RangeByteSetQuery))
|
3234 + | .transpose()?
|
3235 + | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
3236 + | range_short_set_query: self
|
3237 + | .range_short_set_query
|
3238 + | .map(|v| match v {
|
3239 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3240 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3241 + | })
|
3242 + | .map(|res| res.map_err(ConstraintViolation::RangeShortSetQuery))
|
3243 + | .transpose()?
|
3244 + | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
3245 + | range_integer_set_query: self
|
3246 + | .range_integer_set_query
|
3247 + | .map(|v| match v {
|
3248 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3249 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3250 + | })
|
3251 + | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetQuery))
|
3252 + | .transpose()?
|
3253 + | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
3254 + | range_long_set_query: self
|
3255 + | .range_long_set_query
|
3256 + | .map(|v| match v {
|
3257 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3258 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3259 + | })
|
3260 + | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
3261 + | .transpose()?
|
3262 + | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
3263 + | enum_string_list_query: self
|
3264 + | .enum_string_list_query
|
3265 + | .map(|v| match v {
|
3266 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3267 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3268 + | })
|
3269 + | .map(|res| {
|
3270 + | res.map(|v| v.into())
|
3271 + | .map_err(ConstraintViolation::EnumStringListQuery)
|
3272 + | })
|
3273 + | .transpose()?,
|
3274 + | })
|
3275 + | }
|
3276 + | }
|
3277 + | }
|
3278 + | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
3279 + | pub mod constrained_http_bound_shapes_operation_input {
|
3280 + |
|
3281 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3282 + | /// Holds one variant for each of the ways the builder can fail.
|
3283 + | #[allow(clippy::enum_variant_names)]
|
3284 + | pub enum ConstraintViolation {
|
3285 + | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
3286 + | MissingLengthStringLabel,
|
3287 + | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
3288 + | MissingEnumStringLabel,
|
3289 + | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
3290 + | MissingLengthStringHeaderMap,
|
3291 + | }
|
3292 + | impl ::std::fmt::Display for ConstraintViolation {
|
3293 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3294 + | match self {
|
3295 + | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3296 + | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3297 + | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3298 + | }
|
3299 + | }
|
3300 + | }
|
3301 + | impl ::std::error::Error for ConstraintViolation {}
|
3302 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
3303 + | type Error = ConstraintViolation;
|
3304 + |
|
3305 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3306 + | builder.build()
|
3307 + | }
|
3308 + | }
|
3309 + | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
3310 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3311 + | pub struct Builder {
|
3312 + | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
3313 + | pub(crate) range_integer_label: ::std::option::Option<i32>,
|
3314 + | pub(crate) range_short_label: ::std::option::Option<i16>,
|
3315 + | pub(crate) range_long_label: ::std::option::Option<i64>,
|
3316 + | pub(crate) range_byte_label: ::std::option::Option<i8>,
|
3317 + | pub(crate) enum_string_label: ::std::option::Option<crate::model::EnumString>,
|
3318 + | pub(crate) length_string_header_map: ::std::option::Option<
|
3319 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3320 + | >,
|
3321 + | pub(crate) length_string_header: ::std::option::Option<::std::string::String>,
|
3322 + | pub(crate) range_integer_header: ::std::option::Option<i32>,
|
3323 + | pub(crate) range_short_header: ::std::option::Option<i16>,
|
3324 + | pub(crate) range_long_header: ::std::option::Option<i64>,
|
3325 + | pub(crate) range_byte_header: ::std::option::Option<i8>,
|
3326 + | pub(crate) length_string_set_header:
|
3327 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3328 + | pub(crate) list_length_string_header:
|
3329 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3330 + | pub(crate) length_list_pattern_string_header:
|
3331 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3332 + | pub(crate) length_set_pattern_string_header:
|
3333 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3334 + | pub(crate) range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
3335 + | pub(crate) range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
3336 + | pub(crate) range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
3337 + | pub(crate) range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
3338 + | pub(crate) range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
3339 + | pub(crate) range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
3340 + | pub(crate) range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
3341 + | pub(crate) range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
3342 + | pub(crate) length_string_query: ::std::option::Option<::std::string::String>,
|
3343 + | pub(crate) range_byte_query: ::std::option::Option<i8>,
|
3344 + | pub(crate) range_short_query: ::std::option::Option<i16>,
|
3345 + | pub(crate) range_integer_query: ::std::option::Option<i32>,
|
3346 + | pub(crate) range_long_query: ::std::option::Option<i64>,
|
3347 + | pub(crate) enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
3348 + | pub(crate) length_string_list_query:
|
3349 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3350 + | pub(crate) length_list_pattern_string_query:
|
3351 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3352 + | pub(crate) length_string_set_query:
|
3353 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3354 + | pub(crate) range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
3355 + | pub(crate) range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
3356 + | pub(crate) range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
3357 + | pub(crate) range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
3358 + | pub(crate) range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
3359 + | pub(crate) range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
3360 + | pub(crate) range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
3361 + | pub(crate) range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
3362 + | pub(crate) enum_string_list_query:
|
3363 + | ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
3364 + | }
|
3365 + | impl Builder {
|
3366 + | #[allow(missing_docs)] // documentation missing in model
|
3367 + | pub fn length_string_label(mut self, input: ::std::string::String) -> Self {
|
3368 + | self.length_string_label = Some(input);
|
3369 + | self
|
3370 + | }
|
3371 + | #[allow(missing_docs)] // documentation missing in model
|
3372 + | pub fn range_integer_label(mut self, input: i32) -> Self {
|
3373 + | self.range_integer_label = Some(input);
|
3374 + | self
|
3375 + | }
|
3376 + | #[allow(missing_docs)] // documentation missing in model
|
3377 + | pub fn range_short_label(mut self, input: i16) -> Self {
|
3378 + | self.range_short_label = Some(input);
|
3379 + | self
|
3380 + | }
|
3381 + | #[allow(missing_docs)] // documentation missing in model
|
3382 + | pub fn range_long_label(mut self, input: i64) -> Self {
|
3383 + | self.range_long_label = Some(input);
|
3384 + | self
|
3385 + | }
|
3386 + | #[allow(missing_docs)] // documentation missing in model
|
3387 + | pub fn range_byte_label(mut self, input: i8) -> Self {
|
3388 + | self.range_byte_label = Some(input);
|
3389 + | self
|
3390 + | }
|
3391 + | #[allow(missing_docs)] // documentation missing in model
|
3392 + | pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
|
3393 + | self.enum_string_label = Some(input);
|
3394 + | self
|
3395 + | }
|
3396 + | #[allow(missing_docs)] // documentation missing in model
|
3397 + | pub fn length_string_header_map(
|
3398 + | mut self,
|
3399 + | input: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3400 + | ) -> Self {
|
3401 + | self.length_string_header_map = Some(input);
|
3402 + | self
|
3403 + | }
|
3404 + | #[allow(missing_docs)] // documentation missing in model
|
3405 + | pub fn length_string_header(
|
3406 + | mut self,
|
3407 + | input: ::std::option::Option<::std::string::String>,
|
3408 + | ) -> Self {
|
3409 + | self.length_string_header = input;
|
3410 + | self
|
3411 + | }
|
3412 + | #[allow(missing_docs)] // documentation missing in model
|
3413 + | pub fn range_integer_header(mut self, input: i32) -> Self {
|
3414 + | self.range_integer_header = Some(input);
|
3415 + | self
|
3416 + | }
|
3417 + | #[allow(missing_docs)] // documentation missing in model
|
3418 + | pub fn range_short_header(mut self, input: i16) -> Self {
|
3419 + | self.range_short_header = Some(input);
|
3420 + | self
|
3421 + | }
|
3422 + | #[allow(missing_docs)] // documentation missing in model
|
3423 + | pub fn range_long_header(mut self, input: i64) -> Self {
|
3424 + | self.range_long_header = Some(input);
|
3425 + | self
|
3426 + | }
|
3427 + | #[allow(missing_docs)] // documentation missing in model
|
3428 + | pub fn range_byte_header(mut self, input: i8) -> Self {
|
3429 + | self.range_byte_header = Some(input);
|
3430 + | self
|
3431 + | }
|
3432 + | #[allow(missing_docs)] // documentation missing in model
|
3433 + | pub fn length_string_set_header(
|
3434 + | mut self,
|
3435 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3436 + | ) -> Self {
|
3437 + | self.length_string_set_header = input;
|
3438 + | self
|
3439 + | }
|
3440 + | #[allow(missing_docs)] // documentation missing in model
|
3441 + | pub fn list_length_string_header(
|
3442 + | mut self,
|
3443 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3444 + | ) -> Self {
|
3445 + | self.list_length_string_header = input;
|
3446 + | self
|
3447 + | }
|
3448 + | #[allow(missing_docs)] // documentation missing in model
|
3449 + | pub fn length_list_pattern_string_header(
|
3450 + | mut self,
|
3451 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3452 + | ) -> Self {
|
3453 + | self.length_list_pattern_string_header = input;
|
3454 + | self
|
3455 + | }
|
3456 + | #[allow(missing_docs)] // documentation missing in model
|
3457 + | pub fn length_set_pattern_string_header(
|
3458 + | mut self,
|
3459 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3460 + | ) -> Self {
|
3461 + | self.length_set_pattern_string_header = input;
|
3462 + | self
|
3463 + | }
|
3464 + | #[allow(missing_docs)] // documentation missing in model
|
3465 + | pub fn range_byte_set_header(
|
3466 + | mut self,
|
3467 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
3468 + | ) -> Self {
|
3469 + | self.range_byte_set_header = input;
|
3470 + | self
|
3471 + | }
|
3472 + | #[allow(missing_docs)] // documentation missing in model
|
3473 + | pub fn range_short_set_header(
|
3474 + | mut self,
|
3475 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
3476 + | ) -> Self {
|
3477 + | self.range_short_set_header = input;
|
3478 + | self
|
3479 + | }
|
3480 + | #[allow(missing_docs)] // documentation missing in model
|
3481 + | pub fn range_integer_set_header(
|
3482 + | mut self,
|
3483 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
3484 + | ) -> Self {
|
3485 + | self.range_integer_set_header = input;
|
3486 + | self
|
3487 + | }
|
3488 + | #[allow(missing_docs)] // documentation missing in model
|
3489 + | pub fn range_long_set_header(
|
3490 + | mut self,
|
3491 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
3492 + | ) -> Self {
|
3493 + | self.range_long_set_header = input;
|
3494 + | self
|
3495 + | }
|
3496 + | #[allow(missing_docs)] // documentation missing in model
|
3497 + | pub fn range_byte_list_header(
|
3498 + | mut self,
|
3499 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
3500 + | ) -> Self {
|
3501 + | self.range_byte_list_header = input;
|
3502 + | self
|
3503 + | }
|
3504 + | #[allow(missing_docs)] // documentation missing in model
|
3505 + | pub fn range_short_list_header(
|
3506 + | mut self,
|
3507 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
3508 + | ) -> Self {
|
3509 + | self.range_short_list_header = input;
|
3510 + | self
|
3511 + | }
|
3512 + | #[allow(missing_docs)] // documentation missing in model
|
3513 + | pub fn range_integer_list_header(
|
3514 + | mut self,
|
3515 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
3516 + | ) -> Self {
|
3517 + | self.range_integer_list_header = input;
|
3518 + | self
|
3519 + | }
|
3520 + | #[allow(missing_docs)] // documentation missing in model
|
3521 + | pub fn range_long_list_header(
|
3522 + | mut self,
|
3523 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
3524 + | ) -> Self {
|
3525 + | self.range_long_list_header = input;
|
3526 + | self
|
3527 + | }
|
3528 + | #[allow(missing_docs)] // documentation missing in model
|
3529 + | pub fn length_string_query(
|
3530 + | mut self,
|
3531 + | input: ::std::option::Option<::std::string::String>,
|
3532 + | ) -> Self {
|
3533 + | self.length_string_query = input;
|
3534 + | self
|
3535 + | }
|
3536 + | #[allow(missing_docs)] // documentation missing in model
|
3537 + | pub fn range_byte_query(mut self, input: i8) -> Self {
|
3538 + | self.range_byte_query = Some(input);
|
3539 + | self
|
3540 + | }
|
3541 + | #[allow(missing_docs)] // documentation missing in model
|
3542 + | pub fn range_short_query(mut self, input: i16) -> Self {
|
3543 + | self.range_short_query = Some(input);
|
3544 + | self
|
3545 + | }
|
3546 + | #[allow(missing_docs)] // documentation missing in model
|
3547 + | pub fn range_integer_query(mut self, input: i32) -> Self {
|
3548 + | self.range_integer_query = Some(input);
|
3549 + | self
|
3550 + | }
|
3551 + | #[allow(missing_docs)] // documentation missing in model
|
3552 + | pub fn range_long_query(mut self, input: i64) -> Self {
|
3553 + | self.range_long_query = Some(input);
|
3554 + | self
|
3555 + | }
|
3556 + | #[allow(missing_docs)] // documentation missing in model
|
3557 + | pub fn enum_string_query(
|
3558 + | mut self,
|
3559 + | input: ::std::option::Option<crate::model::EnumString>,
|
3560 + | ) -> Self {
|
3561 + | self.enum_string_query = input;
|
3562 + | self
|
3563 + | }
|
3564 + | #[allow(missing_docs)] // documentation missing in model
|
3565 + | pub fn length_string_list_query(
|
3566 + | mut self,
|
3567 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3568 + | ) -> Self {
|
3569 + | self.length_string_list_query = input;
|
3570 + | self
|
3571 + | }
|
3572 + | #[allow(missing_docs)] // documentation missing in model
|
3573 + | pub fn length_list_pattern_string_query(
|
3574 + | mut self,
|
3575 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3576 + | ) -> Self {
|
3577 + | self.length_list_pattern_string_query = input;
|
3578 + | self
|
3579 + | }
|
3580 + | #[allow(missing_docs)] // documentation missing in model
|
3581 + | pub fn length_string_set_query(
|
3582 + | mut self,
|
3583 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3584 + | ) -> Self {
|
3585 + | self.length_string_set_query = input;
|
3586 + | self
|
3587 + | }
|
3588 + | #[allow(missing_docs)] // documentation missing in model
|
3589 + | pub fn range_byte_list_query(
|
3590 + | mut self,
|
3591 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
3592 + | ) -> Self {
|
3593 + | self.range_byte_list_query = input;
|
3594 + | self
|
3595 + | }
|
3596 + | #[allow(missing_docs)] // documentation missing in model
|
3597 + | pub fn range_short_list_query(
|
3598 + | mut self,
|
3599 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
3600 + | ) -> Self {
|
3601 + | self.range_short_list_query = input;
|
3602 + | self
|
3603 + | }
|
3604 + | #[allow(missing_docs)] // documentation missing in model
|
3605 + | pub fn range_integer_list_query(
|
3606 + | mut self,
|
3607 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
3608 + | ) -> Self {
|
3609 + | self.range_integer_list_query = input;
|
3610 + | self
|
3611 + | }
|
3612 + | #[allow(missing_docs)] // documentation missing in model
|
3613 + | pub fn range_long_list_query(
|
3614 + | mut self,
|
3615 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
3616 + | ) -> Self {
|
3617 + | self.range_long_list_query = input;
|
3618 + | self
|
3619 + | }
|
3620 + | #[allow(missing_docs)] // documentation missing in model
|
3621 + | pub fn range_byte_set_query(
|
3622 + | mut self,
|
3623 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
3624 + | ) -> Self {
|
3625 + | self.range_byte_set_query = input;
|
3626 + | self
|
3627 + | }
|
3628 + | #[allow(missing_docs)] // documentation missing in model
|
3629 + | pub fn range_short_set_query(
|
3630 + | mut self,
|
3631 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
3632 + | ) -> Self {
|
3633 + | self.range_short_set_query = input;
|
3634 + | self
|
3635 + | }
|
3636 + | #[allow(missing_docs)] // documentation missing in model
|
3637 + | pub fn range_integer_set_query(
|
3638 + | mut self,
|
3639 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
3640 + | ) -> Self {
|
3641 + | self.range_integer_set_query = input;
|
3642 + | self
|
3643 + | }
|
3644 + | #[allow(missing_docs)] // documentation missing in model
|
3645 + | pub fn range_long_set_query(
|
3646 + | mut self,
|
3647 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
3648 + | ) -> Self {
|
3649 + | self.range_long_set_query = input;
|
3650 + | self
|
3651 + | }
|
3652 + | #[allow(missing_docs)] // documentation missing in model
|
3653 + | pub fn enum_string_list_query(
|
3654 + | mut self,
|
3655 + | input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
3656 + | ) -> Self {
|
3657 + | self.enum_string_list_query = input;
|
3658 + | self
|
3659 + | }
|
3660 + | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
3661 + | ///
|
3662 + | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
3663 + | ///
|
3664 + | pub fn build(
|
3665 + | self,
|
3666 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
3667 + | {
|
3668 + | self.build_enforcing_required_and_enum_traits()
|
3669 + | }
|
3670 + | fn build_enforcing_required_and_enum_traits(
|
3671 + | self,
|
3672 + | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
3673 + | {
|
3674 + | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
3675 + | length_string_label: self
|
3676 + | .length_string_label
|
3677 + | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
3678 + | range_integer_label: self.range_integer_label.unwrap_or(0i32),
|
3679 + | range_short_label: self.range_short_label.unwrap_or(0i16),
|
3680 + | range_long_label: self.range_long_label.unwrap_or(0i64),
|
3681 + | range_byte_label: self.range_byte_label.unwrap_or(0i8),
|
3682 + | enum_string_label: self
|
3683 + | .enum_string_label
|
3684 + | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
3685 + | length_string_header_map: self
|
3686 + | .length_string_header_map
|
3687 + | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
3688 + | length_string_header: self.length_string_header,
|
3689 + | range_integer_header: self.range_integer_header.unwrap_or(0i32),
|
3690 + | range_short_header: self.range_short_header.unwrap_or(0i16),
|
3691 + | range_long_header: self.range_long_header.unwrap_or(0i64),
|
3692 + | range_byte_header: self.range_byte_header.unwrap_or(0i8),
|
3693 + | length_string_set_header: self.length_string_set_header,
|
3694 + | list_length_string_header: self.list_length_string_header,
|
3695 + | length_list_pattern_string_header: self.length_list_pattern_string_header,
|
3696 + | length_set_pattern_string_header: self.length_set_pattern_string_header,
|
3697 + | range_byte_set_header: self.range_byte_set_header,
|
3698 + | range_short_set_header: self.range_short_set_header,
|
3699 + | range_integer_set_header: self.range_integer_set_header,
|
3700 + | range_long_set_header: self.range_long_set_header,
|
3701 + | range_byte_list_header: self.range_byte_list_header,
|
3702 + | range_short_list_header: self.range_short_list_header,
|
3703 + | range_integer_list_header: self.range_integer_list_header,
|
3704 + | range_long_list_header: self.range_long_list_header,
|
3705 + | length_string_query: self.length_string_query,
|
3706 + | range_byte_query: self.range_byte_query.unwrap_or(0i8),
|
3707 + | range_short_query: self.range_short_query.unwrap_or(0i16),
|
3708 + | range_integer_query: self.range_integer_query.unwrap_or(0i32),
|
3709 + | range_long_query: self.range_long_query.unwrap_or(0i64),
|
3710 + | enum_string_query: self.enum_string_query,
|
3711 + | length_string_list_query: self.length_string_list_query,
|
3712 + | length_list_pattern_string_query: self.length_list_pattern_string_query,
|
3713 + | length_string_set_query: self.length_string_set_query,
|
3714 + | range_byte_list_query: self.range_byte_list_query,
|
3715 + | range_short_list_query: self.range_short_list_query,
|
3716 + | range_integer_list_query: self.range_integer_list_query,
|
3717 + | range_long_list_query: self.range_long_list_query,
|
3718 + | range_byte_set_query: self.range_byte_set_query,
|
3719 + | range_short_set_query: self.range_short_set_query,
|
3720 + | range_integer_set_query: self.range_integer_set_query,
|
3721 + | range_long_set_query: self.range_long_set_query,
|
3722 + | enum_string_list_query: self.enum_string_list_query,
|
3723 + | })
|
3724 + | }
|
3725 + | }
|
3726 + | }
|
3727 + | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3728 + | pub(crate) mod constrained_http_payload_bound_shape_operation_input_internal {
|
3729 + |
|
3730 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3731 + | /// Holds one variant for each of the ways the builder can fail.
|
3732 + | #[non_exhaustive]
|
3733 + | #[allow(clippy::enum_variant_names)]
|
3734 + | pub(crate) enum ConstraintViolation {
|
3735 + | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
3736 + | MissingHttpPayloadBoundConstrainedShape,
|
3737 + | /// Constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
3738 + | #[doc(hidden)]
|
3739 + | HttpPayloadBoundConstrainedShape(crate::model::con_a_internal::ConstraintViolation),
|
3740 + | }
|
3741 + | impl ::std::fmt::Display for ConstraintViolation {
|
3742 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3743 + | match self {
|
3744 + | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
3745 + | ConstraintViolation::HttpPayloadBoundConstrainedShape(_) => write!(f, "constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
3746 + | }
|
3747 + | }
|
3748 + | }
|
3749 + | impl ::std::error::Error for ConstraintViolation {}
|
3750 + | impl ConstraintViolation {
|
3751 + | pub(crate) fn as_validation_exception_field(
|
3752 + | self,
|
3753 + | path: ::std::string::String,
|
3754 + | ) -> crate::model::ValidationExceptionField {
|
3755 + | match self {
|
3756 + | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => crate::model::ValidationExceptionField {
|
3757 + | message: format!("Value at '{}/httpPayloadBoundConstrainedShape' failed to satisfy constraint: Member must not be null", path),
|
3758 + | path: path + "/httpPayloadBoundConstrainedShape",
|
3759 + | },
|
3760 + | ConstraintViolation::HttpPayloadBoundConstrainedShape(inner) => inner.as_validation_exception_field(path + "/httpPayloadBoundConstrainedShape"),
|
3761 + | }
|
3762 + | }
|
3763 + | }
|
3764 + | impl ::std::convert::From<ConstraintViolation>
|
3765 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3766 + | {
|
3767 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3768 + | let first_validation_exception_field =
|
3769 + | constraint_violation.as_validation_exception_field("".to_owned());
|
3770 + | let validation_exception = crate::error::ValidationException {
|
3771 + | message: format!(
|
3772 + | "1 validation error detected. {}",
|
3773 + | &first_validation_exception_field.message
|
3774 + | ),
|
3775 + | field_list: Some(vec![first_validation_exception_field]),
|
3776 + | };
|
3777 + | Self::ConstraintViolation(
|
3778 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3779 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3780 + | )
|
3781 + | }
|
3782 + | }
|
3783 + | impl ::std::convert::From<Builder>
|
3784 + | for crate::constrained::MaybeConstrained<
|
3785 + | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput,
|
3786 + | >
|
3787 + | {
|
3788 + | fn from(builder: Builder) -> Self {
|
3789 + | Self::Unconstrained(builder)
|
3790 + | }
|
3791 + | }
|
3792 + | impl ::std::convert::TryFrom<Builder>
|
3793 + | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
3794 + | {
|
3795 + | type Error = ConstraintViolation;
|
3796 + |
|
3797 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3798 + | builder.build()
|
3799 + | }
|
3800 + | }
|
3801 + | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3802 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3803 + | pub(crate) struct Builder {
|
3804 + | pub(crate) http_payload_bound_constrained_shape:
|
3805 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
3806 + | }
|
3807 + | impl Builder {
|
3808 + | #[allow(missing_docs)] // documentation missing in model
|
3809 + | pub(crate) fn set_http_payload_bound_constrained_shape(
|
3810 + | mut self,
|
3811 + | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
3812 + | ) -> Self {
|
3813 + | self.http_payload_bound_constrained_shape = Some(input.into());
|
3814 + | self
|
3815 + | }
|
3816 + | /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3817 + | ///
|
3818 + | /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) if a [`ConstraintViolation`] occurs.
|
3819 + | ///
|
3820 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
3821 + | pub fn build(
|
3822 + | self,
|
3823 + | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
3824 + | {
|
3825 + | self.build_enforcing_all_constraints()
|
3826 + | }
|
3827 + | fn build_enforcing_all_constraints(
|
3828 + | self,
|
3829 + | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
3830 + | {
|
3831 + | Ok(
|
3832 + | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
3833 + | http_payload_bound_constrained_shape: self
|
3834 + | .http_payload_bound_constrained_shape
|
3835 + | .map(|v| match v {
|
3836 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3837 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3838 + | })
|
3839 + | .map(|res| {
|
3840 + | res.map_err(ConstraintViolation::HttpPayloadBoundConstrainedShape)
|
3841 + | })
|
3842 + | .transpose()?
|
3843 + | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
3844 + | },
|
3845 + | )
|
3846 + | }
|
3847 + | }
|
3848 + | }
|
3849 + | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3850 + | pub mod constrained_http_payload_bound_shape_operation_input {
|
3851 + |
|
3852 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3853 + | /// Holds one variant for each of the ways the builder can fail.
|
3854 + | #[allow(clippy::enum_variant_names)]
|
3855 + | pub enum ConstraintViolation {
|
3856 + | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
3857 + | MissingHttpPayloadBoundConstrainedShape,
|
3858 + | }
|
3859 + | impl ::std::fmt::Display for ConstraintViolation {
|
3860 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3861 + | match self {
|
3862 + | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
3863 + | }
|
3864 + | }
|
3865 + | }
|
3866 + | impl ::std::error::Error for ConstraintViolation {}
|
3867 + | impl ::std::convert::TryFrom<Builder>
|
3868 + | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
3869 + | {
|
3870 + | type Error = ConstraintViolation;
|
3871 + |
|
3872 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3873 + | builder.build()
|
3874 + | }
|
3875 + | }
|
3876 + | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3877 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3878 + | pub struct Builder {
|
3879 + | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
3880 + | }
|
3881 + | impl Builder {
|
3882 + | #[allow(missing_docs)] // documentation missing in model
|
3883 + | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
3884 + | self.http_payload_bound_constrained_shape = Some(input);
|
3885 + | self
|
3886 + | }
|
3887 + | /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3888 + | ///
|
3889 + | /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) if you do not provide a value for all non-`Option`al members.
|
3890 + | ///
|
3891 + | pub fn build(
|
3892 + | self,
|
3893 + | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
3894 + | {
|
3895 + | self.build_enforcing_required_and_enum_traits()
|
3896 + | }
|
3897 + | fn build_enforcing_required_and_enum_traits(
|
3898 + | self,
|
3899 + | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
3900 + | {
|
3901 + | Ok(
|
3902 + | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
3903 + | http_payload_bound_constrained_shape: self
|
3904 + | .http_payload_bound_constrained_shape
|
3905 + | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
3906 + | },
|
3907 + | )
|
3908 + | }
|
3909 + | }
|
3910 + | }
|
3911 + | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3912 + | pub(crate) mod constrained_recursive_shapes_operation_input_internal {
|
3913 + |
|
3914 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3915 + | /// Holds one variant for each of the ways the builder can fail.
|
3916 + | #[non_exhaustive]
|
3917 + | #[allow(clippy::enum_variant_names)]
|
3918 + | pub(crate) enum ConstraintViolation {
|
3919 + | /// Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
3920 + | #[doc(hidden)]
|
3921 + | Nested(crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation),
|
3922 + | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
3923 + | MissingRecursiveList,
|
3924 + | /// Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
3925 + | #[doc(hidden)]
|
3926 + | RecursiveList(crate::model::recursive_list_internal::ConstraintViolation),
|
3927 + | }
|
3928 + | impl ::std::fmt::Display for ConstraintViolation {
|
3929 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3930 + | match self {
|
3931 + | ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
3932 + | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
3933 + | ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
3934 + | }
|
3935 + | }
|
3936 + | }
|
3937 + | impl ::std::error::Error for ConstraintViolation {}
|
3938 + | impl ConstraintViolation {
|
3939 + | pub(crate) fn as_validation_exception_field(
|
3940 + | self,
|
3941 + | path: ::std::string::String,
|
3942 + | ) -> crate::model::ValidationExceptionField {
|
3943 + | match self {
|
3944 + | ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
|
3945 + | ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
|
3946 + | message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
|
3947 + | path: path + "/recursiveList",
|
3948 + | },
|
3949 + | ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
|
3950 + | }
|
3951 + | }
|
3952 + | }
|
3953 + | impl ::std::convert::From<ConstraintViolation>
|
3954 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3955 + | {
|
3956 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3957 + | let first_validation_exception_field =
|
3958 + | constraint_violation.as_validation_exception_field("".to_owned());
|
3959 + | let validation_exception = crate::error::ValidationException {
|
3960 + | message: format!(
|
3961 + | "1 validation error detected. {}",
|
3962 + | &first_validation_exception_field.message
|
3963 + | ),
|
3964 + | field_list: Some(vec![first_validation_exception_field]),
|
3965 + | };
|
3966 + | Self::ConstraintViolation(
|
3967 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3968 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3969 + | )
|
3970 + | }
|
3971 + | }
|
3972 + | impl ::std::convert::From<Builder>
|
3973 + | for crate::constrained::MaybeConstrained<
|
3974 + | crate::input::ConstrainedRecursiveShapesOperationInput,
|
3975 + | >
|
3976 + | {
|
3977 + | fn from(builder: Builder) -> Self {
|
3978 + | Self::Unconstrained(builder)
|
3979 + | }
|
3980 + | }
|
3981 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
3982 + | type Error = ConstraintViolation;
|
3983 + |
|
3984 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3985 + | builder.build()
|
3986 + | }
|
3987 + | }
|
3988 + | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3989 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3990 + | pub(crate) struct Builder {
|
3991 + | pub(crate) nested: ::std::option::Option<
|
3992 + | crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
|
3993 + | >,
|
3994 + | pub(crate) recursive_list: ::std::option::Option<
|
3995 + | crate::constrained::MaybeConstrained<
|
3996 + | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
3997 + | >,
|
3998 + | >,
|
3999 + | }
|
4000 + | impl Builder {
|
4001 + | #[allow(missing_docs)] // documentation missing in model
|
4002 + | pub(crate) fn set_nested(
|
4003 + | mut self,
|
4004 + | input: Option<
|
4005 + | impl ::std::convert::Into<
|
4006 + | crate::constrained::MaybeConstrained<
|
4007 + | crate::model::RecursiveShapesInputOutputNested1,
|
4008 + | >,
|
4009 + | >,
|
4010 + | >,
|
4011 + | ) -> Self {
|
4012 + | self.nested = input.map(|v| v.into());
|
4013 + | self
|
4014 + | }
|
4015 + | #[allow(missing_docs)] // documentation missing in model
|
4016 + | pub(crate) fn set_recursive_list(
|
4017 + | mut self,
|
4018 + | input: impl ::std::convert::Into<
|
4019 + | crate::constrained::MaybeConstrained<
|
4020 + | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
4021 + | >,
|
4022 + | >,
|
4023 + | ) -> Self {
|
4024 + | self.recursive_list = Some(input.into());
|
4025 + | self
|
4026 + | }
|
4027 + | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4028 + | ///
|
4029 + | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
4030 + | ///
|
4031 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4032 + | pub fn build(
|
4033 + | self,
|
4034 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4035 + | {
|
4036 + | self.build_enforcing_all_constraints()
|
4037 + | }
|
4038 + | fn build_enforcing_all_constraints(
|
4039 + | self,
|
4040 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4041 + | {
|
4042 + | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4043 + | nested: self
|
4044 + | .nested
|
4045 + | .map(|v| match v {
|
4046 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4047 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4048 + | })
|
4049 + | .map(|res| res.map_err(ConstraintViolation::Nested))
|
5700 4050 | .transpose()?,
|
5701 - | range_long_list_query: self
|
5702 - | .range_long_list_query
|
4051 + | recursive_list: self
|
4052 + | .recursive_list
|
5703 4053 | .map(|v| match v {
|
5704 4054 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5705 4055 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5706 4056 | })
|
5707 4057 | .map(|res| {
|
5708 4058 | res.map(|v| v.into())
|
5709 - | .map_err(ConstraintViolation::RangeLongListQuery)
|
5710 - | })
|
5711 - | .transpose()?,
|
5712 - | range_byte_set_query: self
|
5713 - | .range_byte_set_query
|
5714 - | .map(|v| match v {
|
5715 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5716 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5717 - | })
|
5718 - | .map(|res| res.map_err(ConstraintViolation::RangeByteSetQuery))
|
5719 - | .transpose()?
|
5720 - | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
5721 - | range_short_set_query: self
|
5722 - | .range_short_set_query
|
5723 - | .map(|v| match v {
|
5724 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5725 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5726 - | })
|
5727 - | .map(|res| res.map_err(ConstraintViolation::RangeShortSetQuery))
|
5728 - | .transpose()?
|
5729 - | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
5730 - | range_integer_set_query: self
|
5731 - | .range_integer_set_query
|
5732 - | .map(|v| match v {
|
5733 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5734 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4059 + | .map_err(ConstraintViolation::RecursiveList)
|
5735 4060 | })
|
5736 - | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetQuery))
|
5737 4061 | .transpose()?
|
5738 - | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
5739 - | range_long_set_query: self
|
5740 - | .range_long_set_query
|
4062 + | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4063 + | })
|
4064 + | }
|
4065 + | }
|
4066 + | }
|
4067 + | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4068 + | pub mod constrained_recursive_shapes_operation_input {
|
4069 + |
|
4070 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4071 + | /// Holds one variant for each of the ways the builder can fail.
|
4072 + | #[allow(clippy::enum_variant_names)]
|
4073 + | pub enum ConstraintViolation {
|
4074 + | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4075 + | MissingRecursiveList,
|
4076 + | }
|
4077 + | impl ::std::fmt::Display for ConstraintViolation {
|
4078 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4079 + | match self {
|
4080 + | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4081 + | }
|
4082 + | }
|
4083 + | }
|
4084 + | impl ::std::error::Error for ConstraintViolation {}
|
4085 + | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
4086 + | type Error = ConstraintViolation;
|
4087 + |
|
4088 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4089 + | builder.build()
|
4090 + | }
|
4091 + | }
|
4092 + | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4093 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4094 + | pub struct Builder {
|
4095 + | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4096 + | pub(crate) recursive_list:
|
4097 + | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
4098 + | }
|
4099 + | impl Builder {
|
4100 + | #[allow(missing_docs)] // documentation missing in model
|
4101 + | pub fn nested(
|
4102 + | mut self,
|
4103 + | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4104 + | ) -> Self {
|
4105 + | self.nested = input;
|
4106 + | self
|
4107 + | }
|
4108 + | #[allow(missing_docs)] // documentation missing in model
|
4109 + | pub fn recursive_list(
|
4110 + | mut self,
|
4111 + | input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
4112 + | ) -> Self {
|
4113 + | self.recursive_list = Some(input);
|
4114 + | self
|
4115 + | }
|
4116 + | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4117 + | ///
|
4118 + | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
4119 + | ///
|
4120 + | pub fn build(
|
4121 + | self,
|
4122 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4123 + | {
|
4124 + | self.build_enforcing_required_and_enum_traits()
|
4125 + | }
|
4126 + | fn build_enforcing_required_and_enum_traits(
|
4127 + | self,
|
4128 + | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
4129 + | {
|
4130 + | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4131 + | nested: self.nested,
|
4132 + | recursive_list: self
|
4133 + | .recursive_list
|
4134 + | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4135 + | })
|
4136 + | }
|
4137 + | }
|
4138 + | }
|
4139 + | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4140 + | pub(crate) mod query_params_targeting_length_map_operation_input_internal {
|
4141 + |
|
4142 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4143 + | /// Holds one variant for each of the ways the builder can fail.
|
4144 + | #[non_exhaustive]
|
4145 + | #[allow(clippy::enum_variant_names)]
|
4146 + | pub(crate) enum ConstraintViolation {
|
4147 + | /// Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
4148 + | #[doc(hidden)]
|
4149 + | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
4150 + | }
|
4151 + | impl ::std::fmt::Display for ConstraintViolation {
|
4152 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4153 + | match self {
|
4154 + | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
4155 + | }
|
4156 + | }
|
4157 + | }
|
4158 + | impl ::std::error::Error for ConstraintViolation {}
|
4159 + | impl ConstraintViolation {
|
4160 + | pub(crate) fn as_validation_exception_field(
|
4161 + | self,
|
4162 + | path: ::std::string::String,
|
4163 + | ) -> crate::model::ValidationExceptionField {
|
4164 + | match self {
|
4165 + | ConstraintViolation::LengthMap(inner) => {
|
4166 + | inner.as_validation_exception_field(path + "/lengthMap")
|
4167 + | }
|
4168 + | }
|
4169 + | }
|
4170 + | }
|
4171 + | impl ::std::convert::From<ConstraintViolation>
|
4172 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4173 + | {
|
4174 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4175 + | let first_validation_exception_field =
|
4176 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4177 + | let validation_exception = crate::error::ValidationException {
|
4178 + | message: format!(
|
4179 + | "1 validation error detected. {}",
|
4180 + | &first_validation_exception_field.message
|
4181 + | ),
|
4182 + | field_list: Some(vec![first_validation_exception_field]),
|
4183 + | };
|
4184 + | Self::ConstraintViolation(
|
4185 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4186 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4187 + | )
|
4188 + | }
|
4189 + | }
|
4190 + | impl ::std::convert::From<Builder>
|
4191 + | for crate::constrained::MaybeConstrained<
|
4192 + | crate::input::QueryParamsTargetingLengthMapOperationInput,
|
4193 + | >
|
4194 + | {
|
4195 + | fn from(builder: Builder) -> Self {
|
4196 + | Self::Unconstrained(builder)
|
4197 + | }
|
4198 + | }
|
4199 + | impl ::std::convert::TryFrom<Builder>
|
4200 + | for crate::input::QueryParamsTargetingLengthMapOperationInput
|
4201 + | {
|
4202 + | type Error = ConstraintViolation;
|
4203 + |
|
4204 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4205 + | builder.build()
|
4206 + | }
|
4207 + | }
|
4208 + | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4209 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4210 + | pub(crate) struct Builder {
|
4211 + | pub(crate) length_map:
|
4212 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4213 + | }
|
4214 + | impl Builder {
|
4215 + | #[allow(missing_docs)] // documentation missing in model
|
4216 + | pub(crate) fn set_length_map(
|
4217 + | mut self,
|
4218 + | input: Option<
|
4219 + | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4220 + | >,
|
4221 + | ) -> Self {
|
4222 + | self.length_map = input.map(|v| v.into());
|
4223 + | self
|
4224 + | }
|
4225 + | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4226 + | ///
|
4227 + | /// The builder fails to construct a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
4228 + | ///
|
4229 + | pub fn build(
|
4230 + | self,
|
4231 + | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
4232 + | {
|
4233 + | self.build_enforcing_all_constraints()
|
4234 + | }
|
4235 + | fn build_enforcing_all_constraints(
|
4236 + | self,
|
4237 + | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
4238 + | {
|
4239 + | Ok(crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4240 + | length_map: self
|
4241 + | .length_map
|
5741 4242 | .map(|v| match v {
|
5742 4243 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5743 4244 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5744 4245 | })
|
5745 - | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
4246 + | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
5746 4247 | .transpose()?
|
5747 - | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
5748 - | enum_string_list_query: self
|
5749 - | .enum_string_list_query
|
5750 - | .map(|v| match v {
|
5751 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5752 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5753 - | })
|
5754 - | .map(|res| {
|
5755 - | res.map(|v| v.into())
|
5756 - | .map_err(ConstraintViolation::EnumStringListQuery)
|
5757 - | })
|
5758 - | .transpose()?,
|
4248 + | .map(|v: crate::model::ConBMap| v.into()),
|
5759 4249 | })
|
5760 4250 | }
|
5761 4251 | }
|
5762 4252 | }
|
5763 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5764 - | pub mod constrained_http_bound_shapes_operation_input {
|
4253 + | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4254 + | pub mod query_params_targeting_length_map_operation_input {
|
4255 + |
|
4256 + | impl ::std::convert::From<Builder> for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4257 + | fn from(builder: Builder) -> Self {
|
4258 + | builder.build()
|
4259 + | }
|
4260 + | }
|
4261 + | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4262 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4263 + | pub struct Builder {
|
4264 + | pub(crate) length_map: ::std::option::Option<
|
4265 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4266 + | >,
|
4267 + | }
|
4268 + | impl Builder {
|
4269 + | #[allow(missing_docs)] // documentation missing in model
|
4270 + | pub fn length_map(
|
4271 + | mut self,
|
4272 + | input: ::std::option::Option<
|
4273 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4274 + | >,
|
4275 + | ) -> Self {
|
4276 + | self.length_map = input;
|
4277 + | self
|
4278 + | }
|
4279 + | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4280 + | pub fn build(self) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4281 + | self.build_enforcing_required_and_enum_traits()
|
4282 + | }
|
4283 + | fn build_enforcing_required_and_enum_traits(
|
4284 + | self,
|
4285 + | ) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4286 + | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4287 + | length_map: self.length_map,
|
4288 + | }
|
4289 + | }
|
4290 + | }
|
4291 + | }
|
4292 + | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4293 + | pub(crate) mod query_params_targeting_map_of_length_string_operation_input_internal {
|
4294 + |
|
4295 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4296 + | /// Holds one variant for each of the ways the builder can fail.
|
4297 + | #[non_exhaustive]
|
4298 + | #[allow(clippy::enum_variant_names)]
|
4299 + | pub(crate) enum ConstraintViolation {
|
4300 + | /// Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
4301 + | #[doc(hidden)]
|
4302 + | MapOfLengthString(crate::model::map_of_length_string_internal::ConstraintViolation),
|
4303 + | }
|
4304 + | impl ::std::fmt::Display for ConstraintViolation {
|
4305 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4306 + | match self {
|
4307 + | ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
4308 + | }
|
4309 + | }
|
4310 + | }
|
4311 + | impl ::std::error::Error for ConstraintViolation {}
|
4312 + | impl ConstraintViolation {
|
4313 + | pub(crate) fn as_validation_exception_field(
|
4314 + | self,
|
4315 + | path: ::std::string::String,
|
4316 + | ) -> crate::model::ValidationExceptionField {
|
4317 + | match self {
|
4318 + | ConstraintViolation::MapOfLengthString(inner) => {
|
4319 + | inner.as_validation_exception_field(path + "/mapOfLengthString")
|
4320 + | }
|
4321 + | }
|
4322 + | }
|
4323 + | }
|
4324 + | impl ::std::convert::From<ConstraintViolation>
|
4325 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4326 + | {
|
4327 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4328 + | let first_validation_exception_field =
|
4329 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4330 + | let validation_exception = crate::error::ValidationException {
|
4331 + | message: format!(
|
4332 + | "1 validation error detected. {}",
|
4333 + | &first_validation_exception_field.message
|
4334 + | ),
|
4335 + | field_list: Some(vec![first_validation_exception_field]),
|
4336 + | };
|
4337 + | Self::ConstraintViolation(
|
4338 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4339 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4340 + | )
|
4341 + | }
|
4342 + | }
|
4343 + | impl ::std::convert::From<Builder>
|
4344 + | for crate::constrained::MaybeConstrained<
|
4345 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
4346 + | >
|
4347 + | {
|
4348 + | fn from(builder: Builder) -> Self {
|
4349 + | Self::Unconstrained(builder)
|
4350 + | }
|
4351 + | }
|
4352 + | impl ::std::convert::TryFrom<Builder>
|
4353 + | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
4354 + | {
|
4355 + | type Error = ConstraintViolation;
|
4356 + |
|
4357 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4358 + | builder.build()
|
4359 + | }
|
4360 + | }
|
4361 + | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4362 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4363 + | pub(crate) struct Builder {
|
4364 + | pub(crate) map_of_length_string: ::std::option::Option<
|
4365 + | crate::constrained::MaybeConstrained<
|
4366 + | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
4367 + | >,
|
4368 + | >,
|
4369 + | }
|
4370 + | impl Builder {
|
4371 + | #[allow(missing_docs)] // documentation missing in model
|
4372 + | pub(crate) fn set_map_of_length_string(
|
4373 + | mut self,
|
4374 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
|
4375 + | ) -> Self {
|
4376 + | self.map_of_length_string = input.map(|v| v.into());
|
4377 + | self
|
4378 + | }
|
4379 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4380 + | ///
|
4381 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4382 + | ///
|
4383 + | pub fn build(
|
4384 + | self,
|
4385 + | ) -> Result<
|
4386 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
4387 + | ConstraintViolation,
|
4388 + | > {
|
4389 + | self.build_enforcing_all_constraints()
|
4390 + | }
|
4391 + | fn build_enforcing_all_constraints(
|
4392 + | self,
|
4393 + | ) -> Result<
|
4394 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
4395 + | ConstraintViolation,
|
4396 + | > {
|
4397 + | Ok(
|
4398 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4399 + | map_of_length_string: self
|
4400 + | .map_of_length_string
|
4401 + | .map(|v| match v {
|
4402 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4403 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4404 + | })
|
4405 + | .map(|res| {
|
4406 + | res.map(|v| v.into())
|
4407 + | .map_err(ConstraintViolation::MapOfLengthString)
|
4408 + | })
|
4409 + | .transpose()?,
|
4410 + | },
|
4411 + | )
|
4412 + | }
|
4413 + | }
|
4414 + | }
|
4415 + | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4416 + | pub mod query_params_targeting_map_of_length_string_operation_input {
|
4417 + |
|
4418 + | impl ::std::convert::From<Builder>
|
4419 + | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
4420 + | {
|
4421 + | fn from(builder: Builder) -> Self {
|
4422 + | builder.build()
|
4423 + | }
|
4424 + | }
|
4425 + | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4426 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4427 + | pub struct Builder {
|
4428 + | pub(crate) map_of_length_string: ::std::option::Option<
|
4429 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4430 + | >,
|
4431 + | }
|
4432 + | impl Builder {
|
4433 + | #[allow(missing_docs)] // documentation missing in model
|
4434 + | pub fn map_of_length_string(
|
4435 + | mut self,
|
4436 + | input: ::std::option::Option<
|
4437 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4438 + | >,
|
4439 + | ) -> Self {
|
4440 + | self.map_of_length_string = input;
|
4441 + | self
|
4442 + | }
|
4443 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4444 + | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4445 + | self.build_enforcing_required_and_enum_traits()
|
4446 + | }
|
4447 + | fn build_enforcing_required_and_enum_traits(
|
4448 + | self,
|
4449 + | ) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4450 + | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4451 + | map_of_length_string: self.map_of_length_string,
|
4452 + | }
|
4453 + | }
|
4454 + | }
|
4455 + | }
|
4456 + | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4457 + | pub(crate) mod query_params_targeting_map_of_list_of_length_string_operation_input_internal {
|
4458 + |
|
4459 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4460 + | /// Holds one variant for each of the ways the builder can fail.
|
4461 + | #[non_exhaustive]
|
4462 + | #[allow(clippy::enum_variant_names)]
|
4463 + | pub(crate) enum ConstraintViolation {
|
4464 + | /// Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
4465 + | #[doc(hidden)]
|
4466 + | MapOfListOfLengthString(
|
4467 + | crate::model::map_of_list_of_length_string_internal::ConstraintViolation,
|
4468 + | ),
|
4469 + | }
|
4470 + | impl ::std::fmt::Display for ConstraintViolation {
|
4471 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4472 + | match self {
|
4473 + | ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
4474 + | }
|
4475 + | }
|
4476 + | }
|
4477 + | impl ::std::error::Error for ConstraintViolation {}
|
4478 + | impl ConstraintViolation {
|
4479 + | pub(crate) fn as_validation_exception_field(
|
4480 + | self,
|
4481 + | path: ::std::string::String,
|
4482 + | ) -> crate::model::ValidationExceptionField {
|
4483 + | match self {
|
4484 + | ConstraintViolation::MapOfListOfLengthString(inner) => {
|
4485 + | inner.as_validation_exception_field(path + "/mapOfListOfLengthString")
|
4486 + | }
|
4487 + | }
|
4488 + | }
|
4489 + | }
|
4490 + | impl ::std::convert::From<ConstraintViolation>
|
4491 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4492 + | {
|
4493 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4494 + | let first_validation_exception_field =
|
4495 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4496 + | let validation_exception = crate::error::ValidationException {
|
4497 + | message: format!(
|
4498 + | "1 validation error detected. {}",
|
4499 + | &first_validation_exception_field.message
|
4500 + | ),
|
4501 + | field_list: Some(vec![first_validation_exception_field]),
|
4502 + | };
|
4503 + | Self::ConstraintViolation(
|
4504 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4505 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4506 + | )
|
4507 + | }
|
4508 + | }
|
4509 + | impl ::std::convert::From<Builder>
|
4510 + | for crate::constrained::MaybeConstrained<
|
4511 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
4512 + | >
|
4513 + | {
|
4514 + | fn from(builder: Builder) -> Self {
|
4515 + | Self::Unconstrained(builder)
|
4516 + | }
|
4517 + | }
|
4518 + | impl ::std::convert::TryFrom<Builder>
|
4519 + | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
4520 + | {
|
4521 + | type Error = ConstraintViolation;
|
4522 + |
|
4523 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4524 + | builder.build()
|
4525 + | }
|
4526 + | }
|
4527 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4528 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4529 + | pub(crate) struct Builder {
|
4530 + | pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
|
4531 + | }
|
4532 + | impl Builder {
|
4533 + | #[allow(missing_docs)] // documentation missing in model
|
4534 + | pub(crate) fn set_map_of_list_of_length_string(
|
4535 + | mut self,
|
4536 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>>,
|
4537 + | ) -> Self {
|
4538 + | self.map_of_list_of_length_string = input.map(|v| v.into());
|
4539 + | self
|
4540 + | }
|
4541 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4542 + | ///
|
4543 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4544 + | ///
|
4545 + | pub fn build(
|
4546 + | self,
|
4547 + | ) -> Result<
|
4548 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
4549 + | ConstraintViolation,
|
4550 + | > {
|
4551 + | self.build_enforcing_all_constraints()
|
4552 + | }
|
4553 + | fn build_enforcing_all_constraints(
|
4554 + | self,
|
4555 + | ) -> Result<
|
4556 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
4557 + | ConstraintViolation,
|
4558 + | > {
|
4559 + | Ok(
|
4560 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
4561 + | map_of_list_of_length_string: self
|
4562 + | .map_of_list_of_length_string
|
4563 + | .map(|v| match v {
|
4564 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4565 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4566 + | })
|
4567 + | .map(|res| {
|
4568 + | res.map(|v| v.into())
|
4569 + | .map_err(ConstraintViolation::MapOfListOfLengthString)
|
4570 + | })
|
4571 + | .transpose()?,
|
4572 + | },
|
4573 + | )
|
4574 + | }
|
4575 + | }
|
4576 + | }
|
4577 + | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4578 + | pub mod query_params_targeting_map_of_list_of_length_string_operation_input {
|
4579 + |
|
4580 + | impl ::std::convert::From<Builder>
|
4581 + | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
4582 + | {
|
4583 + | fn from(builder: Builder) -> Self {
|
4584 + | builder.build()
|
4585 + | }
|
4586 + | }
|
4587 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4588 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4589 + | pub struct Builder {
|
4590 + | pub(crate) map_of_list_of_length_string: ::std::option::Option<
|
4591 + | ::std::collections::HashMap<
|
4592 + | ::std::string::String,
|
4593 + | ::std::vec::Vec<::std::string::String>,
|
4594 + | >,
|
4595 + | >,
|
4596 + | }
|
4597 + | impl Builder {
|
4598 + | #[allow(missing_docs)] // documentation missing in model
|
4599 + | pub fn map_of_list_of_length_string(
|
4600 + | mut self,
|
4601 + | input: ::std::option::Option<
|
4602 + | ::std::collections::HashMap<
|
4603 + | ::std::string::String,
|
4604 + | ::std::vec::Vec<::std::string::String>,
|
4605 + | >,
|
4606 + | >,
|
4607 + | ) -> Self {
|
4608 + | self.map_of_list_of_length_string = input;
|
4609 + | self
|
4610 + | }
|
4611 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4612 + | pub fn build(
|
4613 + | self,
|
4614 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
4615 + | self.build_enforcing_required_and_enum_traits()
|
4616 + | }
|
4617 + | fn build_enforcing_required_and_enum_traits(
|
4618 + | self,
|
4619 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
4620 + | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
4621 + | map_of_list_of_length_string: self.map_of_list_of_length_string,
|
4622 + | }
|
4623 + | }
|
4624 + | }
|
4625 + | }
|
4626 + | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4627 + | pub(crate) mod query_params_targeting_map_of_set_of_length_string_operation_input_internal {
|
4628 + |
|
4629 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4630 + | /// Holds one variant for each of the ways the builder can fail.
|
4631 + | #[non_exhaustive]
|
4632 + | #[allow(clippy::enum_variant_names)]
|
4633 + | pub(crate) enum ConstraintViolation {
|
4634 + | /// Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
4635 + | #[doc(hidden)]
|
4636 + | MapOfSetOfLengthString(
|
4637 + | crate::model::map_of_set_of_length_string_internal::ConstraintViolation,
|
4638 + | ),
|
4639 + | }
|
4640 + | impl ::std::fmt::Display for ConstraintViolation {
|
4641 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4642 + | match self {
|
4643 + | ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
4644 + | }
|
4645 + | }
|
4646 + | }
|
4647 + | impl ::std::error::Error for ConstraintViolation {}
|
4648 + | impl ConstraintViolation {
|
4649 + | pub(crate) fn as_validation_exception_field(
|
4650 + | self,
|
4651 + | path: ::std::string::String,
|
4652 + | ) -> crate::model::ValidationExceptionField {
|
4653 + | match self {
|
4654 + | ConstraintViolation::MapOfSetOfLengthString(inner) => {
|
4655 + | inner.as_validation_exception_field(path + "/mapOfSetOfLengthString")
|
4656 + | }
|
4657 + | }
|
4658 + | }
|
4659 + | }
|
4660 + | impl ::std::convert::From<ConstraintViolation>
|
4661 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4662 + | {
|
4663 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4664 + | let first_validation_exception_field =
|
4665 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4666 + | let validation_exception = crate::error::ValidationException {
|
4667 + | message: format!(
|
4668 + | "1 validation error detected. {}",
|
4669 + | &first_validation_exception_field.message
|
4670 + | ),
|
4671 + | field_list: Some(vec![first_validation_exception_field]),
|
4672 + | };
|
4673 + | Self::ConstraintViolation(
|
4674 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4675 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4676 + | )
|
4677 + | }
|
4678 + | }
|
4679 + | impl ::std::convert::From<Builder>
|
4680 + | for crate::constrained::MaybeConstrained<
|
4681 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
4682 + | >
|
4683 + | {
|
4684 + | fn from(builder: Builder) -> Self {
|
4685 + | Self::Unconstrained(builder)
|
4686 + | }
|
4687 + | }
|
4688 + | impl ::std::convert::TryFrom<Builder>
|
4689 + | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
4690 + | {
|
4691 + | type Error = ConstraintViolation;
|
4692 + |
|
4693 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4694 + | builder.build()
|
4695 + | }
|
4696 + | }
|
4697 + | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4698 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4699 + | pub(crate) struct Builder {
|
4700 + | pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
|
4701 + | }
|
4702 + | impl Builder {
|
4703 + | #[allow(missing_docs)] // documentation missing in model
|
4704 + | pub(crate) fn set_map_of_set_of_length_string(
|
4705 + | mut self,
|
4706 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>>,
|
4707 + | ) -> Self {
|
4708 + | self.map_of_set_of_length_string = input.map(|v| v.into());
|
4709 + | self
|
4710 + | }
|
4711 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4712 + | ///
|
4713 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4714 + | ///
|
4715 + | pub fn build(
|
4716 + | self,
|
4717 + | ) -> Result<
|
4718 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
4719 + | ConstraintViolation,
|
4720 + | > {
|
4721 + | self.build_enforcing_all_constraints()
|
4722 + | }
|
4723 + | fn build_enforcing_all_constraints(
|
4724 + | self,
|
4725 + | ) -> Result<
|
4726 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
4727 + | ConstraintViolation,
|
4728 + | > {
|
4729 + | Ok(
|
4730 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
4731 + | map_of_set_of_length_string: self
|
4732 + | .map_of_set_of_length_string
|
4733 + | .map(|v| match v {
|
4734 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4735 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4736 + | })
|
4737 + | .map(|res| {
|
4738 + | res.map(|v| v.into())
|
4739 + | .map_err(ConstraintViolation::MapOfSetOfLengthString)
|
4740 + | })
|
4741 + | .transpose()?,
|
4742 + | },
|
4743 + | )
|
4744 + | }
|
4745 + | }
|
4746 + | }
|
4747 + | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4748 + | pub mod query_params_targeting_map_of_set_of_length_string_operation_input {
|
4749 + |
|
4750 + | impl ::std::convert::From<Builder>
|
4751 + | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
4752 + | {
|
4753 + | fn from(builder: Builder) -> Self {
|
4754 + | builder.build()
|
4755 + | }
|
4756 + | }
|
4757 + | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4758 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4759 + | pub struct Builder {
|
4760 + | pub(crate) map_of_set_of_length_string: ::std::option::Option<
|
4761 + | ::std::collections::HashMap<
|
4762 + | ::std::string::String,
|
4763 + | ::std::vec::Vec<::std::string::String>,
|
4764 + | >,
|
4765 + | >,
|
4766 + | }
|
4767 + | impl Builder {
|
4768 + | #[allow(missing_docs)] // documentation missing in model
|
4769 + | pub fn map_of_set_of_length_string(
|
4770 + | mut self,
|
4771 + | input: ::std::option::Option<
|
4772 + | ::std::collections::HashMap<
|
4773 + | ::std::string::String,
|
4774 + | ::std::vec::Vec<::std::string::String>,
|
4775 + | >,
|
4776 + | >,
|
4777 + | ) -> Self {
|
4778 + | self.map_of_set_of_length_string = input;
|
4779 + | self
|
4780 + | }
|
4781 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
4782 + | pub fn build(
|
4783 + | self,
|
4784 + | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
4785 + | self.build_enforcing_required_and_enum_traits()
|
4786 + | }
|
4787 + | fn build_enforcing_required_and_enum_traits(
|
4788 + | self,
|
4789 + | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
4790 + | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
4791 + | map_of_set_of_length_string: self.map_of_set_of_length_string,
|
4792 + | }
|
4793 + | }
|
4794 + | }
|
4795 + | }
|
4796 + | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4797 + | pub(crate) mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal {
|
4798 + |
|
4799 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4800 + | /// Holds one variant for each of the ways the builder can fail.
|
4801 + | #[non_exhaustive]
|
4802 + | #[allow(clippy::enum_variant_names)]
|
4803 + | pub(crate) enum ConstraintViolation {
|
4804 + | /// Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
4805 + | #[doc(hidden)]
|
4806 + | MapOfLengthListOfPatternString(
|
4807 + | crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation,
|
4808 + | ),
|
4809 + | }
|
4810 + | impl ::std::fmt::Display for ConstraintViolation {
|
4811 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4812 + | match self {
|
4813 + | ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
4814 + | }
|
4815 + | }
|
4816 + | }
|
4817 + | impl ::std::error::Error for ConstraintViolation {}
|
4818 + | impl ConstraintViolation {
|
4819 + | pub(crate) fn as_validation_exception_field(
|
4820 + | self,
|
4821 + | path: ::std::string::String,
|
4822 + | ) -> crate::model::ValidationExceptionField {
|
4823 + | match self {
|
4824 + | ConstraintViolation::MapOfLengthListOfPatternString(inner) => {
|
4825 + | inner.as_validation_exception_field(path + "/mapOfLengthListOfPatternString")
|
4826 + | }
|
4827 + | }
|
4828 + | }
|
4829 + | }
|
4830 + | impl ::std::convert::From<ConstraintViolation>
|
4831 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4832 + | {
|
4833 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4834 + | let first_validation_exception_field =
|
4835 + | constraint_violation.as_validation_exception_field("".to_owned());
|
4836 + | let validation_exception = crate::error::ValidationException {
|
4837 + | message: format!(
|
4838 + | "1 validation error detected. {}",
|
4839 + | &first_validation_exception_field.message
|
4840 + | ),
|
4841 + | field_list: Some(vec![first_validation_exception_field]),
|
4842 + | };
|
4843 + | Self::ConstraintViolation(
|
4844 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4845 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4846 + | )
|
4847 + | }
|
4848 + | }
|
4849 + | impl ::std::convert::From<Builder>
|
4850 + | for crate::constrained::MaybeConstrained<
|
4851 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
4852 + | >
|
4853 + | {
|
4854 + | fn from(builder: Builder) -> Self {
|
4855 + | Self::Unconstrained(builder)
|
4856 + | }
|
4857 + | }
|
4858 + | impl ::std::convert::TryFrom<Builder>
|
4859 + | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
4860 + | {
|
4861 + | type Error = ConstraintViolation;
|
4862 + |
|
4863 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4864 + | builder.build()
|
4865 + | }
|
4866 + | }
|
4867 + | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4868 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4869 + | pub(crate) struct Builder {
|
4870 + | 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>>,
|
4871 + | }
|
4872 + | impl Builder {
|
4873 + | #[allow(missing_docs)] // documentation missing in model
|
4874 + | pub(crate) fn set_map_of_length_list_of_pattern_string(
|
4875 + | mut self,
|
4876 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>>,
|
4877 + | ) -> Self {
|
4878 + | self.map_of_length_list_of_pattern_string = input.map(|v| v.into());
|
4879 + | self
|
4880 + | }
|
4881 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4882 + | ///
|
4883 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
4884 + | ///
|
4885 + | pub fn build(
|
4886 + | self,
|
4887 + | ) -> Result<
|
4888 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
4889 + | ConstraintViolation,
|
4890 + | > {
|
4891 + | self.build_enforcing_all_constraints()
|
4892 + | }
|
4893 + | fn build_enforcing_all_constraints(
|
4894 + | self,
|
4895 + | ) -> Result<
|
4896 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
4897 + | ConstraintViolation,
|
4898 + | > {
|
4899 + | Ok(
|
4900 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
4901 + | map_of_length_list_of_pattern_string: self
|
4902 + | .map_of_length_list_of_pattern_string
|
4903 + | .map(|v| match v {
|
4904 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4905 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4906 + | })
|
4907 + | .map(|res| {
|
4908 + | res.map(|v| v.into())
|
4909 + | .map_err(ConstraintViolation::MapOfLengthListOfPatternString)
|
4910 + | })
|
4911 + | .transpose()?,
|
4912 + | },
|
4913 + | )
|
4914 + | }
|
4915 + | }
|
4916 + | }
|
4917 + | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4918 + | pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input {
|
4919 + |
|
4920 + | impl ::std::convert::From<Builder>
|
4921 + | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
4922 + | {
|
4923 + | fn from(builder: Builder) -> Self {
|
4924 + | builder.build()
|
4925 + | }
|
4926 + | }
|
4927 + | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4928 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4929 + | pub struct Builder {
|
4930 + | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<
|
4931 + | ::std::collections::HashMap<
|
4932 + | ::std::string::String,
|
4933 + | ::std::vec::Vec<::std::string::String>,
|
4934 + | >,
|
4935 + | >,
|
4936 + | }
|
4937 + | impl Builder {
|
4938 + | #[allow(missing_docs)] // documentation missing in model
|
4939 + | pub fn map_of_length_list_of_pattern_string(
|
4940 + | mut self,
|
4941 + | input: ::std::option::Option<
|
4942 + | ::std::collections::HashMap<
|
4943 + | ::std::string::String,
|
4944 + | ::std::vec::Vec<::std::string::String>,
|
4945 + | >,
|
4946 + | >,
|
4947 + | ) -> Self {
|
4948 + | self.map_of_length_list_of_pattern_string = input;
|
4949 + | self
|
4950 + | }
|
4951 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
4952 + | pub fn build(
|
4953 + | self,
|
4954 + | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
4955 + | {
|
4956 + | self.build_enforcing_required_and_enum_traits()
|
4957 + | }
|
4958 + | fn build_enforcing_required_and_enum_traits(
|
4959 + | self,
|
4960 + | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
4961 + | {
|
4962 + | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
4963 + | map_of_length_list_of_pattern_string: self.map_of_length_list_of_pattern_string,
|
4964 + | }
|
4965 + | }
|
4966 + | }
|
4967 + | }
|
4968 + | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
4969 + | pub(crate) mod query_params_targeting_map_of_list_of_enum_string_operation_input_internal {
|
4970 + |
|
4971 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4972 + | /// Holds one variant for each of the ways the builder can fail.
|
4973 + | #[non_exhaustive]
|
4974 + | #[allow(clippy::enum_variant_names)]
|
4975 + | pub(crate) enum ConstraintViolation {
|
4976 + | /// Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
4977 + | #[doc(hidden)]
|
4978 + | MapOfListOfEnumString(
|
4979 + | crate::model::map_of_list_of_enum_string_internal::ConstraintViolation,
|
4980 + | ),
|
4981 + | }
|
4982 + | impl ::std::fmt::Display for ConstraintViolation {
|
4983 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4984 + | match self {
|
4985 + | ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
4986 + | }
|
4987 + | }
|
4988 + | }
|
4989 + | impl ::std::error::Error for ConstraintViolation {}
|
4990 + | impl ConstraintViolation {
|
4991 + | pub(crate) fn as_validation_exception_field(
|
4992 + | self,
|
4993 + | path: ::std::string::String,
|
4994 + | ) -> crate::model::ValidationExceptionField {
|
4995 + | match self {
|
4996 + | ConstraintViolation::MapOfListOfEnumString(inner) => {
|
4997 + | inner.as_validation_exception_field(path + "/mapOfListOfEnumString")
|
4998 + | }
|
4999 + | }
|
5000 + | }
|
5001 + | }
|
5002 + | impl ::std::convert::From<ConstraintViolation>
|
5003 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5004 + | {
|
5005 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5006 + | let first_validation_exception_field =
|
5007 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5008 + | let validation_exception = crate::error::ValidationException {
|
5009 + | message: format!(
|
5010 + | "1 validation error detected. {}",
|
5011 + | &first_validation_exception_field.message
|
5012 + | ),
|
5013 + | field_list: Some(vec![first_validation_exception_field]),
|
5014 + | };
|
5015 + | Self::ConstraintViolation(
|
5016 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5017 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5018 + | )
|
5019 + | }
|
5020 + | }
|
5021 + | impl ::std::convert::From<Builder>
|
5022 + | for crate::constrained::MaybeConstrained<
|
5023 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
5024 + | >
|
5025 + | {
|
5026 + | fn from(builder: Builder) -> Self {
|
5027 + | Self::Unconstrained(builder)
|
5028 + | }
|
5029 + | }
|
5030 + | impl ::std::convert::TryFrom<Builder>
|
5031 + | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
5032 + | {
|
5033 + | type Error = ConstraintViolation;
|
5034 + |
|
5035 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5036 + | builder.build()
|
5037 + | }
|
5038 + | }
|
5039 + | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
5040 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5041 + | pub(crate) struct Builder {
|
5042 + | pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
|
5043 + | }
|
5044 + | impl Builder {
|
5045 + | #[allow(missing_docs)] // documentation missing in model
|
5046 + | pub(crate) fn set_map_of_list_of_enum_string(
|
5047 + | mut self,
|
5048 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>>,
|
5049 + | ) -> Self {
|
5050 + | self.map_of_list_of_enum_string = input.map(|v| v.into());
|
5051 + | self
|
5052 + | }
|
5053 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
5054 + | ///
|
5055 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5056 + | ///
|
5057 + | pub fn build(
|
5058 + | self,
|
5059 + | ) -> Result<
|
5060 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
5061 + | ConstraintViolation,
|
5062 + | > {
|
5063 + | self.build_enforcing_all_constraints()
|
5064 + | }
|
5065 + | fn build_enforcing_all_constraints(
|
5066 + | self,
|
5067 + | ) -> Result<
|
5068 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
5069 + | ConstraintViolation,
|
5070 + | > {
|
5071 + | Ok(
|
5072 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
5073 + | map_of_list_of_enum_string: self
|
5074 + | .map_of_list_of_enum_string
|
5075 + | .map(|v| match v {
|
5076 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5077 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5078 + | })
|
5079 + | .map(|res| {
|
5080 + | res.map(|v| v.into())
|
5081 + | .map_err(ConstraintViolation::MapOfListOfEnumString)
|
5082 + | })
|
5083 + | .transpose()?,
|
5084 + | },
|
5085 + | )
|
5086 + | }
|
5087 + | }
|
5088 + | }
|
5089 + | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
5090 + | pub mod query_params_targeting_map_of_list_of_enum_string_operation_input {
|
5091 + |
|
5092 + | impl ::std::convert::From<Builder>
|
5093 + | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
5094 + | {
|
5095 + | fn from(builder: Builder) -> Self {
|
5096 + | builder.build()
|
5097 + | }
|
5098 + | }
|
5099 + | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
5100 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5101 + | pub struct Builder {
|
5102 + | pub(crate) map_of_list_of_enum_string: ::std::option::Option<
|
5103 + | ::std::collections::HashMap<
|
5104 + | crate::model::EnumString,
|
5105 + | ::std::vec::Vec<crate::model::EnumString>,
|
5106 + | >,
|
5107 + | >,
|
5108 + | }
|
5109 + | impl Builder {
|
5110 + | #[allow(missing_docs)] // documentation missing in model
|
5111 + | pub fn map_of_list_of_enum_string(
|
5112 + | mut self,
|
5113 + | input: ::std::option::Option<
|
5114 + | ::std::collections::HashMap<
|
5115 + | crate::model::EnumString,
|
5116 + | ::std::vec::Vec<crate::model::EnumString>,
|
5117 + | >,
|
5118 + | >,
|
5119 + | ) -> Self {
|
5120 + | self.map_of_list_of_enum_string = input;
|
5121 + | self
|
5122 + | }
|
5123 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
5124 + | pub fn build(
|
5125 + | self,
|
5126 + | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
5127 + | self.build_enforcing_required_and_enum_traits()
|
5128 + | }
|
5129 + | fn build_enforcing_required_and_enum_traits(
|
5130 + | self,
|
5131 + | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
5132 + | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
5133 + | map_of_list_of_enum_string: self.map_of_list_of_enum_string,
|
5134 + | }
|
5135 + | }
|
5136 + | }
|
5137 + | }
|
5138 + | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5139 + | pub(crate) mod query_params_targeting_map_of_pattern_string_operation_input_internal {
|
5140 + |
|
5141 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5142 + | /// Holds one variant for each of the ways the builder can fail.
|
5143 + | #[non_exhaustive]
|
5144 + | #[allow(clippy::enum_variant_names)]
|
5145 + | pub(crate) enum ConstraintViolation {
|
5146 + | /// Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
5147 + | #[doc(hidden)]
|
5148 + | MapOfPatternString(crate::model::map_of_pattern_string_internal::ConstraintViolation),
|
5149 + | }
|
5150 + | impl ::std::fmt::Display for ConstraintViolation {
|
5151 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5152 + | match self {
|
5153 + | ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
5154 + | }
|
5155 + | }
|
5156 + | }
|
5157 + | impl ::std::error::Error for ConstraintViolation {}
|
5158 + | impl ConstraintViolation {
|
5159 + | pub(crate) fn as_validation_exception_field(
|
5160 + | self,
|
5161 + | path: ::std::string::String,
|
5162 + | ) -> crate::model::ValidationExceptionField {
|
5163 + | match self {
|
5164 + | ConstraintViolation::MapOfPatternString(inner) => {
|
5165 + | inner.as_validation_exception_field(path + "/mapOfPatternString")
|
5166 + | }
|
5167 + | }
|
5168 + | }
|
5169 + | }
|
5170 + | impl ::std::convert::From<ConstraintViolation>
|
5171 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5172 + | {
|
5173 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5174 + | let first_validation_exception_field =
|
5175 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5176 + | let validation_exception = crate::error::ValidationException {
|
5177 + | message: format!(
|
5178 + | "1 validation error detected. {}",
|
5179 + | &first_validation_exception_field.message
|
5180 + | ),
|
5181 + | field_list: Some(vec![first_validation_exception_field]),
|
5182 + | };
|
5183 + | Self::ConstraintViolation(
|
5184 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5185 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5186 + | )
|
5187 + | }
|
5188 + | }
|
5189 + | impl ::std::convert::From<Builder>
|
5190 + | for crate::constrained::MaybeConstrained<
|
5191 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
5192 + | >
|
5193 + | {
|
5194 + | fn from(builder: Builder) -> Self {
|
5195 + | Self::Unconstrained(builder)
|
5196 + | }
|
5197 + | }
|
5198 + | impl ::std::convert::TryFrom<Builder>
|
5199 + | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
5200 + | {
|
5201 + | type Error = ConstraintViolation;
|
5202 + |
|
5203 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5204 + | builder.build()
|
5205 + | }
|
5206 + | }
|
5207 + | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5208 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5209 + | pub(crate) struct Builder {
|
5210 + | pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
5211 + | }
|
5212 + | impl Builder {
|
5213 + | #[allow(missing_docs)] // documentation missing in model
|
5214 + | pub(crate) fn set_map_of_pattern_string(
|
5215 + | mut self,
|
5216 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
|
5217 + | ) -> Self {
|
5218 + | self.map_of_pattern_string = input.map(|v| v.into());
|
5219 + | self
|
5220 + | }
|
5221 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5222 + | ///
|
5223 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5224 + | ///
|
5225 + | pub fn build(
|
5226 + | self,
|
5227 + | ) -> Result<
|
5228 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
5229 + | ConstraintViolation,
|
5230 + | > {
|
5231 + | self.build_enforcing_all_constraints()
|
5232 + | }
|
5233 + | fn build_enforcing_all_constraints(
|
5234 + | self,
|
5235 + | ) -> Result<
|
5236 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
5237 + | ConstraintViolation,
|
5238 + | > {
|
5239 + | Ok(
|
5240 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
5241 + | map_of_pattern_string: self
|
5242 + | .map_of_pattern_string
|
5243 + | .map(|v| match v {
|
5244 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5245 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5246 + | })
|
5247 + | .map(|res| {
|
5248 + | res.map(|v| v.into())
|
5249 + | .map_err(ConstraintViolation::MapOfPatternString)
|
5250 + | })
|
5251 + | .transpose()?,
|
5252 + | },
|
5253 + | )
|
5254 + | }
|
5255 + | }
|
5256 + | }
|
5257 + | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5258 + | pub mod query_params_targeting_map_of_pattern_string_operation_input {
|
5259 + |
|
5260 + | impl ::std::convert::From<Builder>
|
5261 + | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
5262 + | {
|
5263 + | fn from(builder: Builder) -> Self {
|
5264 + | builder.build()
|
5265 + | }
|
5266 + | }
|
5267 + | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5268 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5269 + | pub struct Builder {
|
5270 + | pub(crate) map_of_pattern_string: ::std::option::Option<
|
5271 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5272 + | >,
|
5273 + | }
|
5274 + | impl Builder {
|
5275 + | #[allow(missing_docs)] // documentation missing in model
|
5276 + | pub fn map_of_pattern_string(
|
5277 + | mut self,
|
5278 + | input: ::std::option::Option<
|
5279 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5280 + | >,
|
5281 + | ) -> Self {
|
5282 + | self.map_of_pattern_string = input;
|
5283 + | self
|
5284 + | }
|
5285 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
5286 + | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
5287 + | self.build_enforcing_required_and_enum_traits()
|
5288 + | }
|
5289 + | fn build_enforcing_required_and_enum_traits(
|
5290 + | self,
|
5291 + | ) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
5292 + | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
5293 + | map_of_pattern_string: self.map_of_pattern_string,
|
5294 + | }
|
5295 + | }
|
5296 + | }
|
5297 + | }
|
5298 + | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5299 + | pub(crate) mod query_params_targeting_map_of_list_of_pattern_string_operation_input_internal {
|
5300 + |
|
5301 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5302 + | /// Holds one variant for each of the ways the builder can fail.
|
5303 + | #[non_exhaustive]
|
5304 + | #[allow(clippy::enum_variant_names)]
|
5305 + | pub(crate) enum ConstraintViolation {
|
5306 + | /// Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
5307 + | #[doc(hidden)]
|
5308 + | MapOfListOfPatternString(
|
5309 + | crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation,
|
5310 + | ),
|
5311 + | }
|
5312 + | impl ::std::fmt::Display for ConstraintViolation {
|
5313 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5314 + | match self {
|
5315 + | ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
5316 + | }
|
5317 + | }
|
5318 + | }
|
5319 + | impl ::std::error::Error for ConstraintViolation {}
|
5320 + | impl ConstraintViolation {
|
5321 + | pub(crate) fn as_validation_exception_field(
|
5322 + | self,
|
5323 + | path: ::std::string::String,
|
5324 + | ) -> crate::model::ValidationExceptionField {
|
5325 + | match self {
|
5326 + | ConstraintViolation::MapOfListOfPatternString(inner) => {
|
5327 + | inner.as_validation_exception_field(path + "/mapOfListOfPatternString")
|
5328 + | }
|
5329 + | }
|
5330 + | }
|
5331 + | }
|
5332 + | impl ::std::convert::From<ConstraintViolation>
|
5333 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5334 + | {
|
5335 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5336 + | let first_validation_exception_field =
|
5337 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5338 + | let validation_exception = crate::error::ValidationException {
|
5339 + | message: format!(
|
5340 + | "1 validation error detected. {}",
|
5341 + | &first_validation_exception_field.message
|
5342 + | ),
|
5343 + | field_list: Some(vec![first_validation_exception_field]),
|
5344 + | };
|
5345 + | Self::ConstraintViolation(
|
5346 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5347 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5348 + | )
|
5349 + | }
|
5350 + | }
|
5351 + | impl ::std::convert::From<Builder>
|
5352 + | for crate::constrained::MaybeConstrained<
|
5353 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
5354 + | >
|
5355 + | {
|
5356 + | fn from(builder: Builder) -> Self {
|
5357 + | Self::Unconstrained(builder)
|
5358 + | }
|
5359 + | }
|
5360 + | impl ::std::convert::TryFrom<Builder>
|
5361 + | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
5362 + | {
|
5363 + | type Error = ConstraintViolation;
|
5364 + |
|
5365 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5366 + | builder.build()
|
5367 + | }
|
5368 + | }
|
5369 + | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5370 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5371 + | pub(crate) struct Builder {
|
5372 + | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
|
5373 + | }
|
5374 + | impl Builder {
|
5375 + | #[allow(missing_docs)] // documentation missing in model
|
5376 + | pub(crate) fn set_map_of_list_of_pattern_string(
|
5377 + | mut self,
|
5378 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>>,
|
5379 + | ) -> Self {
|
5380 + | self.map_of_list_of_pattern_string = input.map(|v| v.into());
|
5381 + | self
|
5382 + | }
|
5383 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5384 + | ///
|
5385 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5386 + | ///
|
5387 + | pub fn build(
|
5388 + | self,
|
5389 + | ) -> Result<
|
5390 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
5391 + | ConstraintViolation,
|
5392 + | > {
|
5393 + | self.build_enforcing_all_constraints()
|
5394 + | }
|
5395 + | fn build_enforcing_all_constraints(
|
5396 + | self,
|
5397 + | ) -> Result<
|
5398 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
5399 + | ConstraintViolation,
|
5400 + | > {
|
5401 + | Ok(
|
5402 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
5403 + | map_of_list_of_pattern_string: self
|
5404 + | .map_of_list_of_pattern_string
|
5405 + | .map(|v| match v {
|
5406 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5407 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5408 + | })
|
5409 + | .map(|res| {
|
5410 + | res.map(|v| v.into())
|
5411 + | .map_err(ConstraintViolation::MapOfListOfPatternString)
|
5412 + | })
|
5413 + | .transpose()?,
|
5414 + | },
|
5415 + | )
|
5416 + | }
|
5417 + | }
|
5418 + | }
|
5419 + | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5420 + | pub mod query_params_targeting_map_of_list_of_pattern_string_operation_input {
|
5421 + |
|
5422 + | impl ::std::convert::From<Builder>
|
5423 + | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
5424 + | {
|
5425 + | fn from(builder: Builder) -> Self {
|
5426 + | builder.build()
|
5427 + | }
|
5428 + | }
|
5429 + | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5430 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5431 + | pub struct Builder {
|
5432 + | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<
|
5433 + | ::std::collections::HashMap<
|
5434 + | ::std::string::String,
|
5435 + | ::std::vec::Vec<::std::string::String>,
|
5436 + | >,
|
5437 + | >,
|
5438 + | }
|
5439 + | impl Builder {
|
5440 + | #[allow(missing_docs)] // documentation missing in model
|
5441 + | pub fn map_of_list_of_pattern_string(
|
5442 + | mut self,
|
5443 + | input: ::std::option::Option<
|
5444 + | ::std::collections::HashMap<
|
5445 + | ::std::string::String,
|
5446 + | ::std::vec::Vec<::std::string::String>,
|
5447 + | >,
|
5448 + | >,
|
5449 + | ) -> Self {
|
5450 + | self.map_of_list_of_pattern_string = input;
|
5451 + | self
|
5452 + | }
|
5453 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
5454 + | pub fn build(
|
5455 + | self,
|
5456 + | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
5457 + | self.build_enforcing_required_and_enum_traits()
|
5458 + | }
|
5459 + | fn build_enforcing_required_and_enum_traits(
|
5460 + | self,
|
5461 + | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
5462 + | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
5463 + | map_of_list_of_pattern_string: self.map_of_list_of_pattern_string,
|
5464 + | }
|
5465 + | }
|
5466 + | }
|
5467 + | }
|
5468 + | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5469 + | pub(crate) mod query_params_targeting_map_of_length_pattern_string_operation_input_internal {
|
5470 + |
|
5471 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5472 + | /// Holds one variant for each of the ways the builder can fail.
|
5473 + | #[non_exhaustive]
|
5474 + | #[allow(clippy::enum_variant_names)]
|
5475 + | pub(crate) enum ConstraintViolation {
|
5476 + | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
5477 + | #[doc(hidden)]
|
5478 + | MapOfLengthPatternString(
|
5479 + | crate::model::map_of_length_pattern_string_internal::ConstraintViolation,
|
5480 + | ),
|
5481 + | }
|
5482 + | impl ::std::fmt::Display for ConstraintViolation {
|
5483 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5484 + | match self {
|
5485 + | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
5486 + | }
|
5487 + | }
|
5488 + | }
|
5489 + | impl ::std::error::Error for ConstraintViolation {}
|
5490 + | impl ConstraintViolation {
|
5491 + | pub(crate) fn as_validation_exception_field(
|
5492 + | self,
|
5493 + | path: ::std::string::String,
|
5494 + | ) -> crate::model::ValidationExceptionField {
|
5495 + | match self {
|
5496 + | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
5497 + | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
5498 + | }
|
5499 + | }
|
5500 + | }
|
5501 + | }
|
5502 + | impl ::std::convert::From<ConstraintViolation>
|
5503 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5504 + | {
|
5505 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5506 + | let first_validation_exception_field =
|
5507 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5508 + | let validation_exception = crate::error::ValidationException {
|
5509 + | message: format!(
|
5510 + | "1 validation error detected. {}",
|
5511 + | &first_validation_exception_field.message
|
5512 + | ),
|
5513 + | field_list: Some(vec![first_validation_exception_field]),
|
5514 + | };
|
5515 + | Self::ConstraintViolation(
|
5516 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5517 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5518 + | )
|
5519 + | }
|
5520 + | }
|
5521 + | impl ::std::convert::From<Builder>
|
5522 + | for crate::constrained::MaybeConstrained<
|
5523 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
5524 + | >
|
5525 + | {
|
5526 + | fn from(builder: Builder) -> Self {
|
5527 + | Self::Unconstrained(builder)
|
5528 + | }
|
5529 + | }
|
5530 + | impl ::std::convert::TryFrom<Builder>
|
5531 + | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
5532 + | {
|
5533 + | type Error = ConstraintViolation;
|
5534 + |
|
5535 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5536 + | builder.build()
|
5537 + | }
|
5538 + | }
|
5539 + | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5540 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5541 + | pub(crate) struct Builder {
|
5542 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
5543 + | }
|
5544 + | impl Builder {
|
5545 + | #[allow(missing_docs)] // documentation missing in model
|
5546 + | pub(crate) fn set_map_of_length_pattern_string(
|
5547 + | mut self,
|
5548 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
|
5549 + | ) -> Self {
|
5550 + | self.map_of_length_pattern_string = input.map(|v| v.into());
|
5551 + | self
|
5552 + | }
|
5553 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5554 + | ///
|
5555 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5556 + | ///
|
5557 + | pub fn build(
|
5558 + | self,
|
5559 + | ) -> Result<
|
5560 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
5561 + | ConstraintViolation,
|
5562 + | > {
|
5563 + | self.build_enforcing_all_constraints()
|
5564 + | }
|
5565 + | fn build_enforcing_all_constraints(
|
5566 + | self,
|
5567 + | ) -> Result<
|
5568 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
5569 + | ConstraintViolation,
|
5570 + | > {
|
5571 + | Ok(
|
5572 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
5573 + | map_of_length_pattern_string: self
|
5574 + | .map_of_length_pattern_string
|
5575 + | .map(|v| match v {
|
5576 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5577 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5578 + | })
|
5579 + | .map(|res| {
|
5580 + | res.map(|v| v.into())
|
5581 + | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
5582 + | })
|
5583 + | .transpose()?,
|
5584 + | },
|
5585 + | )
|
5586 + | }
|
5587 + | }
|
5588 + | }
|
5589 + | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5590 + | pub mod query_params_targeting_map_of_length_pattern_string_operation_input {
|
5591 + |
|
5592 + | impl ::std::convert::From<Builder>
|
5593 + | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
5594 + | {
|
5595 + | fn from(builder: Builder) -> Self {
|
5596 + | builder.build()
|
5597 + | }
|
5598 + | }
|
5599 + | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5600 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5601 + | pub struct Builder {
|
5602 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
5603 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5604 + | >,
|
5605 + | }
|
5606 + | impl Builder {
|
5607 + | #[allow(missing_docs)] // documentation missing in model
|
5608 + | pub fn map_of_length_pattern_string(
|
5609 + | mut self,
|
5610 + | input: ::std::option::Option<
|
5611 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5612 + | >,
|
5613 + | ) -> Self {
|
5614 + | self.map_of_length_pattern_string = input;
|
5615 + | self
|
5616 + | }
|
5617 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
5618 + | pub fn build(
|
5619 + | self,
|
5620 + | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
5621 + | self.build_enforcing_required_and_enum_traits()
|
5622 + | }
|
5623 + | fn build_enforcing_required_and_enum_traits(
|
5624 + | self,
|
5625 + | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
5626 + | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
5627 + | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
5628 + | }
|
5629 + | }
|
5630 + | }
|
5631 + | }
|
5632 + | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5633 + | pub(crate) mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal {
|
5765 5634 |
|
5766 5635 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5767 5636 | /// Holds one variant for each of the ways the builder can fail.
|
5637 + | #[non_exhaustive]
|
5768 5638 | #[allow(clippy::enum_variant_names)]
|
5769 - | pub enum ConstraintViolation {
|
5770 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5771 - | MissingLengthStringLabel,
|
5772 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5773 - | MissingEnumStringLabel,
|
5774 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5775 - | MissingLengthStringHeaderMap,
|
5639 + | pub(crate) enum ConstraintViolation {
|
5640 + | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
5641 + | #[doc(hidden)]
|
5642 + | MapOfLengthPatternString(
|
5643 + | crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation,
|
5644 + | ),
|
5776 5645 | }
|
5777 5646 | impl ::std::fmt::Display for ConstraintViolation {
|
5778 5647 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5779 5648 | match self {
|
5780 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5781 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5782 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5649 + | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
5783 5650 | }
|
5784 5651 | }
|
5785 5652 | }
|
5786 5653 | impl ::std::error::Error for ConstraintViolation {}
|
5787 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
5654 + | impl ConstraintViolation {
|
5655 + | pub(crate) fn as_validation_exception_field(
|
5656 + | self,
|
5657 + | path: ::std::string::String,
|
5658 + | ) -> crate::model::ValidationExceptionField {
|
5659 + | match self {
|
5660 + | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
5661 + | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
5662 + | }
|
5663 + | }
|
5664 + | }
|
5665 + | }
|
5666 + | impl ::std::convert::From<ConstraintViolation>
|
5667 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5668 + | {
|
5669 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5670 + | let first_validation_exception_field =
|
5671 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5672 + | let validation_exception = crate::error::ValidationException {
|
5673 + | message: format!(
|
5674 + | "1 validation error detected. {}",
|
5675 + | &first_validation_exception_field.message
|
5676 + | ),
|
5677 + | field_list: Some(vec![first_validation_exception_field]),
|
5678 + | };
|
5679 + | Self::ConstraintViolation(
|
5680 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5681 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5682 + | )
|
5683 + | }
|
5684 + | }
|
5685 + | impl ::std::convert::From<Builder>
|
5686 + | for crate::constrained::MaybeConstrained<
|
5687 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
5688 + | >
|
5689 + | {
|
5690 + | fn from(builder: Builder) -> Self {
|
5691 + | Self::Unconstrained(builder)
|
5692 + | }
|
5693 + | }
|
5694 + | impl ::std::convert::TryFrom<Builder>
|
5695 + | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
5696 + | {
|
5788 5697 | type Error = ConstraintViolation;
|
5789 5698 |
|
5790 5699 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5791 5700 | builder.build()
|
5792 5701 | }
|
5793 5702 | }
|
5794 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5703 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5795 5704 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5796 - | pub struct Builder {
|
5797 - | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
5798 - | pub(crate) range_integer_label: ::std::option::Option<i32>,
|
5799 - | pub(crate) range_short_label: ::std::option::Option<i16>,
|
5800 - | pub(crate) range_long_label: ::std::option::Option<i64>,
|
5801 - | pub(crate) range_byte_label: ::std::option::Option<i8>,
|
5802 - | pub(crate) enum_string_label: ::std::option::Option<crate::model::EnumString>,
|
5803 - | pub(crate) length_string_header_map: ::std::option::Option<
|
5804 - | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5805 - | >,
|
5806 - | pub(crate) length_string_header: ::std::option::Option<::std::string::String>,
|
5807 - | pub(crate) range_integer_header: ::std::option::Option<i32>,
|
5808 - | pub(crate) range_short_header: ::std::option::Option<i16>,
|
5809 - | pub(crate) range_long_header: ::std::option::Option<i64>,
|
5810 - | pub(crate) range_byte_header: ::std::option::Option<i8>,
|
5811 - | pub(crate) length_string_set_header:
|
5812 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5813 - | pub(crate) list_length_string_header:
|
5814 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5815 - | pub(crate) length_list_pattern_string_header:
|
5816 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5817 - | pub(crate) length_set_pattern_string_header:
|
5818 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5819 - | pub(crate) range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
5820 - | pub(crate) range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
5821 - | pub(crate) range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
5822 - | pub(crate) range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
5823 - | pub(crate) range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
5824 - | pub(crate) range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
5825 - | pub(crate) range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
5826 - | pub(crate) range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
5827 - | pub(crate) length_string_query: ::std::option::Option<::std::string::String>,
|
5828 - | pub(crate) range_byte_query: ::std::option::Option<i8>,
|
5829 - | pub(crate) range_short_query: ::std::option::Option<i16>,
|
5830 - | pub(crate) range_integer_query: ::std::option::Option<i32>,
|
5831 - | pub(crate) range_long_query: ::std::option::Option<i64>,
|
5832 - | pub(crate) enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
5833 - | pub(crate) length_string_list_query:
|
5834 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5835 - | pub(crate) length_list_pattern_string_query:
|
5836 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5837 - | pub(crate) length_string_set_query:
|
5838 - | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5839 - | pub(crate) range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
5840 - | pub(crate) range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
5841 - | pub(crate) range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
5842 - | pub(crate) range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
5843 - | pub(crate) range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
5844 - | pub(crate) range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
5845 - | pub(crate) range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
5846 - | pub(crate) range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
5847 - | pub(crate) enum_string_list_query:
|
5848 - | ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
5705 + | pub(crate) struct Builder {
|
5706 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
|
5849 5707 | }
|
5850 5708 | impl Builder {
|
5851 5709 | #[allow(missing_docs)] // documentation missing in model
|
5852 - | pub fn length_string_label(mut self, input: ::std::string::String) -> Self {
|
5853 - | self.length_string_label = Some(input);
|
5854 - | self
|
5855 - | }
|
5856 - | #[allow(missing_docs)] // documentation missing in model
|
5857 - | pub fn range_integer_label(mut self, input: i32) -> Self {
|
5858 - | self.range_integer_label = Some(input);
|
5859 - | self
|
5860 - | }
|
5861 - | #[allow(missing_docs)] // documentation missing in model
|
5862 - | pub fn range_short_label(mut self, input: i16) -> Self {
|
5863 - | self.range_short_label = Some(input);
|
5864 - | self
|
5865 - | }
|
5866 - | #[allow(missing_docs)] // documentation missing in model
|
5867 - | pub fn range_long_label(mut self, input: i64) -> Self {
|
5868 - | self.range_long_label = Some(input);
|
5869 - | self
|
5870 - | }
|
5871 - | #[allow(missing_docs)] // documentation missing in model
|
5872 - | pub fn range_byte_label(mut self, input: i8) -> Self {
|
5873 - | self.range_byte_label = Some(input);
|
5874 - | self
|
5875 - | }
|
5876 - | #[allow(missing_docs)] // documentation missing in model
|
5877 - | pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
|
5878 - | self.enum_string_label = Some(input);
|
5879 - | self
|
5880 - | }
|
5881 - | #[allow(missing_docs)] // documentation missing in model
|
5882 - | pub fn length_string_header_map(
|
5883 - | mut self,
|
5884 - | input: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5885 - | ) -> Self {
|
5886 - | self.length_string_header_map = Some(input);
|
5887 - | self
|
5888 - | }
|
5889 - | #[allow(missing_docs)] // documentation missing in model
|
5890 - | pub fn length_string_header(
|
5710 + | pub(crate) fn set_map_of_length_pattern_string(
|
5891 5711 | mut self,
|
5892 - | input: ::std::option::Option<::std::string::String>,
|
5712 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>>,
|
5893 5713 | ) -> Self {
|
5894 - | self.length_string_header = input;
|
5895 - | self
|
5896 - | }
|
5897 - | #[allow(missing_docs)] // documentation missing in model
|
5898 - | pub fn range_integer_header(mut self, input: i32) -> Self {
|
5899 - | self.range_integer_header = Some(input);
|
5900 - | self
|
5901 - | }
|
5902 - | #[allow(missing_docs)] // documentation missing in model
|
5903 - | pub fn range_short_header(mut self, input: i16) -> Self {
|
5904 - | self.range_short_header = Some(input);
|
5714 + | self.map_of_length_pattern_string = input.map(|v| v.into());
|
5905 5715 | self
|
5906 5716 | }
|
5907 - | #[allow(missing_docs)] // documentation missing in model
|
5908 - | pub fn range_long_header(mut self, input: i64) -> Self {
|
5909 - | self.range_long_header = Some(input);
|
5910 - | self
|
5717 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5718 + | ///
|
5719 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
5720 + | ///
|
5721 + | pub fn build(
|
5722 + | self,
|
5723 + | ) -> Result<
|
5724 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
5725 + | ConstraintViolation,
|
5726 + | > {
|
5727 + | self.build_enforcing_all_constraints()
|
5911 5728 | }
|
5912 - | #[allow(missing_docs)] // documentation missing in model
|
5913 - | pub fn range_byte_header(mut self, input: i8) -> Self {
|
5914 - | self.range_byte_header = Some(input);
|
5915 - | self
|
5729 + | fn build_enforcing_all_constraints(
|
5730 + | self,
|
5731 + | ) -> Result<
|
5732 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
5733 + | ConstraintViolation,
|
5734 + | > {
|
5735 + | Ok(
|
5736 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
5737 + | map_of_length_pattern_string: self
|
5738 + | .map_of_length_pattern_string
|
5739 + | .map(|v| match v {
|
5740 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5741 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5742 + | })
|
5743 + | .map(|res| {
|
5744 + | res.map(|v| v.into())
|
5745 + | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
5746 + | })
|
5747 + | .transpose()?,
|
5748 + | },
|
5749 + | )
|
5916 5750 | }
|
5917 - | #[allow(missing_docs)] // documentation missing in model
|
5918 - | pub fn length_string_set_header(
|
5919 - | mut self,
|
5920 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5921 - | ) -> Self {
|
5922 - | self.length_string_set_header = input;
|
5923 - | self
|
5751 + | }
|
5752 + | }
|
5753 + | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5754 + | pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input {
|
5755 + |
|
5756 + | impl ::std::convert::From<Builder>
|
5757 + | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
5758 + | {
|
5759 + | fn from(builder: Builder) -> Self {
|
5760 + | builder.build()
|
5924 5761 | }
|
5762 + | }
|
5763 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5764 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5765 + | pub struct Builder {
|
5766 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
5767 + | ::std::collections::HashMap<
|
5768 + | ::std::string::String,
|
5769 + | ::std::vec::Vec<::std::string::String>,
|
5770 + | >,
|
5771 + | >,
|
5772 + | }
|
5773 + | impl Builder {
|
5925 5774 | #[allow(missing_docs)] // documentation missing in model
|
5926 - | pub fn list_length_string_header(
|
5775 + | pub fn map_of_length_pattern_string(
|
5927 5776 | mut self,
|
5928 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5777 + | input: ::std::option::Option<
|
5778 + | ::std::collections::HashMap<
|
5779 + | ::std::string::String,
|
5780 + | ::std::vec::Vec<::std::string::String>,
|
5781 + | >,
|
5782 + | >,
|
5929 5783 | ) -> Self {
|
5930 - | self.list_length_string_header = input;
|
5784 + | self.map_of_length_pattern_string = input;
|
5931 5785 | self
|
5932 5786 | }
|
5933 - | #[allow(missing_docs)] // documentation missing in model
|
5934 - | pub fn length_list_pattern_string_header(
|
5935 - | mut self,
|
5936 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5937 - | ) -> Self {
|
5938 - | self.length_list_pattern_string_header = input;
|
5939 - | self
|
5787 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
5788 + | pub fn build(
|
5789 + | self,
|
5790 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
5791 + | {
|
5792 + | self.build_enforcing_required_and_enum_traits()
|
5940 5793 | }
|
5941 - | #[allow(missing_docs)] // documentation missing in model
|
5942 - | pub fn length_set_pattern_string_header(
|
5943 - | mut self,
|
5944 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5945 - | ) -> Self {
|
5946 - | self.length_set_pattern_string_header = input;
|
5947 - | self
|
5794 + | fn build_enforcing_required_and_enum_traits(
|
5795 + | self,
|
5796 + | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
5797 + | {
|
5798 + | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
5799 + | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
5800 + | }
|
5948 5801 | }
|
5949 - | #[allow(missing_docs)] // documentation missing in model
|
5950 - | pub fn range_byte_set_header(
|
5951 - | mut self,
|
5952 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
5953 - | ) -> Self {
|
5954 - | self.range_byte_set_header = input;
|
5955 - | self
|
5802 + | }
|
5803 + | }
|
5804 + | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5805 + | pub(crate) mod http_prefix_headers_targeting_length_map_operation_input_internal {
|
5806 + |
|
5807 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5808 + | /// Holds one variant for each of the ways the builder can fail.
|
5809 + | #[non_exhaustive]
|
5810 + | #[allow(clippy::enum_variant_names)]
|
5811 + | pub(crate) enum ConstraintViolation {
|
5812 + | /// Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
5813 + | #[doc(hidden)]
|
5814 + | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
5815 + | }
|
5816 + | impl ::std::fmt::Display for ConstraintViolation {
|
5817 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5818 + | match self {
|
5819 + | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
5820 + | }
|
5956 5821 | }
|
5957 - | #[allow(missing_docs)] // documentation missing in model
|
5958 - | pub fn range_short_set_header(
|
5959 - | mut self,
|
5960 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
5961 - | ) -> Self {
|
5962 - | self.range_short_set_header = input;
|
5963 - | self
|
5822 + | }
|
5823 + | impl ::std::error::Error for ConstraintViolation {}
|
5824 + | impl ConstraintViolation {
|
5825 + | pub(crate) fn as_validation_exception_field(
|
5826 + | self,
|
5827 + | path: ::std::string::String,
|
5828 + | ) -> crate::model::ValidationExceptionField {
|
5829 + | match self {
|
5830 + | ConstraintViolation::LengthMap(inner) => {
|
5831 + | inner.as_validation_exception_field(path + "/lengthMap")
|
5832 + | }
|
5833 + | }
|
5964 5834 | }
|
5965 - | #[allow(missing_docs)] // documentation missing in model
|
5966 - | pub fn range_integer_set_header(
|
5967 - | mut self,
|
5968 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
5969 - | ) -> Self {
|
5970 - | self.range_integer_set_header = input;
|
5971 - | self
|
5835 + | }
|
5836 + | impl ::std::convert::From<ConstraintViolation>
|
5837 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5838 + | {
|
5839 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5840 + | let first_validation_exception_field =
|
5841 + | constraint_violation.as_validation_exception_field("".to_owned());
|
5842 + | let validation_exception = crate::error::ValidationException {
|
5843 + | message: format!(
|
5844 + | "1 validation error detected. {}",
|
5845 + | &first_validation_exception_field.message
|
5846 + | ),
|
5847 + | field_list: Some(vec![first_validation_exception_field]),
|
5848 + | };
|
5849 + | Self::ConstraintViolation(
|
5850 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5851 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5852 + | )
|
5972 5853 | }
|
5973 - | #[allow(missing_docs)] // documentation missing in model
|
5974 - | pub fn range_long_set_header(
|
5975 - | mut self,
|
5976 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
5977 - | ) -> Self {
|
5978 - | self.range_long_set_header = input;
|
5979 - | self
|
5854 + | }
|
5855 + | impl ::std::convert::From<Builder>
|
5856 + | for crate::constrained::MaybeConstrained<
|
5857 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
5858 + | >
|
5859 + | {
|
5860 + | fn from(builder: Builder) -> Self {
|
5861 + | Self::Unconstrained(builder)
|
5980 5862 | }
|
5981 - | #[allow(missing_docs)] // documentation missing in model
|
5982 - | pub fn range_byte_list_header(
|
5983 - | mut self,
|
5984 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
5985 - | ) -> Self {
|
5986 - | self.range_byte_list_header = input;
|
5987 - | self
|
5863 + | }
|
5864 + | impl ::std::convert::TryFrom<Builder>
|
5865 + | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
5866 + | {
|
5867 + | type Error = ConstraintViolation;
|
5868 + |
|
5869 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5870 + | builder.build()
|
5988 5871 | }
|
5872 + | }
|
5873 + | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5874 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5875 + | pub(crate) struct Builder {
|
5876 + | pub(crate) length_map:
|
5877 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
5878 + | }
|
5879 + | impl Builder {
|
5989 5880 | #[allow(missing_docs)] // documentation missing in model
|
5990 - | pub fn range_short_list_header(
|
5881 + | pub(crate) fn set_length_map(
|
5991 5882 | mut self,
|
5992 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
5883 + | input: Option<
|
5884 + | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
5885 + | >,
|
5993 5886 | ) -> Self {
|
5994 - | self.range_short_list_header = input;
|
5887 + | self.length_map = input.map(|v| v.into());
|
5995 5888 | self
|
5996 5889 | }
|
5997 - | #[allow(missing_docs)] // documentation missing in model
|
5998 - | pub fn range_integer_list_header(
|
5999 - | mut self,
|
6000 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
6001 - | ) -> Self {
|
6002 - | self.range_integer_list_header = input;
|
6003 - | self
|
5890 + | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5891 + | ///
|
5892 + | /// The builder fails to construct a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
5893 + | ///
|
5894 + | pub fn build(
|
5895 + | self,
|
5896 + | ) -> Result<
|
5897 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
5898 + | ConstraintViolation,
|
5899 + | > {
|
5900 + | self.build_enforcing_all_constraints()
|
6004 5901 | }
|
6005 - | #[allow(missing_docs)] // documentation missing in model
|
6006 - | pub fn range_long_list_header(
|
6007 - | mut self,
|
6008 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
6009 - | ) -> Self {
|
6010 - | self.range_long_list_header = input;
|
6011 - | self
|
5902 + | fn build_enforcing_all_constraints(
|
5903 + | self,
|
5904 + | ) -> Result<
|
5905 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
5906 + | ConstraintViolation,
|
5907 + | > {
|
5908 + | Ok(
|
5909 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
5910 + | length_map: self
|
5911 + | .length_map
|
5912 + | .map(|v| match v {
|
5913 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5914 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5915 + | })
|
5916 + | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
5917 + | .transpose()?
|
5918 + | .map(|v: crate::model::ConBMap| v.into()),
|
5919 + | },
|
5920 + | )
|
5921 + | }
|
5922 + | }
|
5923 + | }
|
5924 + | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5925 + | pub mod http_prefix_headers_targeting_length_map_operation_input {
|
5926 + |
|
5927 + | impl ::std::convert::From<Builder>
|
5928 + | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
5929 + | {
|
5930 + | fn from(builder: Builder) -> Self {
|
5931 + | builder.build()
|
6012 5932 | }
|
5933 + | }
|
5934 + | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5935 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5936 + | pub struct Builder {
|
5937 + | pub(crate) length_map: ::std::option::Option<
|
5938 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5939 + | >,
|
5940 + | }
|
5941 + | impl Builder {
|
6013 5942 | #[allow(missing_docs)] // documentation missing in model
|
6014 - | pub fn length_string_query(
|
5943 + | pub fn length_map(
|
6015 5944 | mut self,
|
6016 - | input: ::std::option::Option<::std::string::String>,
|
5945 + | input: ::std::option::Option<
|
5946 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5947 + | >,
|
6017 5948 | ) -> Self {
|
6018 - | self.length_string_query = input;
|
5949 + | self.length_map = input;
|
6019 5950 | self
|
6020 5951 | }
|
6021 - | #[allow(missing_docs)] // documentation missing in model
|
6022 - | pub fn range_byte_query(mut self, input: i8) -> Self {
|
6023 - | self.range_byte_query = Some(input);
|
6024 - | self
|
5952 + | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
5953 + | pub fn build(self) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
5954 + | self.build_enforcing_required_and_enum_traits()
|
5955 + | }
|
5956 + | fn build_enforcing_required_and_enum_traits(
|
5957 + | self,
|
5958 + | ) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
5959 + | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
5960 + | length_map: self.length_map,
|
5961 + | }
|
5962 + | }
|
5963 + | }
|
5964 + | }
|
5965 + | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
5966 + | pub(crate) mod query_params_targeting_map_of_enum_string_operation_input_internal {
|
5967 + |
|
5968 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5969 + | /// Holds one variant for each of the ways the builder can fail.
|
5970 + | #[non_exhaustive]
|
5971 + | #[allow(clippy::enum_variant_names)]
|
5972 + | pub(crate) enum ConstraintViolation {
|
5973 + | /// Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
5974 + | #[doc(hidden)]
|
5975 + | MapOfEnumString(crate::model::map_of_enum_string_internal::ConstraintViolation),
|
5976 + | }
|
5977 + | impl ::std::fmt::Display for ConstraintViolation {
|
5978 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5979 + | match self {
|
5980 + | ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
5981 + | }
|
5982 + | }
|
5983 + | }
|
5984 + | impl ::std::error::Error for ConstraintViolation {}
|
5985 + | impl ConstraintViolation {
|
5986 + | pub(crate) fn as_validation_exception_field(
|
5987 + | self,
|
5988 + | path: ::std::string::String,
|
5989 + | ) -> crate::model::ValidationExceptionField {
|
5990 + | match self {
|
5991 + | ConstraintViolation::MapOfEnumString(inner) => {
|
5992 + | inner.as_validation_exception_field(path + "/mapOfEnumString")
|
5993 + | }
|
5994 + | }
|
6025 5995 | }
|
6026 - | #[allow(missing_docs)] // documentation missing in model
|
6027 - | pub fn range_short_query(mut self, input: i16) -> Self {
|
6028 - | self.range_short_query = Some(input);
|
6029 - | self
|
5996 + | }
|
5997 + | impl ::std::convert::From<ConstraintViolation>
|
5998 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5999 + | {
|
6000 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6001 + | let first_validation_exception_field =
|
6002 + | constraint_violation.as_validation_exception_field("".to_owned());
|
6003 + | let validation_exception = crate::error::ValidationException {
|
6004 + | message: format!(
|
6005 + | "1 validation error detected. {}",
|
6006 + | &first_validation_exception_field.message
|
6007 + | ),
|
6008 + | field_list: Some(vec![first_validation_exception_field]),
|
6009 + | };
|
6010 + | Self::ConstraintViolation(
|
6011 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6012 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6013 + | )
|
6030 6014 | }
|
6031 - | #[allow(missing_docs)] // documentation missing in model
|
6032 - | pub fn range_integer_query(mut self, input: i32) -> Self {
|
6033 - | self.range_integer_query = Some(input);
|
6034 - | self
|
6015 + | }
|
6016 + | impl ::std::convert::From<Builder>
|
6017 + | for crate::constrained::MaybeConstrained<
|
6018 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
6019 + | >
|
6020 + | {
|
6021 + | fn from(builder: Builder) -> Self {
|
6022 + | Self::Unconstrained(builder)
|
6035 6023 | }
|
6036 - | #[allow(missing_docs)] // documentation missing in model
|
6037 - | pub fn range_long_query(mut self, input: i64) -> Self {
|
6038 - | self.range_long_query = Some(input);
|
6039 - | self
|
6024 + | }
|
6025 + | impl ::std::convert::TryFrom<Builder>
|
6026 + | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
6027 + | {
|
6028 + | type Error = ConstraintViolation;
|
6029 + |
|
6030 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6031 + | builder.build()
|
6040 6032 | }
|
6033 + | }
|
6034 + | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
6035 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6036 + | pub(crate) struct Builder {
|
6037 + | pub(crate) map_of_enum_string: ::std::option::Option<
|
6038 + | crate::constrained::MaybeConstrained<
|
6039 + | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
6040 + | >,
|
6041 + | >,
|
6042 + | }
|
6043 + | impl Builder {
|
6041 6044 | #[allow(missing_docs)] // documentation missing in model
|
6042 - | pub fn enum_string_query(
|
6045 + | pub(crate) fn set_map_of_enum_string(
|
6043 6046 | mut self,
|
6044 - | input: ::std::option::Option<crate::model::EnumString>,
|
6047 + | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained>>>,
|
6045 6048 | ) -> Self {
|
6046 - | self.enum_string_query = input;
|
6049 + | self.map_of_enum_string = input.map(|v| v.into());
|
6047 6050 | self
|
6048 6051 | }
|
6049 - | #[allow(missing_docs)] // documentation missing in model
|
6050 - | pub fn length_string_list_query(
|
6051 - | mut self,
|
6052 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6053 - | ) -> Self {
|
6054 - | self.length_string_list_query = input;
|
6055 - | self
|
6052 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
6053 + | ///
|
6054 + | /// The builder fails to construct a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
6055 + | ///
|
6056 + | pub fn build(
|
6057 + | self,
|
6058 + | ) -> Result<
|
6059 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
6060 + | ConstraintViolation,
|
6061 + | > {
|
6062 + | self.build_enforcing_all_constraints()
|
6056 6063 | }
|
6057 - | #[allow(missing_docs)] // documentation missing in model
|
6058 - | pub fn length_list_pattern_string_query(
|
6059 - | mut self,
|
6060 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6061 - | ) -> Self {
|
6062 - | self.length_list_pattern_string_query = input;
|
6063 - | self
|
6064 + | fn build_enforcing_all_constraints(
|
6065 + | self,
|
6066 + | ) -> Result<
|
6067 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
6068 + | ConstraintViolation,
|
6069 + | > {
|
6070 + | Ok(
|
6071 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
6072 + | map_of_enum_string: self
|
6073 + | .map_of_enum_string
|
6074 + | .map(|v| match v {
|
6075 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6076 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6077 + | })
|
6078 + | .map(|res| {
|
6079 + | res.map(|v| v.into())
|
6080 + | .map_err(ConstraintViolation::MapOfEnumString)
|
6081 + | })
|
6082 + | .transpose()?,
|
6083 + | },
|
6084 + | )
|
6064 6085 | }
|
6065 - | #[allow(missing_docs)] // documentation missing in model
|
6066 - | pub fn length_string_set_query(
|
6067 - | mut self,
|
6068 - | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6069 - | ) -> Self {
|
6070 - | self.length_string_set_query = input;
|
6071 - | self
|
6086 + | }
|
6087 + | }
|
6088 + | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
6089 + | pub mod query_params_targeting_map_of_enum_string_operation_input {
|
6090 + |
|
6091 + | impl ::std::convert::From<Builder>
|
6092 + | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
6093 + | {
|
6094 + | fn from(builder: Builder) -> Self {
|
6095 + | builder.build()
|
6072 6096 | }
|
6097 + | }
|
6098 + | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
6099 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6100 + | pub struct Builder {
|
6101 + | pub(crate) map_of_enum_string: ::std::option::Option<
|
6102 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
6103 + | >,
|
6104 + | }
|
6105 + | impl Builder {
|
6073 6106 | #[allow(missing_docs)] // documentation missing in model
|
6074 - | pub fn range_byte_list_query(
|
6107 + | pub fn map_of_enum_string(
|
6075 6108 | mut self,
|
6076 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
6109 + | input: ::std::option::Option<
|
6110 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
6111 + | >,
|
6077 6112 | ) -> Self {
|
6078 - | self.range_byte_list_query = input;
|
6113 + | self.map_of_enum_string = input;
|
6079 6114 | self
|
6080 6115 | }
|
6081 - | #[allow(missing_docs)] // documentation missing in model
|
6082 - | pub fn range_short_list_query(
|
6083 - | mut self,
|
6084 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
6085 - | ) -> Self {
|
6086 - | self.range_short_list_query = input;
|
6087 - | self
|
6116 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
6117 + | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
6118 + | self.build_enforcing_required_and_enum_traits()
|
6088 6119 | }
|
6089 - | #[allow(missing_docs)] // documentation missing in model
|
6090 - | pub fn range_integer_list_query(
|
6091 - | mut self,
|
6092 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
6093 - | ) -> Self {
|
6094 - | self.range_integer_list_query = input;
|
6095 - | self
|
6120 + | fn build_enforcing_required_and_enum_traits(
|
6121 + | self,
|
6122 + | ) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
6123 + | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
6124 + | map_of_enum_string: self.map_of_enum_string,
|
6125 + | }
|
6096 6126 | }
|
6097 - | #[allow(missing_docs)] // documentation missing in model
|
6098 - | pub fn range_long_list_query(
|
6099 - | mut self,
|
6100 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
6101 - | ) -> Self {
|
6102 - | self.range_long_list_query = input;
|
6103 - | self
|
6127 + | }
|
6128 + | }
|
6129 + | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6130 + | pub(crate) mod non_streaming_blob_operation_input_internal {
|
6131 + |
|
6132 + | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
6133 + | fn from(builder: Builder) -> Self {
|
6134 + | builder.build()
|
6104 6135 | }
|
6136 + | }
|
6137 + | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6138 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6139 + | pub(crate) struct Builder {
|
6140 + | pub(crate) non_streaming_blob:
|
6141 + | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
6142 + | }
|
6143 + | impl Builder {
|
6105 6144 | #[allow(missing_docs)] // documentation missing in model
|
6106 - | pub fn range_byte_set_query(
|
6145 + | pub(crate) fn set_non_streaming_blob(
|
6107 6146 | mut self,
|
6108 - | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
6147 + | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
6109 6148 | ) -> Self {
|
6110 - | self.range_byte_set_query = input;
|
6149 + | self.non_streaming_blob = input.map(|v| v.into());
|
6111 6150 | self
|
6112 6151 | }
|
6113 - | #[allow(missing_docs)] // documentation missing in model
|
6114 - | pub fn range_short_set_query(
|
6115 - | mut self,
|
6116 - | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
6117 - | ) -> Self {
|
6118 - | self.range_short_set_query = input;
|
6119 - | self
|
6152 + | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6153 + | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
6154 + | self.build_enforcing_all_constraints()
|
6120 6155 | }
|
6121 - | #[allow(missing_docs)] // documentation missing in model
|
6122 - | pub fn range_integer_set_query(
|
6123 - | mut self,
|
6124 - | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
6125 - | ) -> Self {
|
6126 - | self.range_integer_set_query = input;
|
6127 - | self
|
6156 + | fn build_enforcing_all_constraints(self) -> crate::input::NonStreamingBlobOperationInput {
|
6157 + | crate::input::NonStreamingBlobOperationInput {
|
6158 + | non_streaming_blob: self.non_streaming_blob,
|
6159 + | }
|
6128 6160 | }
|
6129 - | #[allow(missing_docs)] // documentation missing in model
|
6130 - | pub fn range_long_set_query(
|
6131 - | mut self,
|
6132 - | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
6133 - | ) -> Self {
|
6134 - | self.range_long_set_query = input;
|
6135 - | self
|
6161 + | }
|
6162 + | }
|
6163 + | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6164 + | pub mod non_streaming_blob_operation_input {
|
6165 + |
|
6166 + | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
6167 + | fn from(builder: Builder) -> Self {
|
6168 + | builder.build()
|
6136 6169 | }
|
6170 + | }
|
6171 + | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6172 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6173 + | pub struct Builder {
|
6174 + | pub(crate) non_streaming_blob:
|
6175 + | ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
6176 + | }
|
6177 + | impl Builder {
|
6137 6178 | #[allow(missing_docs)] // documentation missing in model
|
6138 - | pub fn enum_string_list_query(
|
6179 + | pub fn non_streaming_blob(
|
6139 6180 | mut self,
|
6140 - | input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
6181 + | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
6141 6182 | ) -> Self {
|
6142 - | self.enum_string_list_query = input;
|
6183 + | self.non_streaming_blob = input;
|
6143 6184 | self
|
6144 6185 | }
|
6145 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
6146 - | ///
|
6147 - | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
6148 - | ///
|
6149 - | pub fn build(
|
6150 - | self,
|
6151 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
6152 - | {
|
6186 + | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
6187 + | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
6153 6188 | self.build_enforcing_required_and_enum_traits()
|
6154 6189 | }
|
6155 6190 | fn build_enforcing_required_and_enum_traits(
|
6156 6191 | self,
|
6157 - | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
6158 - | {
|
6159 - | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
6160 - | length_string_label: self
|
6161 - | .length_string_label
|
6162 - | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
6163 - | range_integer_label: self.range_integer_label.unwrap_or(0i32),
|
6164 - | range_short_label: self.range_short_label.unwrap_or(0i16),
|
6165 - | range_long_label: self.range_long_label.unwrap_or(0i64),
|
6166 - | range_byte_label: self.range_byte_label.unwrap_or(0i8),
|
6167 - | enum_string_label: self
|
6168 - | .enum_string_label
|
6169 - | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
6170 - | length_string_header_map: self
|
6171 - | .length_string_header_map
|
6172 - | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
6173 - | length_string_header: self.length_string_header,
|
6174 - | range_integer_header: self.range_integer_header.unwrap_or(0i32),
|
6175 - | range_short_header: self.range_short_header.unwrap_or(0i16),
|
6176 - | range_long_header: self.range_long_header.unwrap_or(0i64),
|
6177 - | range_byte_header: self.range_byte_header.unwrap_or(0i8),
|
6178 - | length_string_set_header: self.length_string_set_header,
|
6179 - | list_length_string_header: self.list_length_string_header,
|
6180 - | length_list_pattern_string_header: self.length_list_pattern_string_header,
|
6181 - | length_set_pattern_string_header: self.length_set_pattern_string_header,
|
6182 - | range_byte_set_header: self.range_byte_set_header,
|
6183 - | range_short_set_header: self.range_short_set_header,
|
6184 - | range_integer_set_header: self.range_integer_set_header,
|
6185 - | range_long_set_header: self.range_long_set_header,
|
6186 - | range_byte_list_header: self.range_byte_list_header,
|
6187 - | range_short_list_header: self.range_short_list_header,
|
6188 - | range_integer_list_header: self.range_integer_list_header,
|
6189 - | range_long_list_header: self.range_long_list_header,
|
6190 - | length_string_query: self.length_string_query,
|
6191 - | range_byte_query: self.range_byte_query.unwrap_or(0i8),
|
6192 - | range_short_query: self.range_short_query.unwrap_or(0i16),
|
6193 - | range_integer_query: self.range_integer_query.unwrap_or(0i32),
|
6194 - | range_long_query: self.range_long_query.unwrap_or(0i64),
|
6195 - | enum_string_query: self.enum_string_query,
|
6196 - | length_string_list_query: self.length_string_list_query,
|
6197 - | length_list_pattern_string_query: self.length_list_pattern_string_query,
|
6198 - | length_string_set_query: self.length_string_set_query,
|
6199 - | range_byte_list_query: self.range_byte_list_query,
|
6200 - | range_short_list_query: self.range_short_list_query,
|
6201 - | range_integer_list_query: self.range_integer_list_query,
|
6202 - | range_long_list_query: self.range_long_list_query,
|
6203 - | range_byte_set_query: self.range_byte_set_query,
|
6204 - | range_short_set_query: self.range_short_set_query,
|
6205 - | range_integer_set_query: self.range_integer_set_query,
|
6206 - | range_long_set_query: self.range_long_set_query,
|
6207 - | enum_string_list_query: self.enum_string_list_query,
|
6208 - | })
|
6192 + | ) -> crate::input::NonStreamingBlobOperationInput {
|
6193 + | crate::input::NonStreamingBlobOperationInput {
|
6194 + | non_streaming_blob: self.non_streaming_blob,
|
6195 + | }
|
6209 6196 | }
|
6210 6197 | }
|
6211 6198 | }
|
6212 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6213 - | pub(crate) mod constrained_shapes_only_in_output_operation_input_internal {
|
6199 + | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6200 + | pub(crate) mod streaming_blob_operation_input_internal {
|
6214 6201 |
|
6215 - | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6202 + | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
6216 6203 | fn from(builder: Builder) -> Self {
|
6217 6204 | builder.build()
|
6218 6205 | }
|
6219 6206 | }
|
6220 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6207 + | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6221 6208 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6222 - | pub(crate) struct Builder {}
|
6209 + | pub(crate) struct Builder {
|
6210 + | pub(crate) streaming_blob:
|
6211 + | ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
6212 + | }
|
6223 6213 | impl Builder {
|
6224 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6225 - | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6214 + | #[allow(missing_docs)] // documentation missing in model
|
6215 + | pub(crate) fn set_streaming_blob(
|
6216 + | mut self,
|
6217 + | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::ByteStream>,
|
6218 + | ) -> Self {
|
6219 + | self.streaming_blob = Some(input.into());
|
6220 + | self
|
6221 + | }
|
6222 + | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6223 + | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
6226 6224 | self.build_enforcing_all_constraints()
|
6227 6225 | }
|
6228 - | fn build_enforcing_all_constraints(
|
6229 - | self,
|
6230 - | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6231 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
6226 + | fn build_enforcing_all_constraints(self) -> crate::input::StreamingBlobOperationInput {
|
6227 + | crate::input::StreamingBlobOperationInput {
|
6228 + | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
6229 + | }
|
6232 6230 | }
|
6233 6231 | }
|
6234 6232 | }
|
6235 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6236 - | pub mod constrained_shapes_only_in_output_operation_input {
|
6233 + | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6234 + | pub mod streaming_blob_operation_input {
|
6237 6235 |
|
6238 - | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6236 + | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
6239 6237 | fn from(builder: Builder) -> Self {
|
6240 6238 | builder.build()
|
6241 6239 | }
|
6242 6240 | }
|
6243 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6241 + | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6244 6242 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6245 - | pub struct Builder {}
|
6243 + | pub struct Builder {
|
6244 + | pub(crate) streaming_blob:
|
6245 + | ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
6246 + | }
|
6246 6247 | impl Builder {
|
6247 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6248 - | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6248 + | #[allow(missing_docs)] // documentation missing in model
|
6249 + | pub fn streaming_blob(
|
6250 + | mut self,
|
6251 + | input: ::aws_smithy_http_server_python::types::ByteStream,
|
6252 + | ) -> Self {
|
6253 + | self.streaming_blob = Some(input);
|
6254 + | self
|
6255 + | }
|
6256 + | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
6257 + | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
6249 6258 | self.build_enforcing_required_and_enum_traits()
|
6250 6259 | }
|
6251 6260 | fn build_enforcing_required_and_enum_traits(
|
6252 6261 | self,
|
6253 - | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6254 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
6262 + | ) -> crate::input::StreamingBlobOperationInput {
|
6263 + | crate::input::StreamingBlobOperationInput {
|
6264 + | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
6265 + | }
|
6255 6266 | }
|
6256 6267 | }
|
6257 6268 | }
|
6258 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6259 - | pub(crate) mod constrained_shapes_operation_input_internal {
|
6269 + | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6270 + | pub(crate) mod event_streams_operation_input_internal {
|
6260 6271 |
|
6261 6272 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6262 6273 | /// Holds one variant for each of the ways the builder can fail.
|
6263 6274 | #[non_exhaustive]
|
6264 6275 | #[allow(clippy::enum_variant_names)]
|
6265 6276 | pub(crate) enum ConstraintViolation {
|
6266 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
6267 - | MissingConA,
|
6268 - | /// Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
6269 - | #[doc(hidden)]
|
6270 - | ConA(crate::model::con_a_internal::ConstraintViolation),
|
6277 + | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
6278 + | MissingEvents,
|
6271 6279 | }
|
6272 6280 | impl ::std::fmt::Display for ConstraintViolation {
|
6273 6281 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6274 6282 | match self {
|
6275 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
6276 - | ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
6283 + | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
6277 6284 | }
|
6278 6285 | }
|
6279 6286 | }
|
6280 6287 | impl ::std::error::Error for ConstraintViolation {}
|
6281 6288 | impl ConstraintViolation {
|
6282 6289 | pub(crate) fn as_validation_exception_field(
|
6283 6290 | self,
|
6284 6291 | path: ::std::string::String,
|
6285 6292 | ) -> crate::model::ValidationExceptionField {
|
6286 6293 | match self {
|
6287 - | ConstraintViolation::MissingConA => crate::model::ValidationExceptionField {
|
6288 - | message: format!(
|
6289 - | "Value at '{}/conA' failed to satisfy constraint: Member must not be null",
|
6290 - | path
|
6291 - | ),
|
6292 - | path: path + "/conA",
|
6293 - | },
|
6294 - | ConstraintViolation::ConA(inner) => {
|
6295 - | inner.as_validation_exception_field(path + "/conA")
|
6296 - | }
|
6297 - | }
|
6294 + | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
6295 + | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
6296 + | path: path + "/events",
|
6297 + | },
|
6298 + | }
|
6298 6299 | }
|
6299 6300 | }
|
6300 6301 | impl ::std::convert::From<ConstraintViolation>
|
6301 6302 | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6302 6303 | {
|
6303 6304 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6304 6305 | let first_validation_exception_field =
|
6305 6306 | constraint_violation.as_validation_exception_field("".to_owned());
|
6306 6307 | let validation_exception = crate::error::ValidationException {
|
6307 6308 | message: format!(
|
6308 6309 | "1 validation error detected. {}",
|
6309 6310 | &first_validation_exception_field.message
|
6310 6311 | ),
|
6311 6312 | field_list: Some(vec![first_validation_exception_field]),
|
6312 6313 | };
|
6313 6314 | Self::ConstraintViolation(
|
6314 6315 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6315 6316 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6316 6317 | )
|
6317 6318 | }
|
6318 6319 | }
|
6319 6320 | impl ::std::convert::From<Builder>
|
6320 - | for crate::constrained::MaybeConstrained<crate::input::ConstrainedShapesOperationInput>
|
6321 + | for crate::constrained::MaybeConstrained<crate::input::EventStreamsOperationInput>
|
6321 6322 | {
|
6322 6323 | fn from(builder: Builder) -> Self {
|
6323 6324 | Self::Unconstrained(builder)
|
6324 6325 | }
|
6325 6326 | }
|
6326 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
6327 + | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
6327 6328 | type Error = ConstraintViolation;
|
6328 6329 |
|
6329 6330 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6330 6331 | builder.build()
|
6331 6332 | }
|
6332 6333 | }
|
6333 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6334 + | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6334 6335 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6335 6336 | pub(crate) struct Builder {
|
6336 - | pub(crate) con_a:
|
6337 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
6337 + | pub(crate) events: ::std::option::Option<
|
6338 + | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
6339 + | >,
|
6338 6340 | }
|
6339 6341 | impl Builder {
|
6340 6342 | #[allow(missing_docs)] // documentation missing in model
|
6341 - | pub(crate) fn set_con_a(
|
6343 + | pub(crate) fn set_events(
|
6342 6344 | mut self,
|
6343 - | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
6345 + | input: impl ::std::convert::Into<
|
6346 + | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
6347 + | >,
|
6344 6348 | ) -> Self {
|
6345 - | self.con_a = Some(input.into());
|
6349 + | self.events = Some(input.into());
|
6346 6350 | self
|
6347 6351 | }
|
6348 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6352 + | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6349 6353 | ///
|
6350 - | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
6354 + | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
6351 6355 | ///
|
6352 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6353 6356 | pub fn build(
|
6354 6357 | self,
|
6355 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6358 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
6356 6359 | self.build_enforcing_all_constraints()
|
6357 6360 | }
|
6358 6361 | fn build_enforcing_all_constraints(
|
6359 6362 | self,
|
6360 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6361 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
6362 - | con_a: self
|
6363 - | .con_a
|
6364 - | .map(|v| match v {
|
6365 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6366 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6367 - | })
|
6368 - | .map(|res| res.map_err(ConstraintViolation::ConA))
|
6369 - | .transpose()?
|
6370 - | .ok_or(ConstraintViolation::MissingConA)?,
|
6363 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
6364 + | Ok(crate::input::EventStreamsOperationInput {
|
6365 + | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
6371 6366 | })
|
6372 6367 | }
|
6373 6368 | }
|
6374 6369 | }
|
6375 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6376 - | pub mod constrained_shapes_operation_input {
|
6370 + | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6371 + | pub mod event_streams_operation_input {
|
6377 6372 |
|
6378 6373 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6379 6374 | /// Holds one variant for each of the ways the builder can fail.
|
6380 6375 | #[allow(clippy::enum_variant_names)]
|
6381 6376 | pub enum ConstraintViolation {
|
6382 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
6383 - | MissingConA,
|
6377 + | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
6378 + | MissingEvents,
|
6384 6379 | }
|
6385 6380 | impl ::std::fmt::Display for ConstraintViolation {
|
6386 6381 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6387 6382 | match self {
|
6388 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
6383 + | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
6389 6384 | }
|
6390 6385 | }
|
6391 6386 | }
|
6392 6387 | impl ::std::error::Error for ConstraintViolation {}
|
6393 - | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
6388 + | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
6394 6389 | type Error = ConstraintViolation;
|
6395 6390 |
|
6396 6391 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6397 6392 | builder.build()
|
6398 6393 | }
|
6399 6394 | }
|
6400 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6395 + | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6401 6396 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6402 6397 | pub struct Builder {
|
6403 - | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
6398 + | pub(crate) events: ::std::option::Option<
|
6399 + | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
6400 + | >,
|
6404 6401 | }
|
6405 6402 | impl Builder {
|
6406 6403 | #[allow(missing_docs)] // documentation missing in model
|
6407 - | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
6408 - | self.con_a = Some(input);
|
6404 + | pub fn events(
|
6405 + | mut self,
|
6406 + | input: crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
6407 + | ) -> Self {
|
6408 + | self.events = Some(input);
|
6409 6409 | self
|
6410 6410 | }
|
6411 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6411 + | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
6412 6412 | ///
|
6413 - | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
6413 + | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if you do not provide a value for all non-`Option`al members.
|
6414 6414 | ///
|
6415 6415 | pub fn build(
|
6416 6416 | self,
|
6417 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6417 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
6418 6418 | self.build_enforcing_required_and_enum_traits()
|
6419 6419 | }
|
6420 6420 | fn build_enforcing_required_and_enum_traits(
|
6421 6421 | self,
|
6422 - | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6423 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
6424 - | con_a: self.con_a.ok_or(ConstraintViolation::MissingConA)?,
|
6422 + | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
6423 + | Ok(crate::input::EventStreamsOperationInput {
|
6424 + | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
6425 6425 | })
|
6426 6426 | }
|
6427 6427 | }
|
6428 6428 | }
|