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