1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | #[::pyo3::pyclass]
|
3 3 | /// :rtype None:
|
4 4 | #[allow(missing_docs)] // documentation missing in model
|
5 5 | #[derive(
|
6 6 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
7 7 | )]
|
8 - | pub struct QueryIncompatibleOperationInput {}
|
8 + | pub struct NoInputAndNoOutputInput {}
|
9 9 | #[allow(clippy::new_without_default)]
|
10 10 | #[allow(clippy::too_many_arguments)]
|
11 11 | #[::pyo3::pymethods]
|
12 - | impl QueryIncompatibleOperationInput {
|
12 + | impl NoInputAndNoOutputInput {
|
13 13 | #[new]
|
14 14 | pub fn new() -> Self {
|
15 15 | Self {}
|
16 16 | }
|
17 17 | fn __repr__(&self) -> String {
|
18 18 | format!("{self:?}")
|
19 19 | }
|
20 20 | fn __str__(&self) -> String {
|
21 21 | format!("{self:?}")
|
22 22 | }
|
23 23 | }
|
24 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<QueryIncompatibleOperationInput> {
|
24 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NoInputAndNoOutputInput> {
|
25 25 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
26 - | ob.extract::<QueryIncompatibleOperationInput>()
|
27 - | .map(Box::new)
|
26 + | ob.extract::<NoInputAndNoOutputInput>().map(Box::new)
|
28 27 | }
|
29 28 | }
|
30 29 |
|
31 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<QueryIncompatibleOperationInput> {
|
30 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NoInputAndNoOutputInput> {
|
32 31 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
33 32 | (*self).into_py(py)
|
34 33 | }
|
35 34 | }
|
36 - | impl crate::constrained::Constrained for crate::input::QueryIncompatibleOperationInput {
|
37 - | type Unconstrained = crate::input::query_incompatible_operation_input_internal::Builder;
|
35 + | impl crate::constrained::Constrained for crate::input::NoInputAndNoOutputInput {
|
36 + | type Unconstrained = crate::input::no_input_and_no_output_input_internal::Builder;
|
38 37 | }
|
39 - | impl QueryIncompatibleOperationInput {
|
40 - | /// Creates a new builder-style object to manufacture [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
41 - | pub fn builder() -> crate::input::query_incompatible_operation_input::Builder {
|
42 - | crate::input::query_incompatible_operation_input::Builder::default()
|
38 + | impl NoInputAndNoOutputInput {
|
39 + | /// Creates a new builder-style object to manufacture [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
40 + | pub fn builder() -> crate::input::no_input_and_no_output_input::Builder {
|
41 + | crate::input::no_input_and_no_output_input::Builder::default()
|
43 42 | }
|
44 43 | }
|
45 44 |
|
46 45 | #[::pyo3::pyclass]
|
47 46 | /// :rtype None:
|
48 47 | #[allow(missing_docs)] // documentation missing in model
|
49 48 | #[derive(
|
50 49 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
51 50 | )]
|
52 - | pub struct OperationWithRequiredMembersWithDefaultsInput {}
|
51 + | pub struct NoInputAndOutputInput {}
|
53 52 | #[allow(clippy::new_without_default)]
|
54 53 | #[allow(clippy::too_many_arguments)]
|
55 54 | #[::pyo3::pymethods]
|
56 - | impl OperationWithRequiredMembersWithDefaultsInput {
|
55 + | impl NoInputAndOutputInput {
|
57 56 | #[new]
|
58 57 | pub fn new() -> Self {
|
59 58 | Self {}
|
60 59 | }
|
61 60 | fn __repr__(&self) -> String {
|
62 61 | format!("{self:?}")
|
63 62 | }
|
64 63 | fn __str__(&self) -> String {
|
65 64 | format!("{self:?}")
|
66 65 | }
|
67 66 | }
|
68 - | impl<'source> ::pyo3::FromPyObject<'source>
|
69 - | for std::boxed::Box<OperationWithRequiredMembersWithDefaultsInput>
|
70 - | {
|
71 - | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
72 - | ob.extract::<OperationWithRequiredMembersWithDefaultsInput>()
|
73 - | .map(Box::new)
|
74 - | }
|
75 - | }
|
76 - |
|
77 - | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
78 - | for std::boxed::Box<OperationWithRequiredMembersWithDefaultsInput>
|
79 - | {
|
80 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
81 - | (*self).into_py(py)
|
82 - | }
|
83 - | }
|
84 - | impl crate::constrained::Constrained
|
85 - | for crate::input::OperationWithRequiredMembersWithDefaultsInput
|
86 - | {
|
87 - | type Unconstrained =
|
88 - | crate::input::operation_with_required_members_with_defaults_input_internal::Builder;
|
89 - | }
|
90 - | impl OperationWithRequiredMembersWithDefaultsInput {
|
91 - | /// Creates a new builder-style object to manufacture [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
92 - | pub fn builder() -> crate::input::operation_with_required_members_with_defaults_input::Builder {
|
93 - | crate::input::operation_with_required_members_with_defaults_input::Builder::default()
|
94 - | }
|
95 - | }
|
96 - |
|
97 - | #[::pyo3::pyclass]
|
98 - | /// :param top_level json_rpc10.model.TopLevel:
|
99 - | /// :rtype None:
|
100 - | #[allow(missing_docs)] // documentation missing in model
|
101 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
102 - | pub struct OperationWithNestedStructureInput {
|
103 - | #[pyo3(get, set)]
|
104 - | /// :type json_rpc10.model.TopLevel:
|
105 - | #[allow(missing_docs)] // documentation missing in model
|
106 - | pub top_level: crate::model::TopLevel,
|
107 - | }
|
108 - | impl OperationWithNestedStructureInput {
|
109 - | #[allow(missing_docs)] // documentation missing in model
|
110 - | pub fn top_level(&self) -> &crate::model::TopLevel {
|
111 - | &self.top_level
|
112 - | }
|
113 - | }
|
114 - | #[allow(clippy::new_without_default)]
|
115 - | #[allow(clippy::too_many_arguments)]
|
116 - | #[::pyo3::pymethods]
|
117 - | impl OperationWithNestedStructureInput {
|
118 - | #[new]
|
119 - | pub fn new(top_level: crate::model::TopLevel) -> Self {
|
120 - | Self { top_level }
|
121 - | }
|
122 - | fn __repr__(&self) -> String {
|
123 - | format!("{self:?}")
|
124 - | }
|
125 - | fn __str__(&self) -> String {
|
126 - | format!("{self:?}")
|
127 - | }
|
128 - | }
|
129 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithNestedStructureInput> {
|
67 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NoInputAndOutputInput> {
|
130 68 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
131 - | ob.extract::<OperationWithNestedStructureInput>()
|
132 - | .map(Box::new)
|
69 + | ob.extract::<NoInputAndOutputInput>().map(Box::new)
|
133 70 | }
|
134 71 | }
|
135 72 |
|
136 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithNestedStructureInput> {
|
73 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NoInputAndOutputInput> {
|
137 74 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
138 75 | (*self).into_py(py)
|
139 76 | }
|
140 77 | }
|
141 - | impl crate::constrained::Constrained for crate::input::OperationWithNestedStructureInput {
|
142 - | type Unconstrained = crate::input::operation_with_nested_structure_input_internal::Builder;
|
78 + | impl crate::constrained::Constrained for crate::input::NoInputAndOutputInput {
|
79 + | type Unconstrained = crate::input::no_input_and_output_input_internal::Builder;
|
143 80 | }
|
144 - | impl OperationWithNestedStructureInput {
|
145 - | /// Creates a new builder-style object to manufacture [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
146 - | pub fn builder() -> crate::input::operation_with_nested_structure_input::Builder {
|
147 - | crate::input::operation_with_nested_structure_input::Builder::default()
|
81 + | impl NoInputAndOutputInput {
|
82 + | /// Creates a new builder-style object to manufacture [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
83 + | pub fn builder() -> crate::input::no_input_and_output_input::Builder {
|
84 + | crate::input::no_input_and_output_input::Builder::default()
|
148 85 | }
|
149 86 | }
|
150 87 |
|
151 88 | #[::pyo3::pyclass]
|
152 89 | /// :rtype None:
|
153 90 | #[allow(missing_docs)] // documentation missing in model
|
154 91 | #[derive(
|
155 92 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
156 93 | )]
|
157 - | pub struct OperationWithRequiredMembersInput {}
|
94 + | pub struct EmptyInputAndEmptyOutputInput {}
|
158 95 | #[allow(clippy::new_without_default)]
|
159 96 | #[allow(clippy::too_many_arguments)]
|
160 97 | #[::pyo3::pymethods]
|
161 - | impl OperationWithRequiredMembersInput {
|
98 + | impl EmptyInputAndEmptyOutputInput {
|
162 99 | #[new]
|
163 100 | pub fn new() -> Self {
|
164 101 | Self {}
|
165 102 | }
|
166 103 | fn __repr__(&self) -> String {
|
167 104 | format!("{self:?}")
|
168 105 | }
|
169 106 | fn __str__(&self) -> String {
|
170 107 | format!("{self:?}")
|
171 108 | }
|
172 109 | }
|
173 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithRequiredMembersInput> {
|
110 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EmptyInputAndEmptyOutputInput> {
|
174 111 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
175 - | ob.extract::<OperationWithRequiredMembersInput>()
|
176 - | .map(Box::new)
|
112 + | ob.extract::<EmptyInputAndEmptyOutputInput>().map(Box::new)
|
177 113 | }
|
178 114 | }
|
179 115 |
|
180 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithRequiredMembersInput> {
|
116 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EmptyInputAndEmptyOutputInput> {
|
181 117 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
182 118 | (*self).into_py(py)
|
183 119 | }
|
184 120 | }
|
185 - | impl crate::constrained::Constrained for crate::input::OperationWithRequiredMembersInput {
|
186 - | type Unconstrained = crate::input::operation_with_required_members_input_internal::Builder;
|
121 + | impl crate::constrained::Constrained for crate::input::EmptyInputAndEmptyOutputInput {
|
122 + | type Unconstrained = crate::input::empty_input_and_empty_output_input_internal::Builder;
|
187 123 | }
|
188 - | impl OperationWithRequiredMembersInput {
|
189 - | /// Creates a new builder-style object to manufacture [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
190 - | pub fn builder() -> crate::input::operation_with_required_members_input::Builder {
|
191 - | crate::input::operation_with_required_members_input::Builder::default()
|
124 + | impl EmptyInputAndEmptyOutputInput {
|
125 + | /// Creates a new builder-style object to manufacture [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
126 + | pub fn builder() -> crate::input::empty_input_and_empty_output_input::Builder {
|
127 + | crate::input::empty_input_and_empty_output_input::Builder::default()
|
192 128 | }
|
193 129 | }
|
194 130 |
|
195 131 | #[::pyo3::pyclass]
|
196 - | /// :param top_level_default str:
|
197 - | /// :param other_top_level_default int:
|
198 - | /// :param defaults typing.Optional\[json_rpc10.model.Defaults\]:
|
199 - | /// :param client_optional_defaults typing.Optional\[json_rpc10.model.ClientOptionalDefaults\]:
|
132 + | /// :param float_value typing.Optional\[float\]:
|
133 + | /// :param double_value typing.Optional\[float\]:
|
200 134 | /// :rtype None:
|
201 135 | #[allow(missing_docs)] // documentation missing in model
|
202 136 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
203 - | pub struct OperationWithDefaultsInput {
|
204 - | #[pyo3(get, set)]
|
205 - | /// :type typing.Optional\[json_rpc10.model.Defaults\]:
|
206 - | #[allow(missing_docs)] // documentation missing in model
|
207 - | pub defaults: ::std::option::Option<crate::model::Defaults>,
|
208 - | #[pyo3(get, set)]
|
209 - | /// :type typing.Optional\[json_rpc10.model.ClientOptionalDefaults\]:
|
210 - | #[allow(missing_docs)] // documentation missing in model
|
211 - | pub client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
137 + | pub struct SimpleScalarPropertiesInput {
|
212 138 | #[pyo3(get, set)]
|
213 - | /// :type str:
|
139 + | /// :type typing.Optional\[float\]:
|
214 140 | #[allow(missing_docs)] // documentation missing in model
|
215 - | pub top_level_default: ::std::string::String,
|
141 + | pub float_value: ::std::option::Option<f32>,
|
216 142 | #[pyo3(get, set)]
|
217 - | /// :type int:
|
143 + | /// :type typing.Optional\[float\]:
|
218 144 | #[allow(missing_docs)] // documentation missing in model
|
219 - | pub other_top_level_default: i32,
|
145 + | pub double_value: ::std::option::Option<f64>,
|
220 146 | }
|
221 - | impl OperationWithDefaultsInput {
|
222 - | #[allow(missing_docs)] // documentation missing in model
|
223 - | pub fn defaults(&self) -> ::std::option::Option<&crate::model::Defaults> {
|
224 - | self.defaults.as_ref()
|
225 - | }
|
226 - | #[allow(missing_docs)] // documentation missing in model
|
227 - | pub fn client_optional_defaults(
|
228 - | &self,
|
229 - | ) -> ::std::option::Option<&crate::model::ClientOptionalDefaults> {
|
230 - | self.client_optional_defaults.as_ref()
|
231 - | }
|
147 + | impl SimpleScalarPropertiesInput {
|
232 148 | #[allow(missing_docs)] // documentation missing in model
|
233 - | pub fn top_level_default(&self) -> &str {
|
234 - | use std::ops::Deref;
|
235 - | self.top_level_default.deref()
|
149 + | pub fn float_value(&self) -> ::std::option::Option<f32> {
|
150 + | self.float_value
|
236 151 | }
|
237 152 | #[allow(missing_docs)] // documentation missing in model
|
238 - | pub fn other_top_level_default(&self) -> i32 {
|
239 - | self.other_top_level_default
|
153 + | pub fn double_value(&self) -> ::std::option::Option<f64> {
|
154 + | self.double_value
|
240 155 | }
|
241 156 | }
|
242 157 | #[allow(clippy::new_without_default)]
|
243 158 | #[allow(clippy::too_many_arguments)]
|
244 159 | #[::pyo3::pymethods]
|
245 - | impl OperationWithDefaultsInput {
|
160 + | impl SimpleScalarPropertiesInput {
|
246 161 | #[new]
|
247 162 | pub fn new(
|
248 - | top_level_default: ::std::string::String,
|
249 - | other_top_level_default: i32,
|
250 - | defaults: ::std::option::Option<crate::model::Defaults>,
|
251 - | client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
163 + | float_value: ::std::option::Option<f32>,
|
164 + | double_value: ::std::option::Option<f64>,
|
252 165 | ) -> Self {
|
253 166 | Self {
|
254 - | top_level_default,
|
255 - | other_top_level_default,
|
256 - | defaults,
|
257 - | client_optional_defaults,
|
167 + | float_value,
|
168 + | double_value,
|
258 169 | }
|
259 170 | }
|
260 171 | fn __repr__(&self) -> String {
|
261 172 | format!("{self:?}")
|
262 173 | }
|
263 174 | fn __str__(&self) -> String {
|
264 175 | format!("{self:?}")
|
265 176 | }
|
266 177 | }
|
267 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithDefaultsInput> {
|
178 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<SimpleScalarPropertiesInput> {
|
268 179 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
269 - | ob.extract::<OperationWithDefaultsInput>().map(Box::new)
|
180 + | ob.extract::<SimpleScalarPropertiesInput>().map(Box::new)
|
270 181 | }
|
271 182 | }
|
272 183 |
|
273 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithDefaultsInput> {
|
184 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<SimpleScalarPropertiesInput> {
|
274 185 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
275 186 | (*self).into_py(py)
|
276 187 | }
|
277 188 | }
|
278 - | impl crate::constrained::Constrained for crate::input::OperationWithDefaultsInput {
|
279 - | type Unconstrained = crate::input::operation_with_defaults_input_internal::Builder;
|
189 + | impl crate::constrained::Constrained for crate::input::SimpleScalarPropertiesInput {
|
190 + | type Unconstrained = crate::input::simple_scalar_properties_input_internal::Builder;
|
280 191 | }
|
281 - | impl OperationWithDefaultsInput {
|
282 - | /// Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
283 - | pub fn builder() -> crate::input::operation_with_defaults_input::Builder {
|
284 - | crate::input::operation_with_defaults_input::Builder::default()
|
192 + | impl SimpleScalarPropertiesInput {
|
193 + | /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
194 + | pub fn builder() -> crate::input::simple_scalar_properties_input::Builder {
|
195 + | crate::input::simple_scalar_properties_input::Builder::default()
|
285 196 | }
|
286 197 | }
|
287 198 |
|
288 199 | #[::pyo3::pyclass]
|
289 - | /// :param value typing.Optional\[int\]:
|
200 + | /// :param greeting typing.Optional\[str\]:
|
290 201 | /// :rtype None:
|
291 202 | #[allow(missing_docs)] // documentation missing in model
|
292 203 | #[derive(
|
293 204 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
294 205 | )]
|
295 - | pub struct ContentTypeParametersInput {
|
206 + | pub struct GreetingWithErrorsInput {
|
296 207 | #[pyo3(get, set)]
|
297 - | /// :type typing.Optional\[int\]:
|
208 + | /// :type typing.Optional\[str\]:
|
298 209 | #[allow(missing_docs)] // documentation missing in model
|
299 - | pub value: ::std::option::Option<i32>,
|
210 + | pub greeting: ::std::option::Option<::std::string::String>,
|
300 211 | }
|
301 - | impl ContentTypeParametersInput {
|
212 + | impl GreetingWithErrorsInput {
|
302 213 | #[allow(missing_docs)] // documentation missing in model
|
303 - | pub fn value(&self) -> ::std::option::Option<i32> {
|
304 - | self.value
|
214 + | pub fn greeting(&self) -> ::std::option::Option<&str> {
|
215 + | self.greeting.as_deref()
|
305 216 | }
|
306 217 | }
|
307 218 | #[allow(clippy::new_without_default)]
|
308 219 | #[allow(clippy::too_many_arguments)]
|
309 220 | #[::pyo3::pymethods]
|
310 - | impl ContentTypeParametersInput {
|
221 + | impl GreetingWithErrorsInput {
|
311 222 | #[new]
|
312 - | pub fn new(value: ::std::option::Option<i32>) -> Self {
|
313 - | Self { value }
|
223 + | pub fn new(greeting: ::std::option::Option<::std::string::String>) -> Self {
|
224 + | Self { greeting }
|
314 225 | }
|
315 226 | fn __repr__(&self) -> String {
|
316 227 | format!("{self:?}")
|
317 228 | }
|
318 229 | fn __str__(&self) -> String {
|
319 230 | format!("{self:?}")
|
320 231 | }
|
321 232 | }
|
322 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ContentTypeParametersInput> {
|
233 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GreetingWithErrorsInput> {
|
323 234 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
324 - | ob.extract::<ContentTypeParametersInput>().map(Box::new)
|
235 + | ob.extract::<GreetingWithErrorsInput>().map(Box::new)
|
325 236 | }
|
326 237 | }
|
327 238 |
|
328 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ContentTypeParametersInput> {
|
239 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GreetingWithErrorsInput> {
|
329 240 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
330 241 | (*self).into_py(py)
|
331 242 | }
|
332 243 | }
|
333 - | impl crate::constrained::Constrained for crate::input::ContentTypeParametersInput {
|
334 - | type Unconstrained = crate::input::content_type_parameters_input_internal::Builder;
|
244 + | impl crate::constrained::Constrained for crate::input::GreetingWithErrorsInput {
|
245 + | type Unconstrained = crate::input::greeting_with_errors_input_internal::Builder;
|
335 246 | }
|
336 - | impl ContentTypeParametersInput {
|
337 - | /// Creates a new builder-style object to manufacture [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
338 - | pub fn builder() -> crate::input::content_type_parameters_input::Builder {
|
339 - | crate::input::content_type_parameters_input::Builder::default()
|
247 + | impl GreetingWithErrorsInput {
|
248 + | /// Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
249 + | pub fn builder() -> crate::input::greeting_with_errors_input::Builder {
|
250 + | crate::input::greeting_with_errors_input::Builder::default()
|
340 251 | }
|
341 252 | }
|
342 253 |
|
343 254 | #[::pyo3::pyclass]
|
344 - | /// :param encoding typing.Optional\[str\]:
|
345 - | /// :param data typing.Optional\[str\]:
|
255 + | /// :param contents typing.Optional\[json_rpc10.model.MyUnion\]:
|
346 256 | /// :rtype None:
|
347 257 | #[allow(missing_docs)] // documentation missing in model
|
348 - | #[derive(
|
349 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
350 - | )]
|
351 - | pub struct PutWithContentEncodingInput {
|
258 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
259 + | pub struct JsonUnionsInput {
|
352 260 | #[pyo3(get, set)]
|
353 - | /// :type typing.Optional\[str\]:
|
354 - | #[allow(missing_docs)] // documentation missing in model
|
355 - | pub encoding: ::std::option::Option<::std::string::String>,
|
356 - | #[pyo3(get, set)]
|
357 - | /// :type typing.Optional\[str\]:
|
358 - | #[allow(missing_docs)] // documentation missing in model
|
359 - | pub data: ::std::option::Option<::std::string::String>,
|
261 + | /// :type typing.Optional\[json_rpc10.model.MyUnion\]:
|
262 + | /// A union with a representative set of types for members.
|
263 + | pub contents: ::std::option::Option<crate::model::MyUnion>,
|
360 264 | }
|
361 - | impl PutWithContentEncodingInput {
|
362 - | #[allow(missing_docs)] // documentation missing in model
|
363 - | pub fn encoding(&self) -> ::std::option::Option<&str> {
|
364 - | self.encoding.as_deref()
|
365 - | }
|
366 - | #[allow(missing_docs)] // documentation missing in model
|
367 - | pub fn data(&self) -> ::std::option::Option<&str> {
|
368 - | self.data.as_deref()
|
265 + | impl JsonUnionsInput {
|
266 + | /// A union with a representative set of types for members.
|
267 + | pub fn contents(&self) -> ::std::option::Option<&crate::model::MyUnion> {
|
268 + | self.contents.as_ref()
|
369 269 | }
|
370 270 | }
|
371 271 | #[allow(clippy::new_without_default)]
|
372 272 | #[allow(clippy::too_many_arguments)]
|
373 273 | #[::pyo3::pymethods]
|
374 - | impl PutWithContentEncodingInput {
|
274 + | impl JsonUnionsInput {
|
375 275 | #[new]
|
376 - | pub fn new(
|
377 - | encoding: ::std::option::Option<::std::string::String>,
|
378 - | data: ::std::option::Option<::std::string::String>,
|
379 - | ) -> Self {
|
380 - | Self { encoding, data }
|
276 + | pub fn new(contents: ::std::option::Option<crate::model::MyUnion>) -> Self {
|
277 + | Self { contents }
|
381 278 | }
|
382 279 | fn __repr__(&self) -> String {
|
383 280 | format!("{self:?}")
|
384 281 | }
|
385 282 | fn __str__(&self) -> String {
|
386 283 | format!("{self:?}")
|
387 284 | }
|
388 285 | }
|
389 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<PutWithContentEncodingInput> {
|
286 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<JsonUnionsInput> {
|
390 287 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
391 - | ob.extract::<PutWithContentEncodingInput>().map(Box::new)
|
288 + | ob.extract::<JsonUnionsInput>().map(Box::new)
|
392 289 | }
|
393 290 | }
|
394 291 |
|
395 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<PutWithContentEncodingInput> {
|
292 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<JsonUnionsInput> {
|
396 293 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
397 294 | (*self).into_py(py)
|
398 295 | }
|
399 296 | }
|
400 - | impl crate::constrained::Constrained for crate::input::PutWithContentEncodingInput {
|
401 - | type Unconstrained = crate::input::put_with_content_encoding_input_internal::Builder;
|
297 + | impl crate::constrained::Constrained for crate::input::JsonUnionsInput {
|
298 + | type Unconstrained = crate::input::json_unions_input_internal::Builder;
|
402 299 | }
|
403 - | impl PutWithContentEncodingInput {
|
404 - | /// Creates a new builder-style object to manufacture [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
405 - | pub fn builder() -> crate::input::put_with_content_encoding_input::Builder {
|
406 - | crate::input::put_with_content_encoding_input::Builder::default()
|
300 + | impl JsonUnionsInput {
|
301 + | /// Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
302 + | pub fn builder() -> crate::input::json_unions_input::Builder {
|
303 + | crate::input::json_unions_input::Builder::default()
|
407 304 | }
|
408 305 | }
|
409 306 |
|
410 307 | #[::pyo3::pyclass]
|
411 308 | /// :rtype None:
|
412 309 | #[allow(missing_docs)] // documentation missing in model
|
413 310 | #[derive(
|
414 311 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
415 312 | )]
|
416 - | pub struct HostWithPathOperationInput {}
|
313 + | pub struct EndpointOperationInput {}
|
417 314 | #[allow(clippy::new_without_default)]
|
418 315 | #[allow(clippy::too_many_arguments)]
|
419 316 | #[::pyo3::pymethods]
|
420 - | impl HostWithPathOperationInput {
|
317 + | impl EndpointOperationInput {
|
421 318 | #[new]
|
422 319 | pub fn new() -> Self {
|
423 320 | Self {}
|
424 321 | }
|
425 322 | fn __repr__(&self) -> String {
|
426 323 | format!("{self:?}")
|
427 324 | }
|
428 325 | fn __str__(&self) -> String {
|
429 326 | format!("{self:?}")
|
430 327 | }
|
431 328 | }
|
432 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HostWithPathOperationInput> {
|
329 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EndpointOperationInput> {
|
433 330 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
434 - | ob.extract::<HostWithPathOperationInput>().map(Box::new)
|
331 + | ob.extract::<EndpointOperationInput>().map(Box::new)
|
435 332 | }
|
436 333 | }
|
437 334 |
|
438 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HostWithPathOperationInput> {
|
335 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EndpointOperationInput> {
|
439 336 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
440 337 | (*self).into_py(py)
|
441 338 | }
|
442 339 | }
|
443 - | impl crate::constrained::Constrained for crate::input::HostWithPathOperationInput {
|
444 - | type Unconstrained = crate::input::host_with_path_operation_input_internal::Builder;
|
340 + | impl crate::constrained::Constrained for crate::input::EndpointOperationInput {
|
341 + | type Unconstrained = crate::input::endpoint_operation_input_internal::Builder;
|
445 342 | }
|
446 - | impl HostWithPathOperationInput {
|
447 - | /// Creates a new builder-style object to manufacture [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
448 - | pub fn builder() -> crate::input::host_with_path_operation_input::Builder {
|
449 - | crate::input::host_with_path_operation_input::Builder::default()
|
343 + | impl EndpointOperationInput {
|
344 + | /// Creates a new builder-style object to manufacture [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
345 + | pub fn builder() -> crate::input::endpoint_operation_input::Builder {
|
346 + | crate::input::endpoint_operation_input::Builder::default()
|
450 347 | }
|
451 348 | }
|
452 349 |
|
453 350 | #[::pyo3::pyclass]
|
454 351 | /// :param label str:
|
455 352 | /// :rtype None:
|
456 353 | #[allow(missing_docs)] // documentation missing in model
|
457 354 | #[derive(
|
458 355 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
459 356 | )]
|
508 405 | crate::input::endpoint_with_host_label_operation_input::Builder::default()
|
509 406 | }
|
510 407 | }
|
511 408 |
|
512 409 | #[::pyo3::pyclass]
|
513 410 | /// :rtype None:
|
514 411 | #[allow(missing_docs)] // documentation missing in model
|
515 412 | #[derive(
|
516 413 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
517 414 | )]
|
518 - | pub struct EndpointOperationInput {}
|
415 + | pub struct HostWithPathOperationInput {}
|
519 416 | #[allow(clippy::new_without_default)]
|
520 417 | #[allow(clippy::too_many_arguments)]
|
521 418 | #[::pyo3::pymethods]
|
522 - | impl EndpointOperationInput {
|
419 + | impl HostWithPathOperationInput {
|
523 420 | #[new]
|
524 421 | pub fn new() -> Self {
|
525 422 | Self {}
|
526 423 | }
|
527 424 | fn __repr__(&self) -> String {
|
528 425 | format!("{self:?}")
|
529 426 | }
|
530 427 | fn __str__(&self) -> String {
|
531 428 | format!("{self:?}")
|
532 429 | }
|
533 430 | }
|
534 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EndpointOperationInput> {
|
431 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HostWithPathOperationInput> {
|
535 432 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
536 - | ob.extract::<EndpointOperationInput>().map(Box::new)
|
433 + | ob.extract::<HostWithPathOperationInput>().map(Box::new)
|
537 434 | }
|
538 435 | }
|
539 436 |
|
540 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EndpointOperationInput> {
|
437 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HostWithPathOperationInput> {
|
541 438 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
542 439 | (*self).into_py(py)
|
543 440 | }
|
544 441 | }
|
545 - | impl crate::constrained::Constrained for crate::input::EndpointOperationInput {
|
546 - | type Unconstrained = crate::input::endpoint_operation_input_internal::Builder;
|
442 + | impl crate::constrained::Constrained for crate::input::HostWithPathOperationInput {
|
443 + | type Unconstrained = crate::input::host_with_path_operation_input_internal::Builder;
|
547 444 | }
|
548 - | impl EndpointOperationInput {
|
549 - | /// Creates a new builder-style object to manufacture [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
550 - | pub fn builder() -> crate::input::endpoint_operation_input::Builder {
|
551 - | crate::input::endpoint_operation_input::Builder::default()
|
445 + | impl HostWithPathOperationInput {
|
446 + | /// Creates a new builder-style object to manufacture [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
447 + | pub fn builder() -> crate::input::host_with_path_operation_input::Builder {
|
448 + | crate::input::host_with_path_operation_input::Builder::default()
|
552 449 | }
|
553 450 | }
|
554 451 |
|
555 452 | #[::pyo3::pyclass]
|
556 - | /// :param contents typing.Optional\[json_rpc10.model.MyUnion\]:
|
453 + | /// :param encoding typing.Optional\[str\]:
|
454 + | /// :param data typing.Optional\[str\]:
|
557 455 | /// :rtype None:
|
558 456 | #[allow(missing_docs)] // documentation missing in model
|
559 - | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
560 - | pub struct JsonUnionsInput {
|
457 + | #[derive(
|
458 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
459 + | )]
|
460 + | pub struct PutWithContentEncodingInput {
|
561 461 | #[pyo3(get, set)]
|
562 - | /// :type typing.Optional\[json_rpc10.model.MyUnion\]:
|
563 - | /// A union with a representative set of types for members.
|
564 - | pub contents: ::std::option::Option<crate::model::MyUnion>,
|
462 + | /// :type typing.Optional\[str\]:
|
463 + | #[allow(missing_docs)] // documentation missing in model
|
464 + | pub encoding: ::std::option::Option<::std::string::String>,
|
465 + | #[pyo3(get, set)]
|
466 + | /// :type typing.Optional\[str\]:
|
467 + | #[allow(missing_docs)] // documentation missing in model
|
468 + | pub data: ::std::option::Option<::std::string::String>,
|
565 469 | }
|
566 - | impl JsonUnionsInput {
|
567 - | /// A union with a representative set of types for members.
|
568 - | pub fn contents(&self) -> ::std::option::Option<&crate::model::MyUnion> {
|
569 - | self.contents.as_ref()
|
470 + | impl PutWithContentEncodingInput {
|
471 + | #[allow(missing_docs)] // documentation missing in model
|
472 + | pub fn encoding(&self) -> ::std::option::Option<&str> {
|
473 + | self.encoding.as_deref()
|
474 + | }
|
475 + | #[allow(missing_docs)] // documentation missing in model
|
476 + | pub fn data(&self) -> ::std::option::Option<&str> {
|
477 + | self.data.as_deref()
|
570 478 | }
|
571 479 | }
|
572 480 | #[allow(clippy::new_without_default)]
|
573 481 | #[allow(clippy::too_many_arguments)]
|
574 482 | #[::pyo3::pymethods]
|
575 - | impl JsonUnionsInput {
|
483 + | impl PutWithContentEncodingInput {
|
576 484 | #[new]
|
577 - | pub fn new(contents: ::std::option::Option<crate::model::MyUnion>) -> Self {
|
578 - | Self { contents }
|
485 + | pub fn new(
|
486 + | encoding: ::std::option::Option<::std::string::String>,
|
487 + | data: ::std::option::Option<::std::string::String>,
|
488 + | ) -> Self {
|
489 + | Self { encoding, data }
|
579 490 | }
|
580 491 | fn __repr__(&self) -> String {
|
581 492 | format!("{self:?}")
|
582 493 | }
|
583 494 | fn __str__(&self) -> String {
|
584 495 | format!("{self:?}")
|
585 496 | }
|
586 497 | }
|
587 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<JsonUnionsInput> {
|
498 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<PutWithContentEncodingInput> {
|
588 499 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
589 - | ob.extract::<JsonUnionsInput>().map(Box::new)
|
500 + | ob.extract::<PutWithContentEncodingInput>().map(Box::new)
|
590 501 | }
|
591 502 | }
|
592 503 |
|
593 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<JsonUnionsInput> {
|
504 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<PutWithContentEncodingInput> {
|
594 505 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
595 506 | (*self).into_py(py)
|
596 507 | }
|
597 508 | }
|
598 - | impl crate::constrained::Constrained for crate::input::JsonUnionsInput {
|
599 - | type Unconstrained = crate::input::json_unions_input_internal::Builder;
|
509 + | impl crate::constrained::Constrained for crate::input::PutWithContentEncodingInput {
|
510 + | type Unconstrained = crate::input::put_with_content_encoding_input_internal::Builder;
|
600 511 | }
|
601 - | impl JsonUnionsInput {
|
602 - | /// Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
603 - | pub fn builder() -> crate::input::json_unions_input::Builder {
|
604 - | crate::input::json_unions_input::Builder::default()
|
512 + | impl PutWithContentEncodingInput {
|
513 + | /// Creates a new builder-style object to manufacture [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
514 + | pub fn builder() -> crate::input::put_with_content_encoding_input::Builder {
|
515 + | crate::input::put_with_content_encoding_input::Builder::default()
|
605 516 | }
|
606 517 | }
|
607 518 |
|
608 519 | #[::pyo3::pyclass]
|
609 - | /// :param greeting typing.Optional\[str\]:
|
520 + | /// :param value typing.Optional\[int\]:
|
610 521 | /// :rtype None:
|
611 522 | #[allow(missing_docs)] // documentation missing in model
|
612 523 | #[derive(
|
613 524 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
614 525 | )]
|
615 - | pub struct GreetingWithErrorsInput {
|
526 + | pub struct ContentTypeParametersInput {
|
616 527 | #[pyo3(get, set)]
|
617 - | /// :type typing.Optional\[str\]:
|
528 + | /// :type typing.Optional\[int\]:
|
618 529 | #[allow(missing_docs)] // documentation missing in model
|
619 - | pub greeting: ::std::option::Option<::std::string::String>,
|
530 + | pub value: ::std::option::Option<i32>,
|
620 531 | }
|
621 - | impl GreetingWithErrorsInput {
|
532 + | impl ContentTypeParametersInput {
|
622 533 | #[allow(missing_docs)] // documentation missing in model
|
623 - | pub fn greeting(&self) -> ::std::option::Option<&str> {
|
624 - | self.greeting.as_deref()
|
534 + | pub fn value(&self) -> ::std::option::Option<i32> {
|
535 + | self.value
|
625 536 | }
|
626 537 | }
|
627 538 | #[allow(clippy::new_without_default)]
|
628 539 | #[allow(clippy::too_many_arguments)]
|
629 540 | #[::pyo3::pymethods]
|
630 - | impl GreetingWithErrorsInput {
|
541 + | impl ContentTypeParametersInput {
|
631 542 | #[new]
|
632 - | pub fn new(greeting: ::std::option::Option<::std::string::String>) -> Self {
|
633 - | Self { greeting }
|
543 + | pub fn new(value: ::std::option::Option<i32>) -> Self {
|
544 + | Self { value }
|
634 545 | }
|
635 546 | fn __repr__(&self) -> String {
|
636 547 | format!("{self:?}")
|
637 548 | }
|
638 549 | fn __str__(&self) -> String {
|
639 550 | format!("{self:?}")
|
640 551 | }
|
641 552 | }
|
642 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GreetingWithErrorsInput> {
|
553 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ContentTypeParametersInput> {
|
643 554 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
644 - | ob.extract::<GreetingWithErrorsInput>().map(Box::new)
|
555 + | ob.extract::<ContentTypeParametersInput>().map(Box::new)
|
645 556 | }
|
646 557 | }
|
647 558 |
|
648 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GreetingWithErrorsInput> {
|
559 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ContentTypeParametersInput> {
|
649 560 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
650 561 | (*self).into_py(py)
|
651 562 | }
|
652 563 | }
|
653 - | impl crate::constrained::Constrained for crate::input::GreetingWithErrorsInput {
|
654 - | type Unconstrained = crate::input::greeting_with_errors_input_internal::Builder;
|
564 + | impl crate::constrained::Constrained for crate::input::ContentTypeParametersInput {
|
565 + | type Unconstrained = crate::input::content_type_parameters_input_internal::Builder;
|
655 566 | }
|
656 - | impl GreetingWithErrorsInput {
|
657 - | /// Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
658 - | pub fn builder() -> crate::input::greeting_with_errors_input::Builder {
|
659 - | crate::input::greeting_with_errors_input::Builder::default()
|
567 + | impl ContentTypeParametersInput {
|
568 + | /// Creates a new builder-style object to manufacture [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
569 + | pub fn builder() -> crate::input::content_type_parameters_input::Builder {
|
570 + | crate::input::content_type_parameters_input::Builder::default()
|
660 571 | }
|
661 572 | }
|
662 573 |
|
663 574 | #[::pyo3::pyclass]
|
664 - | /// :param float_value typing.Optional\[float\]:
|
665 - | /// :param double_value typing.Optional\[float\]:
|
575 + | /// :param top_level_default str:
|
576 + | /// :param other_top_level_default int:
|
577 + | /// :param defaults typing.Optional\[json_rpc10.model.Defaults\]:
|
578 + | /// :param client_optional_defaults typing.Optional\[json_rpc10.model.ClientOptionalDefaults\]:
|
666 579 | /// :rtype None:
|
667 580 | #[allow(missing_docs)] // documentation missing in model
|
668 581 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
669 - | pub struct SimpleScalarPropertiesInput {
|
582 + | pub struct OperationWithDefaultsInput {
|
670 583 | #[pyo3(get, set)]
|
671 - | /// :type typing.Optional\[float\]:
|
584 + | /// :type typing.Optional\[json_rpc10.model.Defaults\]:
|
672 585 | #[allow(missing_docs)] // documentation missing in model
|
673 - | pub float_value: ::std::option::Option<f32>,
|
586 + | pub defaults: ::std::option::Option<crate::model::Defaults>,
|
674 587 | #[pyo3(get, set)]
|
675 - | /// :type typing.Optional\[float\]:
|
588 + | /// :type typing.Optional\[json_rpc10.model.ClientOptionalDefaults\]:
|
676 589 | #[allow(missing_docs)] // documentation missing in model
|
677 - | pub double_value: ::std::option::Option<f64>,
|
590 + | pub client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
591 + | #[pyo3(get, set)]
|
592 + | /// :type str:
|
593 + | #[allow(missing_docs)] // documentation missing in model
|
594 + | pub top_level_default: ::std::string::String,
|
595 + | #[pyo3(get, set)]
|
596 + | /// :type int:
|
597 + | #[allow(missing_docs)] // documentation missing in model
|
598 + | pub other_top_level_default: i32,
|
678 599 | }
|
679 - | impl SimpleScalarPropertiesInput {
|
600 + | impl OperationWithDefaultsInput {
|
680 601 | #[allow(missing_docs)] // documentation missing in model
|
681 - | pub fn float_value(&self) -> ::std::option::Option<f32> {
|
682 - | self.float_value
|
602 + | pub fn defaults(&self) -> ::std::option::Option<&crate::model::Defaults> {
|
603 + | self.defaults.as_ref()
|
683 604 | }
|
684 605 | #[allow(missing_docs)] // documentation missing in model
|
685 - | pub fn double_value(&self) -> ::std::option::Option<f64> {
|
686 - | self.double_value
|
606 + | pub fn client_optional_defaults(
|
607 + | &self,
|
608 + | ) -> ::std::option::Option<&crate::model::ClientOptionalDefaults> {
|
609 + | self.client_optional_defaults.as_ref()
|
610 + | }
|
611 + | #[allow(missing_docs)] // documentation missing in model
|
612 + | pub fn top_level_default(&self) -> &str {
|
613 + | use std::ops::Deref;
|
614 + | self.top_level_default.deref()
|
615 + | }
|
616 + | #[allow(missing_docs)] // documentation missing in model
|
617 + | pub fn other_top_level_default(&self) -> i32 {
|
618 + | self.other_top_level_default
|
687 619 | }
|
688 620 | }
|
689 621 | #[allow(clippy::new_without_default)]
|
690 622 | #[allow(clippy::too_many_arguments)]
|
691 623 | #[::pyo3::pymethods]
|
692 - | impl SimpleScalarPropertiesInput {
|
624 + | impl OperationWithDefaultsInput {
|
693 625 | #[new]
|
694 626 | pub fn new(
|
695 - | float_value: ::std::option::Option<f32>,
|
696 - | double_value: ::std::option::Option<f64>,
|
627 + | top_level_default: ::std::string::String,
|
628 + | other_top_level_default: i32,
|
629 + | defaults: ::std::option::Option<crate::model::Defaults>,
|
630 + | client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
697 631 | ) -> Self {
|
698 632 | Self {
|
699 - | float_value,
|
700 - | double_value,
|
633 + | top_level_default,
|
634 + | other_top_level_default,
|
635 + | defaults,
|
636 + | client_optional_defaults,
|
701 637 | }
|
702 638 | }
|
703 639 | fn __repr__(&self) -> String {
|
704 640 | format!("{self:?}")
|
705 641 | }
|
706 642 | fn __str__(&self) -> String {
|
707 643 | format!("{self:?}")
|
708 644 | }
|
709 645 | }
|
710 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<SimpleScalarPropertiesInput> {
|
646 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithDefaultsInput> {
|
711 647 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
712 - | ob.extract::<SimpleScalarPropertiesInput>().map(Box::new)
|
648 + | ob.extract::<OperationWithDefaultsInput>().map(Box::new)
|
713 649 | }
|
714 650 | }
|
715 651 |
|
716 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<SimpleScalarPropertiesInput> {
|
652 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithDefaultsInput> {
|
717 653 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
718 654 | (*self).into_py(py)
|
719 655 | }
|
720 656 | }
|
721 - | impl crate::constrained::Constrained for crate::input::SimpleScalarPropertiesInput {
|
722 - | type Unconstrained = crate::input::simple_scalar_properties_input_internal::Builder;
|
657 + | impl crate::constrained::Constrained for crate::input::OperationWithDefaultsInput {
|
658 + | type Unconstrained = crate::input::operation_with_defaults_input_internal::Builder;
|
723 659 | }
|
724 - | impl SimpleScalarPropertiesInput {
|
725 - | /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
726 - | pub fn builder() -> crate::input::simple_scalar_properties_input::Builder {
|
727 - | crate::input::simple_scalar_properties_input::Builder::default()
|
660 + | impl OperationWithDefaultsInput {
|
661 + | /// Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
662 + | pub fn builder() -> crate::input::operation_with_defaults_input::Builder {
|
663 + | crate::input::operation_with_defaults_input::Builder::default()
|
728 664 | }
|
729 665 | }
|
730 666 |
|
731 667 | #[::pyo3::pyclass]
|
732 668 | /// :rtype None:
|
733 669 | #[allow(missing_docs)] // documentation missing in model
|
734 670 | #[derive(
|
735 671 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
736 672 | )]
|
737 - | pub struct EmptyInputAndEmptyOutputInput {}
|
673 + | pub struct OperationWithRequiredMembersInput {}
|
738 674 | #[allow(clippy::new_without_default)]
|
739 675 | #[allow(clippy::too_many_arguments)]
|
740 676 | #[::pyo3::pymethods]
|
741 - | impl EmptyInputAndEmptyOutputInput {
|
677 + | impl OperationWithRequiredMembersInput {
|
742 678 | #[new]
|
743 679 | pub fn new() -> Self {
|
744 680 | Self {}
|
745 681 | }
|
746 682 | fn __repr__(&self) -> String {
|
747 683 | format!("{self:?}")
|
748 684 | }
|
749 685 | fn __str__(&self) -> String {
|
750 686 | format!("{self:?}")
|
751 687 | }
|
752 688 | }
|
753 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EmptyInputAndEmptyOutputInput> {
|
689 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithRequiredMembersInput> {
|
754 690 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
755 - | ob.extract::<EmptyInputAndEmptyOutputInput>().map(Box::new)
|
691 + | ob.extract::<OperationWithRequiredMembersInput>()
|
692 + | .map(Box::new)
|
756 693 | }
|
757 694 | }
|
758 695 |
|
759 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EmptyInputAndEmptyOutputInput> {
|
696 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithRequiredMembersInput> {
|
760 697 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
761 698 | (*self).into_py(py)
|
762 699 | }
|
763 700 | }
|
764 - | impl crate::constrained::Constrained for crate::input::EmptyInputAndEmptyOutputInput {
|
765 - | type Unconstrained = crate::input::empty_input_and_empty_output_input_internal::Builder;
|
701 + | impl crate::constrained::Constrained for crate::input::OperationWithRequiredMembersInput {
|
702 + | type Unconstrained = crate::input::operation_with_required_members_input_internal::Builder;
|
766 703 | }
|
767 - | impl EmptyInputAndEmptyOutputInput {
|
768 - | /// Creates a new builder-style object to manufacture [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
769 - | pub fn builder() -> crate::input::empty_input_and_empty_output_input::Builder {
|
770 - | crate::input::empty_input_and_empty_output_input::Builder::default()
|
704 + | impl OperationWithRequiredMembersInput {
|
705 + | /// Creates a new builder-style object to manufacture [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
706 + | pub fn builder() -> crate::input::operation_with_required_members_input::Builder {
|
707 + | crate::input::operation_with_required_members_input::Builder::default()
|
708 + | }
|
709 + | }
|
710 + |
|
711 + | #[::pyo3::pyclass]
|
712 + | /// :param top_level json_rpc10.model.TopLevel:
|
713 + | /// :rtype None:
|
714 + | #[allow(missing_docs)] // documentation missing in model
|
715 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
716 + | pub struct OperationWithNestedStructureInput {
|
717 + | #[pyo3(get, set)]
|
718 + | /// :type json_rpc10.model.TopLevel:
|
719 + | #[allow(missing_docs)] // documentation missing in model
|
720 + | pub top_level: crate::model::TopLevel,
|
721 + | }
|
722 + | impl OperationWithNestedStructureInput {
|
723 + | #[allow(missing_docs)] // documentation missing in model
|
724 + | pub fn top_level(&self) -> &crate::model::TopLevel {
|
725 + | &self.top_level
|
726 + | }
|
727 + | }
|
728 + | #[allow(clippy::new_without_default)]
|
729 + | #[allow(clippy::too_many_arguments)]
|
730 + | #[::pyo3::pymethods]
|
731 + | impl OperationWithNestedStructureInput {
|
732 + | #[new]
|
733 + | pub fn new(top_level: crate::model::TopLevel) -> Self {
|
734 + | Self { top_level }
|
735 + | }
|
736 + | fn __repr__(&self) -> String {
|
737 + | format!("{self:?}")
|
738 + | }
|
739 + | fn __str__(&self) -> String {
|
740 + | format!("{self:?}")
|
741 + | }
|
742 + | }
|
743 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithNestedStructureInput> {
|
744 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
745 + | ob.extract::<OperationWithNestedStructureInput>()
|
746 + | .map(Box::new)
|
747 + | }
|
748 + | }
|
749 + |
|
750 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithNestedStructureInput> {
|
751 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
752 + | (*self).into_py(py)
|
753 + | }
|
754 + | }
|
755 + | impl crate::constrained::Constrained for crate::input::OperationWithNestedStructureInput {
|
756 + | type Unconstrained = crate::input::operation_with_nested_structure_input_internal::Builder;
|
757 + | }
|
758 + | impl OperationWithNestedStructureInput {
|
759 + | /// Creates a new builder-style object to manufacture [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
760 + | pub fn builder() -> crate::input::operation_with_nested_structure_input::Builder {
|
761 + | crate::input::operation_with_nested_structure_input::Builder::default()
|
771 762 | }
|
772 763 | }
|
773 764 |
|
774 765 | #[::pyo3::pyclass]
|
775 766 | /// :rtype None:
|
776 767 | #[allow(missing_docs)] // documentation missing in model
|
777 768 | #[derive(
|
778 769 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
779 770 | )]
|
780 - | pub struct NoInputAndOutputInput {}
|
771 + | pub struct OperationWithRequiredMembersWithDefaultsInput {}
|
781 772 | #[allow(clippy::new_without_default)]
|
782 773 | #[allow(clippy::too_many_arguments)]
|
783 774 | #[::pyo3::pymethods]
|
784 - | impl NoInputAndOutputInput {
|
775 + | impl OperationWithRequiredMembersWithDefaultsInput {
|
785 776 | #[new]
|
786 777 | pub fn new() -> Self {
|
787 778 | Self {}
|
788 779 | }
|
789 780 | fn __repr__(&self) -> String {
|
790 781 | format!("{self:?}")
|
791 782 | }
|
792 783 | fn __str__(&self) -> String {
|
793 784 | format!("{self:?}")
|
794 785 | }
|
795 786 | }
|
796 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NoInputAndOutputInput> {
|
787 + | impl<'source> ::pyo3::FromPyObject<'source>
|
788 + | for std::boxed::Box<OperationWithRequiredMembersWithDefaultsInput>
|
789 + | {
|
797 790 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
798 - | ob.extract::<NoInputAndOutputInput>().map(Box::new)
|
791 + | ob.extract::<OperationWithRequiredMembersWithDefaultsInput>()
|
792 + | .map(Box::new)
|
799 793 | }
|
800 794 | }
|
801 795 |
|
802 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NoInputAndOutputInput> {
|
796 + | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
797 + | for std::boxed::Box<OperationWithRequiredMembersWithDefaultsInput>
|
798 + | {
|
803 799 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
804 800 | (*self).into_py(py)
|
805 801 | }
|
806 802 | }
|
807 - | impl crate::constrained::Constrained for crate::input::NoInputAndOutputInput {
|
808 - | type Unconstrained = crate::input::no_input_and_output_input_internal::Builder;
|
803 + | impl crate::constrained::Constrained
|
804 + | for crate::input::OperationWithRequiredMembersWithDefaultsInput
|
805 + | {
|
806 + | type Unconstrained =
|
807 + | crate::input::operation_with_required_members_with_defaults_input_internal::Builder;
|
809 808 | }
|
810 - | impl NoInputAndOutputInput {
|
811 - | /// Creates a new builder-style object to manufacture [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
812 - | pub fn builder() -> crate::input::no_input_and_output_input::Builder {
|
813 - | crate::input::no_input_and_output_input::Builder::default()
|
809 + | impl OperationWithRequiredMembersWithDefaultsInput {
|
810 + | /// Creates a new builder-style object to manufacture [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
811 + | pub fn builder() -> crate::input::operation_with_required_members_with_defaults_input::Builder {
|
812 + | crate::input::operation_with_required_members_with_defaults_input::Builder::default()
|
814 813 | }
|
815 814 | }
|
816 815 |
|
817 816 | #[::pyo3::pyclass]
|
818 817 | /// :rtype None:
|
819 818 | #[allow(missing_docs)] // documentation missing in model
|
820 819 | #[derive(
|
821 820 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
822 821 | )]
|
823 - | pub struct NoInputAndNoOutputInput {}
|
822 + | pub struct QueryIncompatibleOperationInput {}
|
824 823 | #[allow(clippy::new_without_default)]
|
825 824 | #[allow(clippy::too_many_arguments)]
|
826 825 | #[::pyo3::pymethods]
|
827 - | impl NoInputAndNoOutputInput {
|
826 + | impl QueryIncompatibleOperationInput {
|
828 827 | #[new]
|
829 828 | pub fn new() -> Self {
|
830 829 | Self {}
|
831 830 | }
|
832 831 | fn __repr__(&self) -> String {
|
833 832 | format!("{self:?}")
|
834 833 | }
|
835 834 | fn __str__(&self) -> String {
|
836 835 | format!("{self:?}")
|
837 836 | }
|
838 837 | }
|
839 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NoInputAndNoOutputInput> {
|
838 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<QueryIncompatibleOperationInput> {
|
840 839 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
841 - | ob.extract::<NoInputAndNoOutputInput>().map(Box::new)
|
840 + | ob.extract::<QueryIncompatibleOperationInput>()
|
841 + | .map(Box::new)
|
842 842 | }
|
843 843 | }
|
844 844 |
|
845 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NoInputAndNoOutputInput> {
|
845 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<QueryIncompatibleOperationInput> {
|
846 846 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
847 847 | (*self).into_py(py)
|
848 848 | }
|
849 849 | }
|
850 - | impl crate::constrained::Constrained for crate::input::NoInputAndNoOutputInput {
|
851 - | type Unconstrained = crate::input::no_input_and_no_output_input_internal::Builder;
|
850 + | impl crate::constrained::Constrained for crate::input::QueryIncompatibleOperationInput {
|
851 + | type Unconstrained = crate::input::query_incompatible_operation_input_internal::Builder;
|
852 852 | }
|
853 - | impl NoInputAndNoOutputInput {
|
854 - | /// Creates a new builder-style object to manufacture [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
855 - | pub fn builder() -> crate::input::no_input_and_no_output_input::Builder {
|
856 - | crate::input::no_input_and_no_output_input::Builder::default()
|
853 + | impl QueryIncompatibleOperationInput {
|
854 + | /// Creates a new builder-style object to manufacture [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
855 + | pub fn builder() -> crate::input::query_incompatible_operation_input::Builder {
|
856 + | crate::input::query_incompatible_operation_input::Builder::default()
|
857 857 | }
|
858 858 | }
|
859 - | /// See [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
860 - | pub(crate) mod query_incompatible_operation_input_internal {
|
859 + | /// See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
860 + | pub(crate) mod no_input_and_no_output_input_internal {
|
861 861 |
|
862 - | impl ::std::convert::From<Builder> for crate::input::QueryIncompatibleOperationInput {
|
862 + | impl ::std::convert::From<Builder> for crate::input::NoInputAndNoOutputInput {
|
863 863 | fn from(builder: Builder) -> Self {
|
864 864 | builder.build()
|
865 865 | }
|
866 866 | }
|
867 - | /// A builder for [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
867 + | /// A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
868 868 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
869 869 | pub(crate) struct Builder {}
|
870 870 | impl Builder {
|
871 - | /// Consumes the builder and constructs a [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
872 - | pub fn build(self) -> crate::input::QueryIncompatibleOperationInput {
|
871 + | /// Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
872 + | pub fn build(self) -> crate::input::NoInputAndNoOutputInput {
|
873 873 | self.build_enforcing_all_constraints()
|
874 874 | }
|
875 - | fn build_enforcing_all_constraints(self) -> crate::input::QueryIncompatibleOperationInput {
|
876 - | crate::input::QueryIncompatibleOperationInput {}
|
875 + | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndNoOutputInput {
|
876 + | crate::input::NoInputAndNoOutputInput {}
|
877 877 | }
|
878 878 | }
|
879 879 | }
|
880 - | /// See [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
881 - | pub mod query_incompatible_operation_input {
|
880 + | /// See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
881 + | pub mod no_input_and_no_output_input {
|
882 882 |
|
883 - | impl ::std::convert::From<Builder> for crate::input::QueryIncompatibleOperationInput {
|
883 + | impl ::std::convert::From<Builder> for crate::input::NoInputAndNoOutputInput {
|
884 884 | fn from(builder: Builder) -> Self {
|
885 885 | builder.build()
|
886 886 | }
|
887 887 | }
|
888 - | /// A builder for [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
888 + | /// A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
889 889 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
890 890 | pub struct Builder {}
|
891 891 | impl Builder {
|
892 - | /// Consumes the builder and constructs a [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
893 - | pub fn build(self) -> crate::input::QueryIncompatibleOperationInput {
|
892 + | /// Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
893 + | pub fn build(self) -> crate::input::NoInputAndNoOutputInput {
|
894 894 | self.build_enforcing_required_and_enum_traits()
|
895 895 | }
|
896 - | fn build_enforcing_required_and_enum_traits(
|
897 - | self,
|
898 - | ) -> crate::input::QueryIncompatibleOperationInput {
|
899 - | crate::input::QueryIncompatibleOperationInput {}
|
896 + | fn build_enforcing_required_and_enum_traits(self) -> crate::input::NoInputAndNoOutputInput {
|
897 + | crate::input::NoInputAndNoOutputInput {}
|
900 898 | }
|
901 899 | }
|
902 900 | }
|
903 - | /// See [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
904 - | pub(crate) mod operation_with_required_members_with_defaults_input_internal {
|
901 + | /// See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
902 + | pub(crate) mod no_input_and_output_input_internal {
|
905 903 |
|
906 - | impl ::std::convert::From<Builder> for crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
904 + | impl ::std::convert::From<Builder> for crate::input::NoInputAndOutputInput {
|
907 905 | fn from(builder: Builder) -> Self {
|
908 906 | builder.build()
|
909 907 | }
|
910 908 | }
|
911 - | /// A builder for [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
909 + | /// A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
912 910 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
913 911 | pub(crate) struct Builder {}
|
914 912 | impl Builder {
|
915 - | /// Consumes the builder and constructs a [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
916 - | pub fn build(self) -> crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
913 + | /// Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
914 + | pub fn build(self) -> crate::input::NoInputAndOutputInput {
|
917 915 | self.build_enforcing_all_constraints()
|
918 916 | }
|
919 - | fn build_enforcing_all_constraints(
|
920 - | self,
|
921 - | ) -> crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
922 - | crate::input::OperationWithRequiredMembersWithDefaultsInput {}
|
917 + | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndOutputInput {
|
918 + | crate::input::NoInputAndOutputInput {}
|
923 919 | }
|
924 920 | }
|
925 921 | }
|
926 - | /// See [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
927 - | pub mod operation_with_required_members_with_defaults_input {
|
922 + | /// See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
923 + | pub mod no_input_and_output_input {
|
928 924 |
|
929 - | impl ::std::convert::From<Builder> for crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
925 + | impl ::std::convert::From<Builder> for crate::input::NoInputAndOutputInput {
|
930 926 | fn from(builder: Builder) -> Self {
|
931 927 | builder.build()
|
932 928 | }
|
933 929 | }
|
934 - | /// A builder for [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
930 + | /// A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
935 931 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
936 932 | pub struct Builder {}
|
937 933 | impl Builder {
|
938 - | /// Consumes the builder and constructs a [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
939 - | pub fn build(self) -> crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
934 + | /// Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
935 + | pub fn build(self) -> crate::input::NoInputAndOutputInput {
|
940 936 | self.build_enforcing_required_and_enum_traits()
|
941 937 | }
|
942 - | fn build_enforcing_required_and_enum_traits(
|
943 - | self,
|
944 - | ) -> crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
945 - | crate::input::OperationWithRequiredMembersWithDefaultsInput {}
|
938 + | fn build_enforcing_required_and_enum_traits(self) -> crate::input::NoInputAndOutputInput {
|
939 + | crate::input::NoInputAndOutputInput {}
|
946 940 | }
|
947 941 | }
|
948 942 | }
|
949 - | /// See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
950 - | pub(crate) mod operation_with_nested_structure_input_internal {
|
943 + | /// See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
944 + | pub(crate) mod empty_input_and_empty_output_input_internal {
|
951 945 |
|
952 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
953 - | /// Holds one variant for each of the ways the builder can fail.
|
954 - | #[non_exhaustive]
|
955 - | #[allow(clippy::enum_variant_names)]
|
956 - | pub(crate) enum ConstraintViolation {
|
957 - | /// `top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
958 - | MissingTopLevel,
|
959 - | /// Constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`.
|
960 - | #[doc(hidden)]
|
961 - | TopLevel(crate::model::top_level_internal::ConstraintViolation),
|
962 - | }
|
963 - | impl ::std::fmt::Display for ConstraintViolation {
|
964 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
965 - | match self {
|
966 - | ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
967 - | ConstraintViolation::TopLevel(_) => write!(f, "constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`"),
|
968 - | }
|
946 + | impl ::std::convert::From<Builder> for crate::input::EmptyInputAndEmptyOutputInput {
|
947 + | fn from(builder: Builder) -> Self {
|
948 + | builder.build()
|
969 949 | }
|
970 950 | }
|
971 - | impl ::std::error::Error for ConstraintViolation {}
|
972 - | impl ConstraintViolation {
|
973 - | pub(crate) fn as_validation_exception_field(
|
974 - | self,
|
975 - | path: ::std::string::String,
|
976 - | ) -> crate::model::ValidationExceptionField {
|
977 - | match self {
|
978 - | ConstraintViolation::MissingTopLevel => crate::model::ValidationExceptionField {
|
979 - | message: format!("Value at '{}/topLevel' failed to satisfy constraint: Member must not be null", path),
|
980 - | path: path + "/topLevel",
|
981 - | },
|
982 - | ConstraintViolation::TopLevel(inner) => inner.as_validation_exception_field(path + "/topLevel"),
|
951 + | /// A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
952 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
953 + | pub(crate) struct Builder {}
|
954 + | impl Builder {
|
955 + | /// Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
956 + | pub fn build(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
957 + | self.build_enforcing_all_constraints()
|
983 958 | }
|
959 + | fn build_enforcing_all_constraints(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
960 + | crate::input::EmptyInputAndEmptyOutputInput {}
|
984 961 | }
|
985 962 | }
|
986 - | impl ::std::convert::From<ConstraintViolation>
|
987 - | for ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection
|
988 - | {
|
989 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
990 - | let first_validation_exception_field =
|
991 - | constraint_violation.as_validation_exception_field("".to_owned());
|
992 - | let validation_exception = crate::error::ValidationException {
|
993 - | message: format!(
|
994 - | "1 validation error detected. {}",
|
995 - | &first_validation_exception_field.message
|
996 - | ),
|
997 - | field_list: Some(vec![first_validation_exception_field]),
|
998 - | };
|
999 - | Self::ConstraintViolation(
|
1000 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1001 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1002 - | )
|
963 + | }
|
964 + | /// See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
965 + | pub mod empty_input_and_empty_output_input {
|
966 + |
|
967 + | impl ::std::convert::From<Builder> for crate::input::EmptyInputAndEmptyOutputInput {
|
968 + | fn from(builder: Builder) -> Self {
|
969 + | builder.build()
|
1003 970 | }
|
1004 971 | }
|
1005 - | impl ::std::convert::From<Builder>
|
1006 - | for crate::constrained::MaybeConstrained<crate::input::OperationWithNestedStructureInput>
|
1007 - | {
|
1008 - | fn from(builder: Builder) -> Self {
|
1009 - | Self::Unconstrained(builder)
|
972 + | /// A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
973 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
974 + | pub struct Builder {}
|
975 + | impl Builder {
|
976 + | /// Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
977 + | pub fn build(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
978 + | self.build_enforcing_required_and_enum_traits()
|
979 + | }
|
980 + | fn build_enforcing_required_and_enum_traits(
|
981 + | self,
|
982 + | ) -> crate::input::EmptyInputAndEmptyOutputInput {
|
983 + | crate::input::EmptyInputAndEmptyOutputInput {}
|
1010 984 | }
|
1011 985 | }
|
1012 - | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithNestedStructureInput {
|
1013 - | type Error = ConstraintViolation;
|
986 + | }
|
987 + | /// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
988 + | pub(crate) mod simple_scalar_properties_input_internal {
|
1014 989 |
|
1015 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
990 + | impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
|
991 + | fn from(builder: Builder) -> Self {
|
1016 992 | builder.build()
|
1017 993 | }
|
1018 994 | }
|
1019 - | /// A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
995 + | /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1020 996 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1021 997 | pub(crate) struct Builder {
|
1022 - | pub(crate) top_level:
|
1023 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::TopLevel>>,
|
998 + | pub(crate) float_value: ::std::option::Option<f32>,
|
999 + | pub(crate) double_value: ::std::option::Option<f64>,
|
1024 1000 | }
|
1025 1001 | impl Builder {
|
1026 1002 | #[allow(missing_docs)] // documentation missing in model
|
1027 - | pub(crate) fn set_top_level(
|
1003 + | pub(crate) fn set_float_value(
|
1028 1004 | mut self,
|
1029 - | input: impl ::std::convert::Into<
|
1030 - | crate::constrained::MaybeConstrained<crate::model::TopLevel>,
|
1031 - | >,
|
1005 + | input: Option<impl ::std::convert::Into<f32>>,
|
1032 1006 | ) -> Self {
|
1033 - | self.top_level = Some(input.into());
|
1007 + | self.float_value = input.map(|v| v.into());
|
1034 1008 | self
|
1035 1009 | }
|
1036 - | /// Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1037 - | ///
|
1038 - | /// The builder fails to construct a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) if a [`ConstraintViolation`] occurs.
|
1039 - | ///
|
1040 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
1041 - | pub fn build(
|
1042 - | self,
|
1043 - | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
1044 - | self.build_enforcing_all_constraints()
|
1045 - | }
|
1046 - | fn build_enforcing_all_constraints(
|
1047 - | self,
|
1048 - | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
1049 - | Ok(crate::input::OperationWithNestedStructureInput {
|
1050 - | top_level: self
|
1051 - | .top_level
|
1052 - | .map(|v| match v {
|
1053 - | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1054 - | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1055 - | })
|
1056 - | .map(|res| res.map_err(ConstraintViolation::TopLevel))
|
1057 - | .transpose()?
|
1058 - | .ok_or(ConstraintViolation::MissingTopLevel)?,
|
1059 - | })
|
1060 - | }
|
1010 + | #[allow(missing_docs)] // documentation missing in model
|
1011 + | pub(crate) fn set_double_value(
|
1012 + | mut self,
|
1013 + | input: Option<impl ::std::convert::Into<f64>>,
|
1014 + | ) -> Self {
|
1015 + | self.double_value = input.map(|v| v.into());
|
1016 + | self
|
1061 1017 | }
|
1062 - | }
|
1063 - | /// See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1064 - | pub mod operation_with_nested_structure_input {
|
1065 - |
|
1066 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1067 - | /// Holds one variant for each of the ways the builder can fail.
|
1068 - | #[allow(clippy::enum_variant_names)]
|
1069 - | pub enum ConstraintViolation {
|
1070 - | /// `top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
1071 - | MissingTopLevel,
|
1018 + | /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1019 + | pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
|
1020 + | self.build_enforcing_all_constraints()
|
1072 1021 | }
|
1073 - | impl ::std::fmt::Display for ConstraintViolation {
|
1074 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1075 - | match self {
|
1076 - | ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
1022 + | fn build_enforcing_all_constraints(self) -> crate::input::SimpleScalarPropertiesInput {
|
1023 + | crate::input::SimpleScalarPropertiesInput {
|
1024 + | float_value: self.float_value,
|
1025 + | double_value: self.double_value,
|
1077 1026 | }
|
1078 1027 | }
|
1079 1028 | }
|
1080 - | impl ::std::error::Error for ConstraintViolation {}
|
1081 - | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithNestedStructureInput {
|
1082 - | type Error = ConstraintViolation;
|
1029 + | }
|
1030 + | /// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1031 + | pub mod simple_scalar_properties_input {
|
1083 1032 |
|
1084 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1033 + | impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
|
1034 + | fn from(builder: Builder) -> Self {
|
1085 1035 | builder.build()
|
1086 1036 | }
|
1087 1037 | }
|
1088 - | /// A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1038 + | /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1089 1039 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1090 1040 | pub struct Builder {
|
1091 - | pub(crate) top_level: ::std::option::Option<crate::model::TopLevel>,
|
1041 + | pub(crate) float_value: ::std::option::Option<f32>,
|
1042 + | pub(crate) double_value: ::std::option::Option<f64>,
|
1092 1043 | }
|
1093 1044 | impl Builder {
|
1094 1045 | #[allow(missing_docs)] // documentation missing in model
|
1095 - | pub fn top_level(mut self, input: crate::model::TopLevel) -> Self {
|
1096 - | self.top_level = Some(input);
|
1046 + | pub fn float_value(mut self, input: ::std::option::Option<f32>) -> Self {
|
1047 + | self.float_value = input;
|
1097 1048 | self
|
1098 1049 | }
|
1099 - | /// Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1100 - | ///
|
1101 - | /// The builder fails to construct a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) if you do not provide a value for all non-`Option`al members.
|
1102 - | ///
|
1103 - | pub fn build(
|
1104 - | self,
|
1105 - | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
1050 + | #[allow(missing_docs)] // documentation missing in model
|
1051 + | pub fn double_value(mut self, input: ::std::option::Option<f64>) -> Self {
|
1052 + | self.double_value = input;
|
1053 + | self
|
1054 + | }
|
1055 + | /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1056 + | pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
|
1106 1057 | self.build_enforcing_required_and_enum_traits()
|
1107 1058 | }
|
1108 1059 | fn build_enforcing_required_and_enum_traits(
|
1109 1060 | self,
|
1110 - | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
1111 - | Ok(crate::input::OperationWithNestedStructureInput {
|
1112 - | top_level: self.top_level.ok_or(ConstraintViolation::MissingTopLevel)?,
|
1113 - | })
|
1061 + | ) -> crate::input::SimpleScalarPropertiesInput {
|
1062 + | crate::input::SimpleScalarPropertiesInput {
|
1063 + | float_value: self.float_value,
|
1064 + | double_value: self.double_value,
|
1065 + | }
|
1114 1066 | }
|
1115 1067 | }
|
1116 1068 | }
|
1117 - | /// See [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1118 - | pub(crate) mod operation_with_required_members_input_internal {
|
1069 + | /// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1070 + | pub(crate) mod greeting_with_errors_input_internal {
|
1119 1071 |
|
1120 - | impl ::std::convert::From<Builder> for crate::input::OperationWithRequiredMembersInput {
|
1072 + | impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
|
1121 1073 | fn from(builder: Builder) -> Self {
|
1122 1074 | builder.build()
|
1123 1075 | }
|
1124 1076 | }
|
1125 - | /// A builder for [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1077 + | /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1126 1078 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1127 - | pub(crate) struct Builder {}
|
1079 + | pub(crate) struct Builder {
|
1080 + | pub(crate) greeting: ::std::option::Option<::std::string::String>,
|
1081 + | }
|
1128 1082 | impl Builder {
|
1129 - | /// Consumes the builder and constructs a [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1130 - | pub fn build(self) -> crate::input::OperationWithRequiredMembersInput {
|
1083 + | #[allow(missing_docs)] // documentation missing in model
|
1084 + | pub(crate) fn set_greeting(
|
1085 + | mut self,
|
1086 + | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1087 + | ) -> Self {
|
1088 + | self.greeting = input.map(|v| v.into());
|
1089 + | self
|
1090 + | }
|
1091 + | /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1092 + | pub fn build(self) -> crate::input::GreetingWithErrorsInput {
|
1131 1093 | self.build_enforcing_all_constraints()
|
1132 1094 | }
|
1133 - | fn build_enforcing_all_constraints(
|
1134 - | self,
|
1135 - | ) -> crate::input::OperationWithRequiredMembersInput {
|
1136 - | crate::input::OperationWithRequiredMembersInput {}
|
1095 + | fn build_enforcing_all_constraints(self) -> crate::input::GreetingWithErrorsInput {
|
1096 + | crate::input::GreetingWithErrorsInput {
|
1097 + | greeting: self.greeting,
|
1098 + | }
|
1137 1099 | }
|
1138 1100 | }
|
1139 1101 | }
|
1140 - | /// See [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1141 - | pub mod operation_with_required_members_input {
|
1102 + | /// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1103 + | pub mod greeting_with_errors_input {
|
1142 1104 |
|
1143 - | impl ::std::convert::From<Builder> for crate::input::OperationWithRequiredMembersInput {
|
1105 + | impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
|
1144 1106 | fn from(builder: Builder) -> Self {
|
1145 1107 | builder.build()
|
1146 1108 | }
|
1147 1109 | }
|
1148 - | /// A builder for [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1110 + | /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1149 1111 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1150 - | pub struct Builder {}
|
1112 + | pub struct Builder {
|
1113 + | pub(crate) greeting: ::std::option::Option<::std::string::String>,
|
1114 + | }
|
1151 1115 | impl Builder {
|
1152 - | /// Consumes the builder and constructs a [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1153 - | pub fn build(self) -> crate::input::OperationWithRequiredMembersInput {
|
1116 + | #[allow(missing_docs)] // documentation missing in model
|
1117 + | pub fn greeting(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1118 + | self.greeting = input;
|
1119 + | self
|
1120 + | }
|
1121 + | /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1122 + | pub fn build(self) -> crate::input::GreetingWithErrorsInput {
|
1154 1123 | self.build_enforcing_required_and_enum_traits()
|
1155 1124 | }
|
1156 - | fn build_enforcing_required_and_enum_traits(
|
1157 - | self,
|
1158 - | ) -> crate::input::OperationWithRequiredMembersInput {
|
1159 - | crate::input::OperationWithRequiredMembersInput {}
|
1125 + | fn build_enforcing_required_and_enum_traits(self) -> crate::input::GreetingWithErrorsInput {
|
1126 + | crate::input::GreetingWithErrorsInput {
|
1127 + | greeting: self.greeting,
|
1128 + | }
|
1160 1129 | }
|
1161 1130 | }
|
1162 1131 | }
|
1163 - | /// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1164 - | pub(crate) mod operation_with_defaults_input_internal {
|
1132 + | /// See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1133 + | pub(crate) mod json_unions_input_internal {
|
1165 1134 |
|
1166 1135 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1167 1136 | /// Holds one variant for each of the ways the builder can fail.
|
1168 1137 | #[non_exhaustive]
|
1169 1138 | #[allow(clippy::enum_variant_names)]
|
1170 1139 | pub(crate) enum ConstraintViolation {
|
1171 - | /// Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
|
1140 + | /// Constraint violation occurred building member `contents` when building `JsonUnionsInput`.
|
1172 1141 | #[doc(hidden)]
|
1173 - | Defaults(crate::model::defaults_internal::ConstraintViolation),
|
1142 + | Contents(crate::model::my_union_internal::ConstraintViolation),
|
1174 1143 | }
|
1175 1144 | impl ::std::fmt::Display for ConstraintViolation {
|
1176 1145 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1177 1146 | match self {
|
1178 - | ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
|
1147 + | ConstraintViolation::Contents(_) => write!(f, "constraint violation occurred building member `contents` when building `JsonUnionsInput`"),
|
1179 1148 | }
|
1180 1149 | }
|
1181 1150 | }
|
1182 1151 | impl ::std::error::Error for ConstraintViolation {}
|
1183 1152 | impl ConstraintViolation {
|
1184 1153 | pub(crate) fn as_validation_exception_field(
|
1185 1154 | self,
|
1186 1155 | path: ::std::string::String,
|
1187 1156 | ) -> crate::model::ValidationExceptionField {
|
1188 1157 | match self {
|
1189 - | ConstraintViolation::Defaults(inner) => {
|
1190 - | inner.as_validation_exception_field(path + "/defaults")
|
1158 + | ConstraintViolation::Contents(inner) => {
|
1159 + | inner.as_validation_exception_field(path + "/contents")
|
1191 1160 | }
|
1192 1161 | }
|
1193 1162 | }
|
1194 1163 | }
|
1195 1164 | impl ::std::convert::From<ConstraintViolation>
|
1196 1165 | for ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection
|
1197 1166 | {
|
1198 1167 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1199 1168 | let first_validation_exception_field =
|
1200 1169 | constraint_violation.as_validation_exception_field("".to_owned());
|
1201 1170 | let validation_exception = crate::error::ValidationException {
|
1202 1171 | message: format!(
|
1203 1172 | "1 validation error detected. {}",
|
1204 1173 | &first_validation_exception_field.message
|
1205 1174 | ),
|
1206 1175 | field_list: Some(vec![first_validation_exception_field]),
|
1207 1176 | };
|
1208 1177 | Self::ConstraintViolation(
|
1209 1178 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1210 1179 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1211 1180 | )
|
1212 1181 | }
|
1213 1182 | }
|
1214 1183 | impl ::std::convert::From<Builder>
|
1215 - | for crate::constrained::MaybeConstrained<crate::input::OperationWithDefaultsInput>
|
1184 + | for crate::constrained::MaybeConstrained<crate::input::JsonUnionsInput>
|
1216 1185 | {
|
1217 1186 | fn from(builder: Builder) -> Self {
|
1218 1187 | Self::Unconstrained(builder)
|
1219 1188 | }
|
1220 1189 | }
|
1221 - | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithDefaultsInput {
|
1190 + | impl ::std::convert::TryFrom<Builder> for crate::input::JsonUnionsInput {
|
1222 1191 | type Error = ConstraintViolation;
|
1223 1192 |
|
1224 1193 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1225 1194 | builder.build()
|
1226 1195 | }
|
1227 1196 | }
|
1228 - | /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1197 + | /// A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1229 1198 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1230 1199 | pub(crate) struct Builder {
|
1231 - | pub(crate) defaults:
|
1232 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
1233 - | pub(crate) client_optional_defaults:
|
1234 - | ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
1235 - | pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
|
1236 - | pub(crate) other_top_level_default: ::std::option::Option<i32>,
|
1200 + | pub(crate) contents:
|
1201 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
1237 1202 | }
|
1238 1203 | impl Builder {
|
1239 - | #[allow(missing_docs)] // documentation missing in model
|
1240 - | pub(crate) fn set_defaults(
|
1204 + | /// A union with a representative set of types for members.
|
1205 + | pub(crate) fn set_contents(
|
1241 1206 | mut self,
|
1242 1207 | input: Option<
|
1243 - | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
1208 + | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
1244 1209 | >,
|
1245 1210 | ) -> Self {
|
1246 - | self.defaults = input.map(|v| v.into());
|
1211 + | self.contents = input.map(|v| v.into());
|
1247 1212 | self
|
1248 1213 | }
|
1249 - | #[allow(missing_docs)] // documentation missing in model
|
1250 - | pub(crate) fn set_client_optional_defaults(
|
1251 - | mut self,
|
1252 - | input: Option<impl ::std::convert::Into<crate::model::ClientOptionalDefaults>>,
|
1253 - | ) -> Self {
|
1254 - | self.client_optional_defaults = input.map(|v| v.into());
|
1255 - | self
|
1256 - | }
|
1257 - | #[allow(missing_docs)] // documentation missing in model
|
1258 - | pub(crate) fn set_top_level_default(
|
1259 - | mut self,
|
1260 - | input: impl ::std::convert::Into<::std::string::String>,
|
1261 - | ) -> Self {
|
1262 - | self.top_level_default = Some(input.into());
|
1263 - | self
|
1264 - | }
|
1265 - | #[allow(missing_docs)] // documentation missing in model
|
1266 - | pub(crate) fn set_other_top_level_default(
|
1267 - | mut self,
|
1268 - | input: impl ::std::convert::Into<i32>,
|
1269 - | ) -> Self {
|
1270 - | self.other_top_level_default = Some(input.into());
|
1271 - | self
|
1272 - | }
|
1273 - | /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1214 + | /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1274 1215 | ///
|
1275 - | /// The builder fails to construct a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput) if a [`ConstraintViolation`] occurs.
|
1216 + | /// The builder fails to construct a [`JsonUnionsInput`](crate::input::JsonUnionsInput) if a [`ConstraintViolation`] occurs.
|
1276 1217 | ///
|
1277 - | pub fn build(
|
1278 - | self,
|
1279 - | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
1218 + | pub fn build(self) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
1280 1219 | self.build_enforcing_all_constraints()
|
1281 1220 | }
|
1282 1221 | fn build_enforcing_all_constraints(
|
1283 1222 | self,
|
1284 - | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
1285 - | Ok(crate::input::OperationWithDefaultsInput {
|
1286 - | defaults: self
|
1287 - | .defaults
|
1223 + | ) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
1224 + | Ok(crate::input::JsonUnionsInput {
|
1225 + | contents: self
|
1226 + | .contents
|
1288 1227 | .map(|v| match v {
|
1289 1228 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1290 1229 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1291 1230 | })
|
1292 - | .map(|res| res.map_err(ConstraintViolation::Defaults))
|
1231 + | .map(|res| res.map_err(ConstraintViolation::Contents))
|
1293 1232 | .transpose()?,
|
1294 - | client_optional_defaults: self.client_optional_defaults,
|
1295 - | top_level_default: self.top_level_default.unwrap_or_else(|| String::from("hi")),
|
1296 - | other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
|
1297 1233 | })
|
1298 1234 | }
|
1299 1235 | }
|
1300 1236 | }
|
1301 - | /// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1302 - | pub mod operation_with_defaults_input {
|
1303 - |
|
1304 - | impl ::std::convert::From<Builder> for crate::input::OperationWithDefaultsInput {
|
1305 - | fn from(builder: Builder) -> Self {
|
1306 - | builder.build()
|
1307 - | }
|
1308 - | }
|
1309 - | /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1310 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1311 - | pub struct Builder {
|
1312 - | pub(crate) defaults: ::std::option::Option<crate::model::Defaults>,
|
1313 - | pub(crate) client_optional_defaults:
|
1314 - | ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
1315 - | pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
|
1316 - | pub(crate) other_top_level_default: ::std::option::Option<i32>,
|
1317 - | }
|
1318 - | impl Builder {
|
1319 - | #[allow(missing_docs)] // documentation missing in model
|
1320 - | pub fn defaults(mut self, input: ::std::option::Option<crate::model::Defaults>) -> Self {
|
1321 - | self.defaults = input;
|
1322 - | self
|
1323 - | }
|
1324 - | #[allow(missing_docs)] // documentation missing in model
|
1325 - | pub fn client_optional_defaults(
|
1326 - | mut self,
|
1327 - | input: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
1328 - | ) -> Self {
|
1329 - | self.client_optional_defaults = input;
|
1330 - | self
|
1331 - | }
|
1332 - | #[allow(missing_docs)] // documentation missing in model
|
1333 - | pub fn top_level_default(mut self, input: ::std::string::String) -> Self {
|
1334 - | self.top_level_default = Some(input);
|
1335 - | self
|
1336 - | }
|
1337 - | #[allow(missing_docs)] // documentation missing in model
|
1338 - | pub fn other_top_level_default(mut self, input: i32) -> Self {
|
1339 - | self.other_top_level_default = Some(input);
|
1340 - | self
|
1341 - | }
|
1342 - | /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1343 - | pub fn build(self) -> crate::input::OperationWithDefaultsInput {
|
1344 - | self.build_enforcing_required_and_enum_traits()
|
1345 - | }
|
1346 - | fn build_enforcing_required_and_enum_traits(
|
1347 - | self,
|
1348 - | ) -> crate::input::OperationWithDefaultsInput {
|
1349 - | crate::input::OperationWithDefaultsInput {
|
1350 - | defaults: self.defaults,
|
1351 - | client_optional_defaults: self.client_optional_defaults,
|
1352 - | top_level_default: self.top_level_default.unwrap_or_else(|| String::from("hi")),
|
1353 - | other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
|
1354 - | }
|
1355 - | }
|
1356 - | }
|
1357 - | }
|
1358 - | /// See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1359 - | pub(crate) mod content_type_parameters_input_internal {
|
1360 - |
|
1361 - | impl ::std::convert::From<Builder> for crate::input::ContentTypeParametersInput {
|
1362 - | fn from(builder: Builder) -> Self {
|
1363 - | builder.build()
|
1364 - | }
|
1365 - | }
|
1366 - | /// A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1367 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1368 - | pub(crate) struct Builder {
|
1369 - | pub(crate) value: ::std::option::Option<i32>,
|
1370 - | }
|
1371 - | impl Builder {
|
1372 - | #[allow(missing_docs)] // documentation missing in model
|
1373 - | pub(crate) fn set_value(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
1374 - | self.value = input.map(|v| v.into());
|
1375 - | self
|
1376 - | }
|
1377 - | /// Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1378 - | pub fn build(self) -> crate::input::ContentTypeParametersInput {
|
1379 - | self.build_enforcing_all_constraints()
|
1380 - | }
|
1381 - | fn build_enforcing_all_constraints(self) -> crate::input::ContentTypeParametersInput {
|
1382 - | crate::input::ContentTypeParametersInput { value: self.value }
|
1383 - | }
|
1384 - | }
|
1385 - | }
|
1386 - | /// See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1387 - | pub mod content_type_parameters_input {
|
1388 - |
|
1389 - | impl ::std::convert::From<Builder> for crate::input::ContentTypeParametersInput {
|
1390 - | fn from(builder: Builder) -> Self {
|
1391 - | builder.build()
|
1392 - | }
|
1393 - | }
|
1394 - | /// A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1395 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1396 - | pub struct Builder {
|
1397 - | pub(crate) value: ::std::option::Option<i32>,
|
1398 - | }
|
1399 - | impl Builder {
|
1400 - | #[allow(missing_docs)] // documentation missing in model
|
1401 - | pub fn value(mut self, input: ::std::option::Option<i32>) -> Self {
|
1402 - | self.value = input;
|
1403 - | self
|
1404 - | }
|
1405 - | /// Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1406 - | pub fn build(self) -> crate::input::ContentTypeParametersInput {
|
1407 - | self.build_enforcing_required_and_enum_traits()
|
1408 - | }
|
1409 - | fn build_enforcing_required_and_enum_traits(
|
1410 - | self,
|
1411 - | ) -> crate::input::ContentTypeParametersInput {
|
1412 - | crate::input::ContentTypeParametersInput { value: self.value }
|
1413 - | }
|
1414 - | }
|
1415 - | }
|
1416 - | /// See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1417 - | pub(crate) mod put_with_content_encoding_input_internal {
|
1418 - |
|
1419 - | impl ::std::convert::From<Builder> for crate::input::PutWithContentEncodingInput {
|
1420 - | fn from(builder: Builder) -> Self {
|
1421 - | builder.build()
|
1422 - | }
|
1423 - | }
|
1424 - | /// A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1425 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1426 - | pub(crate) struct Builder {
|
1427 - | pub(crate) encoding: ::std::option::Option<::std::string::String>,
|
1428 - | pub(crate) data: ::std::option::Option<::std::string::String>,
|
1429 - | }
|
1430 - | impl Builder {
|
1431 - | #[allow(missing_docs)] // documentation missing in model
|
1432 - | pub(crate) fn set_encoding(
|
1433 - | mut self,
|
1434 - | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1435 - | ) -> Self {
|
1436 - | self.encoding = input.map(|v| v.into());
|
1437 - | self
|
1438 - | }
|
1439 - | #[allow(missing_docs)] // documentation missing in model
|
1440 - | pub(crate) fn set_data(
|
1441 - | mut self,
|
1442 - | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1443 - | ) -> Self {
|
1444 - | self.data = input.map(|v| v.into());
|
1445 - | self
|
1446 - | }
|
1447 - | /// Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1448 - | pub fn build(self) -> crate::input::PutWithContentEncodingInput {
|
1449 - | self.build_enforcing_all_constraints()
|
1450 - | }
|
1451 - | fn build_enforcing_all_constraints(self) -> crate::input::PutWithContentEncodingInput {
|
1452 - | crate::input::PutWithContentEncodingInput {
|
1453 - | encoding: self.encoding,
|
1454 - | data: self.data,
|
1455 - | }
|
1456 - | }
|
1457 - | }
|
1458 - | }
|
1459 - | /// See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1460 - | pub mod put_with_content_encoding_input {
|
1237 + | /// See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1238 + | pub mod json_unions_input {
|
1461 1239 |
|
1462 - | impl ::std::convert::From<Builder> for crate::input::PutWithContentEncodingInput {
|
1240 + | impl ::std::convert::From<Builder> for crate::input::JsonUnionsInput {
|
1463 1241 | fn from(builder: Builder) -> Self {
|
1464 1242 | builder.build()
|
1465 1243 | }
|
1466 1244 | }
|
1467 - | /// A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1245 + | /// A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1468 1246 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1469 1247 | pub struct Builder {
|
1470 - | pub(crate) encoding: ::std::option::Option<::std::string::String>,
|
1471 - | pub(crate) data: ::std::option::Option<::std::string::String>,
|
1248 + | pub(crate) contents: ::std::option::Option<crate::model::MyUnion>,
|
1472 1249 | }
|
1473 1250 | impl Builder {
|
1474 - | #[allow(missing_docs)] // documentation missing in model
|
1475 - | pub fn encoding(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1476 - | self.encoding = input;
|
1477 - | self
|
1478 - | }
|
1479 - | #[allow(missing_docs)] // documentation missing in model
|
1480 - | pub fn data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1481 - | self.data = input;
|
1251 + | /// A union with a representative set of types for members.
|
1252 + | pub fn contents(mut self, input: ::std::option::Option<crate::model::MyUnion>) -> Self {
|
1253 + | self.contents = input;
|
1482 1254 | self
|
1483 1255 | }
|
1484 - | /// Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1485 - | pub fn build(self) -> crate::input::PutWithContentEncodingInput {
|
1256 + | /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1257 + | pub fn build(self) -> crate::input::JsonUnionsInput {
|
1486 1258 | self.build_enforcing_required_and_enum_traits()
|
1487 1259 | }
|
1488 - | fn build_enforcing_required_and_enum_traits(
|
1489 - | self,
|
1490 - | ) -> crate::input::PutWithContentEncodingInput {
|
1491 - | crate::input::PutWithContentEncodingInput {
|
1492 - | encoding: self.encoding,
|
1493 - | data: self.data,
|
1260 + | fn build_enforcing_required_and_enum_traits(self) -> crate::input::JsonUnionsInput {
|
1261 + | crate::input::JsonUnionsInput {
|
1262 + | contents: self.contents,
|
1494 1263 | }
|
1495 1264 | }
|
1496 1265 | }
|
1497 1266 | }
|
1498 - | /// See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1499 - | pub(crate) mod host_with_path_operation_input_internal {
|
1267 + | /// See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1268 + | pub(crate) mod endpoint_operation_input_internal {
|
1500 1269 |
|
1501 - | impl ::std::convert::From<Builder> for crate::input::HostWithPathOperationInput {
|
1270 + | impl ::std::convert::From<Builder> for crate::input::EndpointOperationInput {
|
1502 1271 | fn from(builder: Builder) -> Self {
|
1503 1272 | builder.build()
|
1504 1273 | }
|
1505 1274 | }
|
1506 - | /// A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1275 + | /// A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1507 1276 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1508 1277 | pub(crate) struct Builder {}
|
1509 1278 | impl Builder {
|
1510 - | /// Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1511 - | pub fn build(self) -> crate::input::HostWithPathOperationInput {
|
1279 + | /// Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1280 + | pub fn build(self) -> crate::input::EndpointOperationInput {
|
1512 1281 | self.build_enforcing_all_constraints()
|
1513 1282 | }
|
1514 - | fn build_enforcing_all_constraints(self) -> crate::input::HostWithPathOperationInput {
|
1515 - | crate::input::HostWithPathOperationInput {}
|
1283 + | fn build_enforcing_all_constraints(self) -> crate::input::EndpointOperationInput {
|
1284 + | crate::input::EndpointOperationInput {}
|
1516 1285 | }
|
1517 1286 | }
|
1518 1287 | }
|
1519 - | /// See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1520 - | pub mod host_with_path_operation_input {
|
1288 + | /// See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1289 + | pub mod endpoint_operation_input {
|
1521 1290 |
|
1522 - | impl ::std::convert::From<Builder> for crate::input::HostWithPathOperationInput {
|
1291 + | impl ::std::convert::From<Builder> for crate::input::EndpointOperationInput {
|
1523 1292 | fn from(builder: Builder) -> Self {
|
1524 1293 | builder.build()
|
1525 1294 | }
|
1526 1295 | }
|
1527 - | /// A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1296 + | /// A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1528 1297 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1529 1298 | pub struct Builder {}
|
1530 1299 | impl Builder {
|
1531 - | /// Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1532 - | pub fn build(self) -> crate::input::HostWithPathOperationInput {
|
1300 + | /// Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1301 + | pub fn build(self) -> crate::input::EndpointOperationInput {
|
1533 1302 | self.build_enforcing_required_and_enum_traits()
|
1534 1303 | }
|
1535 - | fn build_enforcing_required_and_enum_traits(
|
1536 - | self,
|
1537 - | ) -> crate::input::HostWithPathOperationInput {
|
1538 - | crate::input::HostWithPathOperationInput {}
|
1304 + | fn build_enforcing_required_and_enum_traits(self) -> crate::input::EndpointOperationInput {
|
1305 + | crate::input::EndpointOperationInput {}
|
1539 1306 | }
|
1540 1307 | }
|
1541 1308 | }
|
1542 1309 | /// See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
1543 1310 | pub(crate) mod endpoint_with_host_label_operation_input_internal {
|
1544 1311 |
|
1545 1312 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1546 1313 | /// Holds one variant for each of the ways the builder can fail.
|
1547 1314 | #[non_exhaustive]
|
1548 1315 | #[allow(clippy::enum_variant_names)]
|
1690 1457 | fn build_enforcing_required_and_enum_traits(
|
1691 1458 | self,
|
1692 1459 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
1693 1460 | {
|
1694 1461 | Ok(crate::input::EndpointWithHostLabelOperationInput {
|
1695 1462 | label: self.label.ok_or(ConstraintViolation::MissingLabel)?,
|
1696 1463 | })
|
1697 1464 | }
|
1698 1465 | }
|
1699 1466 | }
|
1700 - | /// See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1701 - | pub(crate) mod endpoint_operation_input_internal {
|
1467 + | /// See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1468 + | pub(crate) mod host_with_path_operation_input_internal {
|
1702 1469 |
|
1703 - | impl ::std::convert::From<Builder> for crate::input::EndpointOperationInput {
|
1470 + | impl ::std::convert::From<Builder> for crate::input::HostWithPathOperationInput {
|
1704 1471 | fn from(builder: Builder) -> Self {
|
1705 1472 | builder.build()
|
1706 1473 | }
|
1707 1474 | }
|
1708 - | /// A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1475 + | /// A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1709 1476 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1710 1477 | pub(crate) struct Builder {}
|
1711 1478 | impl Builder {
|
1712 - | /// Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1713 - | pub fn build(self) -> crate::input::EndpointOperationInput {
|
1479 + | /// Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1480 + | pub fn build(self) -> crate::input::HostWithPathOperationInput {
|
1714 1481 | self.build_enforcing_all_constraints()
|
1715 1482 | }
|
1716 - | fn build_enforcing_all_constraints(self) -> crate::input::EndpointOperationInput {
|
1717 - | crate::input::EndpointOperationInput {}
|
1483 + | fn build_enforcing_all_constraints(self) -> crate::input::HostWithPathOperationInput {
|
1484 + | crate::input::HostWithPathOperationInput {}
|
1485 + | }
|
1486 + | }
|
1487 + | }
|
1488 + | /// See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1489 + | pub mod host_with_path_operation_input {
|
1490 + |
|
1491 + | impl ::std::convert::From<Builder> for crate::input::HostWithPathOperationInput {
|
1492 + | fn from(builder: Builder) -> Self {
|
1493 + | builder.build()
|
1494 + | }
|
1495 + | }
|
1496 + | /// A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1497 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1498 + | pub struct Builder {}
|
1499 + | impl Builder {
|
1500 + | /// Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1501 + | pub fn build(self) -> crate::input::HostWithPathOperationInput {
|
1502 + | self.build_enforcing_required_and_enum_traits()
|
1503 + | }
|
1504 + | fn build_enforcing_required_and_enum_traits(
|
1505 + | self,
|
1506 + | ) -> crate::input::HostWithPathOperationInput {
|
1507 + | crate::input::HostWithPathOperationInput {}
|
1508 + | }
|
1509 + | }
|
1510 + | }
|
1511 + | /// See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1512 + | pub(crate) mod put_with_content_encoding_input_internal {
|
1513 + |
|
1514 + | impl ::std::convert::From<Builder> for crate::input::PutWithContentEncodingInput {
|
1515 + | fn from(builder: Builder) -> Self {
|
1516 + | builder.build()
|
1517 + | }
|
1518 + | }
|
1519 + | /// A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1520 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1521 + | pub(crate) struct Builder {
|
1522 + | pub(crate) encoding: ::std::option::Option<::std::string::String>,
|
1523 + | pub(crate) data: ::std::option::Option<::std::string::String>,
|
1524 + | }
|
1525 + | impl Builder {
|
1526 + | #[allow(missing_docs)] // documentation missing in model
|
1527 + | pub(crate) fn set_encoding(
|
1528 + | mut self,
|
1529 + | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1530 + | ) -> Self {
|
1531 + | self.encoding = input.map(|v| v.into());
|
1532 + | self
|
1533 + | }
|
1534 + | #[allow(missing_docs)] // documentation missing in model
|
1535 + | pub(crate) fn set_data(
|
1536 + | mut self,
|
1537 + | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1538 + | ) -> Self {
|
1539 + | self.data = input.map(|v| v.into());
|
1540 + | self
|
1541 + | }
|
1542 + | /// Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1543 + | pub fn build(self) -> crate::input::PutWithContentEncodingInput {
|
1544 + | self.build_enforcing_all_constraints()
|
1545 + | }
|
1546 + | fn build_enforcing_all_constraints(self) -> crate::input::PutWithContentEncodingInput {
|
1547 + | crate::input::PutWithContentEncodingInput {
|
1548 + | encoding: self.encoding,
|
1549 + | data: self.data,
|
1550 + | }
|
1551 + | }
|
1552 + | }
|
1553 + | }
|
1554 + | /// See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1555 + | pub mod put_with_content_encoding_input {
|
1556 + |
|
1557 + | impl ::std::convert::From<Builder> for crate::input::PutWithContentEncodingInput {
|
1558 + | fn from(builder: Builder) -> Self {
|
1559 + | builder.build()
|
1560 + | }
|
1561 + | }
|
1562 + | /// A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1563 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1564 + | pub struct Builder {
|
1565 + | pub(crate) encoding: ::std::option::Option<::std::string::String>,
|
1566 + | pub(crate) data: ::std::option::Option<::std::string::String>,
|
1567 + | }
|
1568 + | impl Builder {
|
1569 + | #[allow(missing_docs)] // documentation missing in model
|
1570 + | pub fn encoding(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1571 + | self.encoding = input;
|
1572 + | self
|
1573 + | }
|
1574 + | #[allow(missing_docs)] // documentation missing in model
|
1575 + | pub fn data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1576 + | self.data = input;
|
1577 + | self
|
1578 + | }
|
1579 + | /// Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1580 + | pub fn build(self) -> crate::input::PutWithContentEncodingInput {
|
1581 + | self.build_enforcing_required_and_enum_traits()
|
1582 + | }
|
1583 + | fn build_enforcing_required_and_enum_traits(
|
1584 + | self,
|
1585 + | ) -> crate::input::PutWithContentEncodingInput {
|
1586 + | crate::input::PutWithContentEncodingInput {
|
1587 + | encoding: self.encoding,
|
1588 + | data: self.data,
|
1589 + | }
|
1590 + | }
|
1591 + | }
|
1592 + | }
|
1593 + | /// See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1594 + | pub(crate) mod content_type_parameters_input_internal {
|
1595 + |
|
1596 + | impl ::std::convert::From<Builder> for crate::input::ContentTypeParametersInput {
|
1597 + | fn from(builder: Builder) -> Self {
|
1598 + | builder.build()
|
1599 + | }
|
1600 + | }
|
1601 + | /// A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1602 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1603 + | pub(crate) struct Builder {
|
1604 + | pub(crate) value: ::std::option::Option<i32>,
|
1605 + | }
|
1606 + | impl Builder {
|
1607 + | #[allow(missing_docs)] // documentation missing in model
|
1608 + | pub(crate) fn set_value(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
1609 + | self.value = input.map(|v| v.into());
|
1610 + | self
|
1611 + | }
|
1612 + | /// Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1613 + | pub fn build(self) -> crate::input::ContentTypeParametersInput {
|
1614 + | self.build_enforcing_all_constraints()
|
1615 + | }
|
1616 + | fn build_enforcing_all_constraints(self) -> crate::input::ContentTypeParametersInput {
|
1617 + | crate::input::ContentTypeParametersInput { value: self.value }
|
1718 1618 | }
|
1719 1619 | }
|
1720 1620 | }
|
1721 - | /// See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1722 - | pub mod endpoint_operation_input {
|
1621 + | /// See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1622 + | pub mod content_type_parameters_input {
|
1723 1623 |
|
1724 - | impl ::std::convert::From<Builder> for crate::input::EndpointOperationInput {
|
1624 + | impl ::std::convert::From<Builder> for crate::input::ContentTypeParametersInput {
|
1725 1625 | fn from(builder: Builder) -> Self {
|
1726 1626 | builder.build()
|
1727 1627 | }
|
1728 1628 | }
|
1729 - | /// A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1629 + | /// A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1730 1630 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1731 - | pub struct Builder {}
|
1631 + | pub struct Builder {
|
1632 + | pub(crate) value: ::std::option::Option<i32>,
|
1633 + | }
|
1732 1634 | impl Builder {
|
1733 - | /// Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1734 - | pub fn build(self) -> crate::input::EndpointOperationInput {
|
1635 + | #[allow(missing_docs)] // documentation missing in model
|
1636 + | pub fn value(mut self, input: ::std::option::Option<i32>) -> Self {
|
1637 + | self.value = input;
|
1638 + | self
|
1639 + | }
|
1640 + | /// Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1641 + | pub fn build(self) -> crate::input::ContentTypeParametersInput {
|
1735 1642 | self.build_enforcing_required_and_enum_traits()
|
1736 1643 | }
|
1737 - | fn build_enforcing_required_and_enum_traits(self) -> crate::input::EndpointOperationInput {
|
1738 - | crate::input::EndpointOperationInput {}
|
1644 + | fn build_enforcing_required_and_enum_traits(
|
1645 + | self,
|
1646 + | ) -> crate::input::ContentTypeParametersInput {
|
1647 + | crate::input::ContentTypeParametersInput { value: self.value }
|
1739 1648 | }
|
1740 1649 | }
|
1741 1650 | }
|
1742 - | /// See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1743 - | pub(crate) mod json_unions_input_internal {
|
1651 + | /// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1652 + | pub(crate) mod operation_with_defaults_input_internal {
|
1744 1653 |
|
1745 1654 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1746 1655 | /// Holds one variant for each of the ways the builder can fail.
|
1747 1656 | #[non_exhaustive]
|
1748 1657 | #[allow(clippy::enum_variant_names)]
|
1749 1658 | pub(crate) enum ConstraintViolation {
|
1750 - | /// Constraint violation occurred building member `contents` when building `JsonUnionsInput`.
|
1659 + | /// Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
|
1751 1660 | #[doc(hidden)]
|
1752 - | Contents(crate::model::my_union_internal::ConstraintViolation),
|
1661 + | Defaults(crate::model::defaults_internal::ConstraintViolation),
|
1753 1662 | }
|
1754 1663 | impl ::std::fmt::Display for ConstraintViolation {
|
1755 1664 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1756 1665 | match self {
|
1757 - | ConstraintViolation::Contents(_) => write!(f, "constraint violation occurred building member `contents` when building `JsonUnionsInput`"),
|
1666 + | ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
|
1758 1667 | }
|
1759 1668 | }
|
1760 1669 | }
|
1761 1670 | impl ::std::error::Error for ConstraintViolation {}
|
1762 1671 | impl ConstraintViolation {
|
1763 1672 | pub(crate) fn as_validation_exception_field(
|
1764 1673 | self,
|
1765 1674 | path: ::std::string::String,
|
1766 1675 | ) -> crate::model::ValidationExceptionField {
|
1767 1676 | match self {
|
1768 - | ConstraintViolation::Contents(inner) => {
|
1769 - | inner.as_validation_exception_field(path + "/contents")
|
1677 + | ConstraintViolation::Defaults(inner) => {
|
1678 + | inner.as_validation_exception_field(path + "/defaults")
|
1770 1679 | }
|
1771 1680 | }
|
1772 1681 | }
|
1773 1682 | }
|
1774 1683 | impl ::std::convert::From<ConstraintViolation>
|
1775 1684 | for ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection
|
1776 1685 | {
|
1777 1686 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1778 1687 | let first_validation_exception_field =
|
1779 1688 | constraint_violation.as_validation_exception_field("".to_owned());
|
1780 1689 | let validation_exception = crate::error::ValidationException {
|
1781 1690 | message: format!(
|
1782 1691 | "1 validation error detected. {}",
|
1783 1692 | &first_validation_exception_field.message
|
1784 1693 | ),
|
1785 1694 | field_list: Some(vec![first_validation_exception_field]),
|
1786 1695 | };
|
1787 1696 | Self::ConstraintViolation(
|
1788 1697 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1789 1698 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1790 1699 | )
|
1791 1700 | }
|
1792 1701 | }
|
1793 1702 | impl ::std::convert::From<Builder>
|
1794 - | for crate::constrained::MaybeConstrained<crate::input::JsonUnionsInput>
|
1703 + | for crate::constrained::MaybeConstrained<crate::input::OperationWithDefaultsInput>
|
1795 1704 | {
|
1796 1705 | fn from(builder: Builder) -> Self {
|
1797 1706 | Self::Unconstrained(builder)
|
1798 1707 | }
|
1799 1708 | }
|
1800 - | impl ::std::convert::TryFrom<Builder> for crate::input::JsonUnionsInput {
|
1709 + | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithDefaultsInput {
|
1801 1710 | type Error = ConstraintViolation;
|
1802 1711 |
|
1803 1712 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1804 1713 | builder.build()
|
1805 1714 | }
|
1806 1715 | }
|
1807 - | /// A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1716 + | /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1808 1717 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1809 1718 | pub(crate) struct Builder {
|
1810 - | pub(crate) contents:
|
1811 - | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
1719 + | pub(crate) defaults:
|
1720 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
1721 + | pub(crate) client_optional_defaults:
|
1722 + | ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
1723 + | pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
|
1724 + | pub(crate) other_top_level_default: ::std::option::Option<i32>,
|
1812 1725 | }
|
1813 1726 | impl Builder {
|
1814 - | /// A union with a representative set of types for members.
|
1815 - | pub(crate) fn set_contents(
|
1727 + | #[allow(missing_docs)] // documentation missing in model
|
1728 + | pub(crate) fn set_defaults(
|
1816 1729 | mut self,
|
1817 1730 | input: Option<
|
1818 - | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
1731 + | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
1819 1732 | >,
|
1820 1733 | ) -> Self {
|
1821 - | self.contents = input.map(|v| v.into());
|
1734 + | self.defaults = input.map(|v| v.into());
|
1822 1735 | self
|
1823 1736 | }
|
1824 - | /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1737 + | #[allow(missing_docs)] // documentation missing in model
|
1738 + | pub(crate) fn set_client_optional_defaults(
|
1739 + | mut self,
|
1740 + | input: Option<impl ::std::convert::Into<crate::model::ClientOptionalDefaults>>,
|
1741 + | ) -> Self {
|
1742 + | self.client_optional_defaults = input.map(|v| v.into());
|
1743 + | self
|
1744 + | }
|
1745 + | #[allow(missing_docs)] // documentation missing in model
|
1746 + | pub(crate) fn set_top_level_default(
|
1747 + | mut self,
|
1748 + | input: impl ::std::convert::Into<::std::string::String>,
|
1749 + | ) -> Self {
|
1750 + | self.top_level_default = Some(input.into());
|
1751 + | self
|
1752 + | }
|
1753 + | #[allow(missing_docs)] // documentation missing in model
|
1754 + | pub(crate) fn set_other_top_level_default(
|
1755 + | mut self,
|
1756 + | input: impl ::std::convert::Into<i32>,
|
1757 + | ) -> Self {
|
1758 + | self.other_top_level_default = Some(input.into());
|
1759 + | self
|
1760 + | }
|
1761 + | /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1825 1762 | ///
|
1826 - | /// The builder fails to construct a [`JsonUnionsInput`](crate::input::JsonUnionsInput) if a [`ConstraintViolation`] occurs.
|
1763 + | /// The builder fails to construct a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput) if a [`ConstraintViolation`] occurs.
|
1827 1764 | ///
|
1828 - | pub fn build(self) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
1765 + | pub fn build(
|
1766 + | self,
|
1767 + | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
1829 1768 | self.build_enforcing_all_constraints()
|
1830 1769 | }
|
1831 1770 | fn build_enforcing_all_constraints(
|
1832 1771 | self,
|
1833 - | ) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
1834 - | Ok(crate::input::JsonUnionsInput {
|
1835 - | contents: self
|
1836 - | .contents
|
1772 + | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
1773 + | Ok(crate::input::OperationWithDefaultsInput {
|
1774 + | defaults: self
|
1775 + | .defaults
|
1837 1776 | .map(|v| match v {
|
1838 1777 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1839 1778 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1840 1779 | })
|
1841 - | .map(|res| res.map_err(ConstraintViolation::Contents))
|
1780 + | .map(|res| res.map_err(ConstraintViolation::Defaults))
|
1842 1781 | .transpose()?,
|
1782 + | client_optional_defaults: self.client_optional_defaults,
|
1783 + | top_level_default: self.top_level_default.unwrap_or_else(|| String::from("hi")),
|
1784 + | other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
|
1843 1785 | })
|
1844 1786 | }
|
1845 1787 | }
|
1846 1788 | }
|
1847 - | /// See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1848 - | pub mod json_unions_input {
|
1789 + | /// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1790 + | pub mod operation_with_defaults_input {
|
1849 1791 |
|
1850 - | impl ::std::convert::From<Builder> for crate::input::JsonUnionsInput {
|
1792 + | impl ::std::convert::From<Builder> for crate::input::OperationWithDefaultsInput {
|
1851 1793 | fn from(builder: Builder) -> Self {
|
1852 1794 | builder.build()
|
1853 1795 | }
|
1854 1796 | }
|
1855 - | /// A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1797 + | /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1856 1798 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1857 1799 | pub struct Builder {
|
1858 - | pub(crate) contents: ::std::option::Option<crate::model::MyUnion>,
|
1800 + | pub(crate) defaults: ::std::option::Option<crate::model::Defaults>,
|
1801 + | pub(crate) client_optional_defaults:
|
1802 + | ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
1803 + | pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
|
1804 + | pub(crate) other_top_level_default: ::std::option::Option<i32>,
|
1859 1805 | }
|
1860 1806 | impl Builder {
|
1861 - | /// A union with a representative set of types for members.
|
1862 - | pub fn contents(mut self, input: ::std::option::Option<crate::model::MyUnion>) -> Self {
|
1863 - | self.contents = input;
|
1807 + | #[allow(missing_docs)] // documentation missing in model
|
1808 + | pub fn defaults(mut self, input: ::std::option::Option<crate::model::Defaults>) -> Self {
|
1809 + | self.defaults = input;
|
1864 1810 | self
|
1865 1811 | }
|
1866 - | /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1867 - | pub fn build(self) -> crate::input::JsonUnionsInput {
|
1812 + | #[allow(missing_docs)] // documentation missing in model
|
1813 + | pub fn client_optional_defaults(
|
1814 + | mut self,
|
1815 + | input: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
1816 + | ) -> Self {
|
1817 + | self.client_optional_defaults = input;
|
1818 + | self
|
1819 + | }
|
1820 + | #[allow(missing_docs)] // documentation missing in model
|
1821 + | pub fn top_level_default(mut self, input: ::std::string::String) -> Self {
|
1822 + | self.top_level_default = Some(input);
|
1823 + | self
|
1824 + | }
|
1825 + | #[allow(missing_docs)] // documentation missing in model
|
1826 + | pub fn other_top_level_default(mut self, input: i32) -> Self {
|
1827 + | self.other_top_level_default = Some(input);
|
1828 + | self
|
1829 + | }
|
1830 + | /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1831 + | pub fn build(self) -> crate::input::OperationWithDefaultsInput {
|
1868 1832 | self.build_enforcing_required_and_enum_traits()
|
1869 1833 | }
|
1870 - | fn build_enforcing_required_and_enum_traits(self) -> crate::input::JsonUnionsInput {
|
1871 - | crate::input::JsonUnionsInput {
|
1872 - | contents: self.contents,
|
1834 + | fn build_enforcing_required_and_enum_traits(
|
1835 + | self,
|
1836 + | ) -> crate::input::OperationWithDefaultsInput {
|
1837 + | crate::input::OperationWithDefaultsInput {
|
1838 + | defaults: self.defaults,
|
1839 + | client_optional_defaults: self.client_optional_defaults,
|
1840 + | top_level_default: self.top_level_default.unwrap_or_else(|| String::from("hi")),
|
1841 + | other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
|
1873 1842 | }
|
1874 1843 | }
|
1875 1844 | }
|
1876 1845 | }
|
1877 - | /// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1878 - | pub(crate) mod greeting_with_errors_input_internal {
|
1846 + | /// See [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1847 + | pub(crate) mod operation_with_required_members_input_internal {
|
1879 1848 |
|
1880 - | impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
|
1849 + | impl ::std::convert::From<Builder> for crate::input::OperationWithRequiredMembersInput {
|
1881 1850 | fn from(builder: Builder) -> Self {
|
1882 1851 | builder.build()
|
1883 1852 | }
|
1884 1853 | }
|
1885 - | /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1854 + | /// A builder for [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1886 1855 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1887 - | pub(crate) struct Builder {
|
1888 - | pub(crate) greeting: ::std::option::Option<::std::string::String>,
|
1889 - | }
|
1856 + | pub(crate) struct Builder {}
|
1890 1857 | impl Builder {
|
1891 - | #[allow(missing_docs)] // documentation missing in model
|
1892 - | pub(crate) fn set_greeting(
|
1893 - | mut self,
|
1894 - | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1895 - | ) -> Self {
|
1896 - | self.greeting = input.map(|v| v.into());
|
1897 - | self
|
1898 - | }
|
1899 - | /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1900 - | pub fn build(self) -> crate::input::GreetingWithErrorsInput {
|
1858 + | /// Consumes the builder and constructs a [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1859 + | pub fn build(self) -> crate::input::OperationWithRequiredMembersInput {
|
1901 1860 | self.build_enforcing_all_constraints()
|
1902 1861 | }
|
1903 - | fn build_enforcing_all_constraints(self) -> crate::input::GreetingWithErrorsInput {
|
1904 - | crate::input::GreetingWithErrorsInput {
|
1905 - | greeting: self.greeting,
|
1906 - | }
|
1862 + | fn build_enforcing_all_constraints(
|
1863 + | self,
|
1864 + | ) -> crate::input::OperationWithRequiredMembersInput {
|
1865 + | crate::input::OperationWithRequiredMembersInput {}
|
1907 1866 | }
|
1908 1867 | }
|
1909 1868 | }
|
1910 - | /// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1911 - | pub mod greeting_with_errors_input {
|
1869 + | /// See [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1870 + | pub mod operation_with_required_members_input {
|
1912 1871 |
|
1913 - | impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
|
1872 + | impl ::std::convert::From<Builder> for crate::input::OperationWithRequiredMembersInput {
|
1914 1873 | fn from(builder: Builder) -> Self {
|
1915 1874 | builder.build()
|
1916 1875 | }
|
1917 1876 | }
|
1918 - | /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1877 + | /// A builder for [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1919 1878 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1920 - | pub struct Builder {
|
1921 - | pub(crate) greeting: ::std::option::Option<::std::string::String>,
|
1922 - | }
|
1879 + | pub struct Builder {}
|
1923 1880 | impl Builder {
|
1924 - | #[allow(missing_docs)] // documentation missing in model
|
1925 - | pub fn greeting(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1926 - | self.greeting = input;
|
1927 - | self
|
1881 + | /// Consumes the builder and constructs a [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1882 + | pub fn build(self) -> crate::input::OperationWithRequiredMembersInput {
|
1883 + | self.build_enforcing_required_and_enum_traits()
|
1884 + | }
|
1885 + | fn build_enforcing_required_and_enum_traits(
|
1886 + | self,
|
1887 + | ) -> crate::input::OperationWithRequiredMembersInput {
|
1888 + | crate::input::OperationWithRequiredMembersInput {}
|
1889 + | }
|
1890 + | }
|
1891 + | }
|
1892 + | /// See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1893 + | pub(crate) mod operation_with_nested_structure_input_internal {
|
1894 + |
|
1895 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1896 + | /// Holds one variant for each of the ways the builder can fail.
|
1897 + | #[non_exhaustive]
|
1898 + | #[allow(clippy::enum_variant_names)]
|
1899 + | pub(crate) enum ConstraintViolation {
|
1900 + | /// `top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
1901 + | MissingTopLevel,
|
1902 + | /// Constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`.
|
1903 + | #[doc(hidden)]
|
1904 + | TopLevel(crate::model::top_level_internal::ConstraintViolation),
|
1905 + | }
|
1906 + | impl ::std::fmt::Display for ConstraintViolation {
|
1907 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1908 + | match self {
|
1909 + | ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
1910 + | ConstraintViolation::TopLevel(_) => write!(f, "constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`"),
|
1911 + | }
|
1912 + | }
|
1913 + | }
|
1914 + | impl ::std::error::Error for ConstraintViolation {}
|
1915 + | impl ConstraintViolation {
|
1916 + | pub(crate) fn as_validation_exception_field(
|
1917 + | self,
|
1918 + | path: ::std::string::String,
|
1919 + | ) -> crate::model::ValidationExceptionField {
|
1920 + | match self {
|
1921 + | ConstraintViolation::MissingTopLevel => crate::model::ValidationExceptionField {
|
1922 + | message: format!("Value at '{}/topLevel' failed to satisfy constraint: Member must not be null", path),
|
1923 + | path: path + "/topLevel",
|
1924 + | },
|
1925 + | ConstraintViolation::TopLevel(inner) => inner.as_validation_exception_field(path + "/topLevel"),
|
1928 1926 | }
|
1929 - | /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1930 - | pub fn build(self) -> crate::input::GreetingWithErrorsInput {
|
1931 - | self.build_enforcing_required_and_enum_traits()
|
1932 1927 | }
|
1933 - | fn build_enforcing_required_and_enum_traits(self) -> crate::input::GreetingWithErrorsInput {
|
1934 - | crate::input::GreetingWithErrorsInput {
|
1935 - | greeting: self.greeting,
|
1936 1928 | }
|
1929 + | impl ::std::convert::From<ConstraintViolation>
|
1930 + | for ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection
|
1931 + | {
|
1932 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1933 + | let first_validation_exception_field =
|
1934 + | constraint_violation.as_validation_exception_field("".to_owned());
|
1935 + | let validation_exception = crate::error::ValidationException {
|
1936 + | message: format!(
|
1937 + | "1 validation error detected. {}",
|
1938 + | &first_validation_exception_field.message
|
1939 + | ),
|
1940 + | field_list: Some(vec![first_validation_exception_field]),
|
1941 + | };
|
1942 + | Self::ConstraintViolation(
|
1943 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1944 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1945 + | )
|
1937 1946 | }
|
1938 1947 | }
|
1939 - | }
|
1940 - | /// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1941 - | pub(crate) mod simple_scalar_properties_input_internal {
|
1942 - |
|
1943 - | impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
|
1948 + | impl ::std::convert::From<Builder>
|
1949 + | for crate::constrained::MaybeConstrained<crate::input::OperationWithNestedStructureInput>
|
1950 + | {
|
1944 1951 | fn from(builder: Builder) -> Self {
|
1952 + | Self::Unconstrained(builder)
|
1953 + | }
|
1954 + | }
|
1955 + | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithNestedStructureInput {
|
1956 + | type Error = ConstraintViolation;
|
1957 + |
|
1958 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1945 1959 | builder.build()
|
1946 1960 | }
|
1947 1961 | }
|
1948 - | /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1962 + | /// A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1949 1963 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1950 1964 | pub(crate) struct Builder {
|
1951 - | pub(crate) float_value: ::std::option::Option<f32>,
|
1952 - | pub(crate) double_value: ::std::option::Option<f64>,
|
1965 + | pub(crate) top_level:
|
1966 + | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::TopLevel>>,
|
1953 1967 | }
|
1954 1968 | impl Builder {
|
1955 1969 | #[allow(missing_docs)] // documentation missing in model
|
1956 - | pub(crate) fn set_float_value(
|
1957 - | mut self,
|
1958 - | input: Option<impl ::std::convert::Into<f32>>,
|
1959 - | ) -> Self {
|
1960 - | self.float_value = input.map(|v| v.into());
|
1961 - | self
|
1962 - | }
|
1963 - | #[allow(missing_docs)] // documentation missing in model
|
1964 - | pub(crate) fn set_double_value(
|
1970 + | pub(crate) fn set_top_level(
|
1965 1971 | mut self,
|
1966 - | input: Option<impl ::std::convert::Into<f64>>,
|
1972 + | input: impl ::std::convert::Into<
|
1973 + | crate::constrained::MaybeConstrained<crate::model::TopLevel>,
|
1974 + | >,
|
1967 1975 | ) -> Self {
|
1968 - | self.double_value = input.map(|v| v.into());
|
1976 + | self.top_level = Some(input.into());
|
1969 1977 | self
|
1970 1978 | }
|
1971 - | /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1972 - | pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
|
1979 + | /// Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1980 + | ///
|
1981 + | /// The builder fails to construct a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) if a [`ConstraintViolation`] occurs.
|
1982 + | ///
|
1983 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
1984 + | pub fn build(
|
1985 + | self,
|
1986 + | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
1973 1987 | self.build_enforcing_all_constraints()
|
1974 1988 | }
|
1975 - | fn build_enforcing_all_constraints(self) -> crate::input::SimpleScalarPropertiesInput {
|
1976 - | crate::input::SimpleScalarPropertiesInput {
|
1977 - | float_value: self.float_value,
|
1978 - | double_value: self.double_value,
|
1979 - | }
|
1989 + | fn build_enforcing_all_constraints(
|
1990 + | self,
|
1991 + | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
1992 + | Ok(crate::input::OperationWithNestedStructureInput {
|
1993 + | top_level: self
|
1994 + | .top_level
|
1995 + | .map(|v| match v {
|
1996 + | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1997 + | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1998 + | })
|
1999 + | .map(|res| res.map_err(ConstraintViolation::TopLevel))
|
2000 + | .transpose()?
|
2001 + | .ok_or(ConstraintViolation::MissingTopLevel)?,
|
2002 + | })
|
1980 2003 | }
|
1981 2004 | }
|
1982 2005 | }
|
1983 - | /// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1984 - | pub mod simple_scalar_properties_input {
|
2006 + | /// See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
2007 + | pub mod operation_with_nested_structure_input {
|
1985 2008 |
|
1986 - | impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
|
1987 - | fn from(builder: Builder) -> Self {
|
2009 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2010 + | /// Holds one variant for each of the ways the builder can fail.
|
2011 + | #[allow(clippy::enum_variant_names)]
|
2012 + | pub enum ConstraintViolation {
|
2013 + | /// `top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
2014 + | MissingTopLevel,
|
2015 + | }
|
2016 + | impl ::std::fmt::Display for ConstraintViolation {
|
2017 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2018 + | match self {
|
2019 + | ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
2020 + | }
|
2021 + | }
|
2022 + | }
|
2023 + | impl ::std::error::Error for ConstraintViolation {}
|
2024 + | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithNestedStructureInput {
|
2025 + | type Error = ConstraintViolation;
|
2026 + |
|
2027 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1988 2028 | builder.build()
|
1989 2029 | }
|
1990 2030 | }
|
1991 - | /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2031 + | /// A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1992 2032 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1993 2033 | pub struct Builder {
|
1994 - | pub(crate) float_value: ::std::option::Option<f32>,
|
1995 - | pub(crate) double_value: ::std::option::Option<f64>,
|
2034 + | pub(crate) top_level: ::std::option::Option<crate::model::TopLevel>,
|
1996 2035 | }
|
1997 2036 | impl Builder {
|
1998 2037 | #[allow(missing_docs)] // documentation missing in model
|
1999 - | pub fn float_value(mut self, input: ::std::option::Option<f32>) -> Self {
|
2000 - | self.float_value = input;
|
2001 - | self
|
2002 - | }
|
2003 - | #[allow(missing_docs)] // documentation missing in model
|
2004 - | pub fn double_value(mut self, input: ::std::option::Option<f64>) -> Self {
|
2005 - | self.double_value = input;
|
2038 + | pub fn top_level(mut self, input: crate::model::TopLevel) -> Self {
|
2039 + | self.top_level = Some(input);
|
2006 2040 | self
|
2007 2041 | }
|
2008 - | /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2009 - | pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
|
2042 + | /// Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
2043 + | ///
|
2044 + | /// The builder fails to construct a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) if you do not provide a value for all non-`Option`al members.
|
2045 + | ///
|
2046 + | pub fn build(
|
2047 + | self,
|
2048 + | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
2010 2049 | self.build_enforcing_required_and_enum_traits()
|
2011 2050 | }
|
2012 2051 | fn build_enforcing_required_and_enum_traits(
|
2013 2052 | self,
|
2014 - | ) -> crate::input::SimpleScalarPropertiesInput {
|
2015 - | crate::input::SimpleScalarPropertiesInput {
|
2016 - | float_value: self.float_value,
|
2017 - | double_value: self.double_value,
|
2018 - | }
|
2053 + | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
2054 + | Ok(crate::input::OperationWithNestedStructureInput {
|
2055 + | top_level: self.top_level.ok_or(ConstraintViolation::MissingTopLevel)?,
|
2056 + | })
|
2019 2057 | }
|
2020 2058 | }
|
2021 2059 | }
|
2022 - | /// See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2023 - | pub(crate) mod empty_input_and_empty_output_input_internal {
|
2060 + | /// See [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
2061 + | pub(crate) mod operation_with_required_members_with_defaults_input_internal {
|
2024 2062 |
|
2025 - | impl ::std::convert::From<Builder> for crate::input::EmptyInputAndEmptyOutputInput {
|
2063 + | impl ::std::convert::From<Builder> for crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
2026 2064 | fn from(builder: Builder) -> Self {
|
2027 2065 | builder.build()
|
2028 2066 | }
|
2029 2067 | }
|
2030 - | /// A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2068 + | /// A builder for [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
2031 2069 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2032 2070 | pub(crate) struct Builder {}
|
2033 2071 | impl Builder {
|
2034 - | /// Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2035 - | pub fn build(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
2072 + | /// Consumes the builder and constructs a [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
2073 + | pub fn build(self) -> crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
2036 2074 | self.build_enforcing_all_constraints()
|
2037 2075 | }
|
2038 - | fn build_enforcing_all_constraints(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
2039 - | crate::input::EmptyInputAndEmptyOutputInput {}
|
2076 + | fn build_enforcing_all_constraints(
|
2077 + | self,
|
2078 + | ) -> crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
2079 + | crate::input::OperationWithRequiredMembersWithDefaultsInput {}
|
2040 2080 | }
|
2041 2081 | }
|
2042 2082 | }
|
2043 - | /// See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2044 - | pub mod empty_input_and_empty_output_input {
|
2083 + | /// See [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
2084 + | pub mod operation_with_required_members_with_defaults_input {
|
2045 2085 |
|
2046 - | impl ::std::convert::From<Builder> for crate::input::EmptyInputAndEmptyOutputInput {
|
2086 + | impl ::std::convert::From<Builder> for crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
2047 2087 | fn from(builder: Builder) -> Self {
|
2048 2088 | builder.build()
|
2049 2089 | }
|
2050 2090 | }
|
2051 - | /// A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2091 + | /// A builder for [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
2052 2092 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2053 2093 | pub struct Builder {}
|
2054 2094 | impl Builder {
|
2055 - | /// Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2056 - | pub fn build(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
2095 + | /// Consumes the builder and constructs a [`OperationWithRequiredMembersWithDefaultsInput`](crate::input::OperationWithRequiredMembersWithDefaultsInput).
|
2096 + | pub fn build(self) -> crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
2057 2097 | self.build_enforcing_required_and_enum_traits()
|
2058 2098 | }
|
2059 2099 | fn build_enforcing_required_and_enum_traits(
|
2060 2100 | self,
|
2061 - | ) -> crate::input::EmptyInputAndEmptyOutputInput {
|
2062 - | crate::input::EmptyInputAndEmptyOutputInput {}
|
2063 - | }
|
2064 - | }
|
2065 - | }
|
2066 - | /// See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2067 - | pub(crate) mod no_input_and_output_input_internal {
|
2068 - |
|
2069 - | impl ::std::convert::From<Builder> for crate::input::NoInputAndOutputInput {
|
2070 - | fn from(builder: Builder) -> Self {
|
2071 - | builder.build()
|
2072 - | }
|
2073 - | }
|
2074 - | /// A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2075 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2076 - | pub(crate) struct Builder {}
|
2077 - | impl Builder {
|
2078 - | /// Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2079 - | pub fn build(self) -> crate::input::NoInputAndOutputInput {
|
2080 - | self.build_enforcing_all_constraints()
|
2081 - | }
|
2082 - | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndOutputInput {
|
2083 - | crate::input::NoInputAndOutputInput {}
|
2084 - | }
|
2085 - | }
|
2086 - | }
|
2087 - | /// See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2088 - | pub mod no_input_and_output_input {
|
2089 - |
|
2090 - | impl ::std::convert::From<Builder> for crate::input::NoInputAndOutputInput {
|
2091 - | fn from(builder: Builder) -> Self {
|
2092 - | builder.build()
|
2093 - | }
|
2094 - | }
|
2095 - | /// A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2096 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2097 - | pub struct Builder {}
|
2098 - | impl Builder {
|
2099 - | /// Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2100 - | pub fn build(self) -> crate::input::NoInputAndOutputInput {
|
2101 - | self.build_enforcing_required_and_enum_traits()
|
2102 - | }
|
2103 - | fn build_enforcing_required_and_enum_traits(self) -> crate::input::NoInputAndOutputInput {
|
2104 - | crate::input::NoInputAndOutputInput {}
|
2101 + | ) -> crate::input::OperationWithRequiredMembersWithDefaultsInput {
|
2102 + | crate::input::OperationWithRequiredMembersWithDefaultsInput {}
|
2105 2103 | }
|
2106 2104 | }
|
2107 2105 | }
|
2108 - | /// See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2109 - | pub(crate) mod no_input_and_no_output_input_internal {
|
2106 + | /// See [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
2107 + | pub(crate) mod query_incompatible_operation_input_internal {
|
2110 2108 |
|
2111 - | impl ::std::convert::From<Builder> for crate::input::NoInputAndNoOutputInput {
|
2109 + | impl ::std::convert::From<Builder> for crate::input::QueryIncompatibleOperationInput {
|
2112 2110 | fn from(builder: Builder) -> Self {
|
2113 2111 | builder.build()
|
2114 2112 | }
|
2115 2113 | }
|
2116 - | /// A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2114 + | /// A builder for [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
2117 2115 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2118 2116 | pub(crate) struct Builder {}
|
2119 2117 | impl Builder {
|
2120 - | /// Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2121 - | pub fn build(self) -> crate::input::NoInputAndNoOutputInput {
|
2118 + | /// Consumes the builder and constructs a [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
2119 + | pub fn build(self) -> crate::input::QueryIncompatibleOperationInput {
|
2122 2120 | self.build_enforcing_all_constraints()
|
2123 2121 | }
|
2124 - | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndNoOutputInput {
|
2125 - | crate::input::NoInputAndNoOutputInput {}
|
2122 + | fn build_enforcing_all_constraints(self) -> crate::input::QueryIncompatibleOperationInput {
|
2123 + | crate::input::QueryIncompatibleOperationInput {}
|
2126 2124 | }
|
2127 2125 | }
|
2128 2126 | }
|
2129 - | /// See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2130 - | pub mod no_input_and_no_output_input {
|
2127 + | /// See [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
2128 + | pub mod query_incompatible_operation_input {
|
2131 2129 |
|
2132 - | impl ::std::convert::From<Builder> for crate::input::NoInputAndNoOutputInput {
|
2130 + | impl ::std::convert::From<Builder> for crate::input::QueryIncompatibleOperationInput {
|
2133 2131 | fn from(builder: Builder) -> Self {
|
2134 2132 | builder.build()
|
2135 2133 | }
|
2136 2134 | }
|
2137 - | /// A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2135 + | /// A builder for [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
2138 2136 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2139 2137 | pub struct Builder {}
|
2140 2138 | impl Builder {
|
2141 - | /// Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2142 - | pub fn build(self) -> crate::input::NoInputAndNoOutputInput {
|
2139 + | /// Consumes the builder and constructs a [`QueryIncompatibleOperationInput`](crate::input::QueryIncompatibleOperationInput).
|
2140 + | pub fn build(self) -> crate::input::QueryIncompatibleOperationInput {
|
2143 2141 | self.build_enforcing_required_and_enum_traits()
|
2144 2142 | }
|
2145 - | fn build_enforcing_required_and_enum_traits(self) -> crate::input::NoInputAndNoOutputInput {
|
2146 - | crate::input::NoInputAndNoOutputInput {}
|
2143 + | fn build_enforcing_required_and_enum_traits(
|
2144 + | self,
|
2145 + | ) -> crate::input::QueryIncompatibleOperationInput {
|
2146 + | crate::input::QueryIncompatibleOperationInput {}
|
2147 2147 | }
|
2148 2148 | }
|
2149 2149 | }
|