1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* StructureGenerator.kt:197 */
|
2 3 | #[allow(missing_docs)] // documentation missing in model
|
4 + | /* RustType.kt:516 */
|
3 5 | #[derive(
|
4 6 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5 7 | )]
|
6 - | pub struct ResponseCodeDefaultOperationOutput {}
|
8 + | pub /* StructureGenerator.kt:201 */ struct ResponseCodeDefaultOperationOutput {/* StructureGenerator.kt:201 */}
|
9 + | /* ServerCodegenVisitor.kt:345 */
|
7 10 | impl ResponseCodeDefaultOperationOutput {
|
8 - | /// Creates a new builder-style object to manufacture [`ResponseCodeDefaultOperationOutput`](crate::output::ResponseCodeDefaultOperationOutput).
|
11 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResponseCodeDefaultOperationOutput`](crate::output::ResponseCodeDefaultOperationOutput).
|
12 + | /* ServerBuilderGenerator.kt:295 */
|
9 13 | pub fn builder() -> crate::output::response_code_default_operation_output::Builder {
|
14 + | /* ServerBuilderGenerator.kt:296 */
|
10 15 | crate::output::response_code_default_operation_output::Builder::default()
|
16 + | /* ServerBuilderGenerator.kt:295 */
|
11 17 | }
|
18 + | /* ServerCodegenVisitor.kt:345 */
|
12 19 | }
|
13 20 |
|
21 + | /* StructureGenerator.kt:197 */
|
14 22 | #[allow(missing_docs)] // documentation missing in model
|
23 + | /* RustType.kt:516 */
|
15 24 | #[derive(
|
16 25 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
17 26 | )]
|
18 - | pub struct ResponseCodeHttpFallbackOperationOutput {}
|
27 + | pub /* StructureGenerator.kt:201 */ struct ResponseCodeHttpFallbackOperationOutput {/* StructureGenerator.kt:201 */}
|
28 + | /* ServerCodegenVisitor.kt:345 */
|
19 29 | impl ResponseCodeHttpFallbackOperationOutput {
|
20 - | /// Creates a new builder-style object to manufacture [`ResponseCodeHttpFallbackOperationOutput`](crate::output::ResponseCodeHttpFallbackOperationOutput).
|
30 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResponseCodeHttpFallbackOperationOutput`](crate::output::ResponseCodeHttpFallbackOperationOutput).
|
31 + | /* ServerBuilderGenerator.kt:295 */
|
21 32 | pub fn builder() -> crate::output::response_code_http_fallback_operation_output::Builder {
|
33 + | /* ServerBuilderGenerator.kt:296 */
|
22 34 | crate::output::response_code_http_fallback_operation_output::Builder::default()
|
35 + | /* ServerBuilderGenerator.kt:295 */
|
23 36 | }
|
37 + | /* ServerCodegenVisitor.kt:345 */
|
24 38 | }
|
25 39 |
|
40 + | /* StructureGenerator.kt:197 */
|
26 41 | #[allow(missing_docs)] // documentation missing in model
|
42 + | /* RustType.kt:516 */
|
27 43 | #[derive(
|
28 44 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
29 45 | )]
|
30 - | pub struct ResponseCodeRequiredOperationOutput {
|
46 + | pub /* StructureGenerator.kt:201 */ struct ResponseCodeRequiredOperationOutput {
|
47 + | /* StructureGenerator.kt:231 */
|
31 48 | #[allow(missing_docs)] // documentation missing in model
|
32 49 | pub response_code: i32,
|
50 + | /* StructureGenerator.kt:201 */
|
33 51 | }
|
52 + | /* StructureGenerator.kt:135 */
|
34 53 | impl ResponseCodeRequiredOperationOutput {
|
54 + | /* StructureGenerator.kt:231 */
|
35 55 | #[allow(missing_docs)] // documentation missing in model
|
56 + | /* StructureGenerator.kt:166 */
|
36 57 | pub fn response_code(&self) -> i32 {
|
58 + | /* StructureGenerator.kt:168 */
|
37 59 | self.response_code
|
60 + | /* StructureGenerator.kt:166 */
|
38 61 | }
|
62 + | /* StructureGenerator.kt:135 */
|
39 63 | }
|
64 + | /* ServerCodegenVisitor.kt:345 */
|
40 65 | impl ResponseCodeRequiredOperationOutput {
|
41 - | /// Creates a new builder-style object to manufacture [`ResponseCodeRequiredOperationOutput`](crate::output::ResponseCodeRequiredOperationOutput).
|
66 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResponseCodeRequiredOperationOutput`](crate::output::ResponseCodeRequiredOperationOutput).
|
67 + | /* ServerBuilderGenerator.kt:295 */
|
42 68 | pub fn builder() -> crate::output::response_code_required_operation_output::Builder {
|
69 + | /* ServerBuilderGenerator.kt:296 */
|
43 70 | crate::output::response_code_required_operation_output::Builder::default()
|
71 + | /* ServerBuilderGenerator.kt:295 */
|
44 72 | }
|
73 + | /* ServerCodegenVisitor.kt:345 */
|
45 74 | }
|
46 75 |
|
76 + | /* StructureGenerator.kt:197 */
|
47 77 | #[allow(missing_docs)] // documentation missing in model
|
78 + | /* RustType.kt:516 */
|
48 79 | #[derive(
|
49 80 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
50 81 | )]
|
51 - | pub struct RequiredHeaderCollectionOperationOutput {
|
82 + | pub /* StructureGenerator.kt:201 */ struct RequiredHeaderCollectionOperationOutput {
|
83 + | /* StructureGenerator.kt:231 */
|
52 84 | #[allow(missing_docs)] // documentation missing in model
|
53 85 | pub required_header_list: ::std::vec::Vec<::std::string::String>,
|
86 + | /* StructureGenerator.kt:231 */
|
54 87 | #[allow(missing_docs)] // documentation missing in model
|
55 88 | pub required_header_set: crate::model::HeaderSet,
|
89 + | /* StructureGenerator.kt:201 */
|
56 90 | }
|
91 + | /* StructureGenerator.kt:135 */
|
57 92 | impl RequiredHeaderCollectionOperationOutput {
|
93 + | /* StructureGenerator.kt:231 */
|
58 94 | #[allow(missing_docs)] // documentation missing in model
|
95 + | /* StructureGenerator.kt:166 */
|
59 96 | pub fn required_header_list(&self) -> &[::std::string::String] {
|
97 + | /* StructureGenerator.kt:171 */
|
60 98 | use std::ops::Deref;
|
61 99 | self.required_header_list.deref()
|
100 + | /* StructureGenerator.kt:166 */
|
62 101 | }
|
102 + | /* StructureGenerator.kt:231 */
|
63 103 | #[allow(missing_docs)] // documentation missing in model
|
104 + | /* StructureGenerator.kt:166 */
|
64 105 | pub fn required_header_set(&self) -> &crate::model::HeaderSet {
|
106 + | /* StructureGenerator.kt:172 */
|
65 107 | &self.required_header_set
|
108 + | /* StructureGenerator.kt:166 */
|
66 109 | }
|
110 + | /* StructureGenerator.kt:135 */
|
67 111 | }
|
112 + | /* ServerCodegenVisitor.kt:345 */
|
68 113 | impl RequiredHeaderCollectionOperationOutput {
|
69 - | /// Creates a new builder-style object to manufacture [`RequiredHeaderCollectionOperationOutput`](crate::output::RequiredHeaderCollectionOperationOutput).
|
114 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RequiredHeaderCollectionOperationOutput`](crate::output::RequiredHeaderCollectionOperationOutput).
|
115 + | /* ServerBuilderGenerator.kt:295 */
|
70 116 | pub fn builder() -> crate::output::required_header_collection_operation_output::Builder {
|
117 + | /* ServerBuilderGenerator.kt:296 */
|
71 118 | crate::output::required_header_collection_operation_output::Builder::default()
|
119 + | /* ServerBuilderGenerator.kt:295 */
|
72 120 | }
|
121 + | /* ServerCodegenVisitor.kt:345 */
|
73 122 | }
|
74 123 |
|
124 + | /* StructureGenerator.kt:197 */
|
75 125 | #[allow(missing_docs)] // documentation missing in model
|
126 + | /* RustType.kt:516 */
|
76 127 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
77 - | pub struct RequiredInnerShapeOperationOutput {
|
128 + | pub /* StructureGenerator.kt:201 */ struct RequiredInnerShapeOperationOutput {
|
129 + | /* StructureGenerator.kt:231 */
|
78 130 | #[allow(missing_docs)] // documentation missing in model
|
79 131 | pub inner: ::std::option::Option<crate::model::InnerShape>,
|
132 + | /* StructureGenerator.kt:201 */
|
80 133 | }
|
134 + | /* StructureGenerator.kt:135 */
|
81 135 | impl RequiredInnerShapeOperationOutput {
|
136 + | /* StructureGenerator.kt:231 */
|
82 137 | #[allow(missing_docs)] // documentation missing in model
|
138 + | /* StructureGenerator.kt:166 */
|
83 139 | pub fn inner(&self) -> ::std::option::Option<&crate::model::InnerShape> {
|
140 + | /* StructureGenerator.kt:170 */
|
84 141 | self.inner.as_ref()
|
142 + | /* StructureGenerator.kt:166 */
|
85 143 | }
|
144 + | /* StructureGenerator.kt:135 */
|
86 145 | }
|
146 + | /* ServerCodegenVisitor.kt:345 */
|
87 147 | impl RequiredInnerShapeOperationOutput {
|
88 - | /// Creates a new builder-style object to manufacture [`RequiredInnerShapeOperationOutput`](crate::output::RequiredInnerShapeOperationOutput).
|
148 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RequiredInnerShapeOperationOutput`](crate::output::RequiredInnerShapeOperationOutput).
|
149 + | /* ServerBuilderGenerator.kt:295 */
|
89 150 | pub fn builder() -> crate::output::required_inner_shape_operation_output::Builder {
|
151 + | /* ServerBuilderGenerator.kt:296 */
|
90 152 | crate::output::required_inner_shape_operation_output::Builder::default()
|
153 + | /* ServerBuilderGenerator.kt:295 */
|
91 154 | }
|
155 + | /* ServerCodegenVisitor.kt:345 */
|
92 156 | }
|
93 157 |
|
158 + | /* StructureGenerator.kt:197 */
|
94 159 | #[allow(missing_docs)] // documentation missing in model
|
160 + | /* RustType.kt:516 */
|
95 161 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
96 - | pub struct TypeComplexityOperationOutput {
|
162 + | pub /* StructureGenerator.kt:201 */ struct TypeComplexityOperationOutput {
|
163 + | /* StructureGenerator.kt:231 */
|
97 164 | #[allow(missing_docs)] // documentation missing in model
|
98 165 | pub list: ::std::option::Option<
|
99 166 | ::std::vec::Vec<
|
100 167 | ::std::vec::Vec<
|
101 168 | ::std::vec::Vec<
|
102 169 | ::std::collections::HashMap<
|
103 170 | ::std::string::String,
|
104 171 | crate::model::EmptyStructure,
|
105 172 | >,
|
106 173 | >,
|
107 174 | >,
|
108 175 | >,
|
109 176 | >,
|
177 + | /* StructureGenerator.kt:201 */
|
110 178 | }
|
179 + | /* StructureGenerator.kt:135 */
|
111 180 | impl TypeComplexityOperationOutput {
|
181 + | /* StructureGenerator.kt:231 */
|
112 182 | #[allow(missing_docs)] // documentation missing in model
|
183 + | /* StructureGenerator.kt:166 */
|
113 184 | pub fn list(
|
114 185 | &self,
|
115 186 | ) -> ::std::option::Option<
|
116 187 | &[::std::vec::Vec<
|
117 188 | ::std::vec::Vec<
|
118 189 | ::std::collections::HashMap<::std::string::String, crate::model::EmptyStructure>,
|
119 190 | >,
|
120 191 | >],
|
121 192 | > {
|
193 + | /* StructureGenerator.kt:169 */
|
122 194 | self.list.as_deref()
|
195 + | /* StructureGenerator.kt:166 */
|
123 196 | }
|
197 + | /* StructureGenerator.kt:135 */
|
124 198 | }
|
199 + | /* ServerCodegenVisitor.kt:345 */
|
125 200 | impl TypeComplexityOperationOutput {
|
126 - | /// Creates a new builder-style object to manufacture [`TypeComplexityOperationOutput`](crate::output::TypeComplexityOperationOutput).
|
201 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`TypeComplexityOperationOutput`](crate::output::TypeComplexityOperationOutput).
|
202 + | /* ServerBuilderGenerator.kt:295 */
|
127 203 | pub fn builder() -> crate::output::type_complexity_operation_output::Builder {
|
204 + | /* ServerBuilderGenerator.kt:296 */
|
128 205 | crate::output::type_complexity_operation_output::Builder::default()
|
206 + | /* ServerBuilderGenerator.kt:295 */
|
129 207 | }
|
208 + | /* ServerCodegenVisitor.kt:345 */
|
130 209 | }
|
131 - | /// See [`ResponseCodeDefaultOperationOutput`](crate::output::ResponseCodeDefaultOperationOutput).
|
210 + | /// /* ServerBuilderGenerator.kt:171 */See [`ResponseCodeDefaultOperationOutput`](crate::output::ResponseCodeDefaultOperationOutput).
|
132 211 | pub mod response_code_default_operation_output {
|
133 212 |
|
213 + | /* ServerBuilderGenerator.kt:461 */
|
134 214 | impl ::std::convert::From<Builder> for crate::output::ResponseCodeDefaultOperationOutput {
|
135 215 | fn from(builder: Builder) -> Self {
|
136 216 | builder.build()
|
137 217 | }
|
138 218 | }
|
139 - | /// A builder for [`ResponseCodeDefaultOperationOutput`](crate::output::ResponseCodeDefaultOperationOutput).
|
219 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResponseCodeDefaultOperationOutput`](crate::output::ResponseCodeDefaultOperationOutput).
|
220 + | /* RustType.kt:516 */
|
140 221 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
141 - | pub struct Builder {}
|
222 + | /* ServerBuilderGenerator.kt:211 */
|
223 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
224 + | /* ServerBuilderGenerator.kt:215 */
|
142 225 | impl Builder {
|
143 - | /// Consumes the builder and constructs a [`ResponseCodeDefaultOperationOutput`](crate::output::ResponseCodeDefaultOperationOutput).
|
226 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResponseCodeDefaultOperationOutput`](crate::output::ResponseCodeDefaultOperationOutput).
|
227 + | /* ServerBuilderGenerator.kt:271 */
|
144 228 | pub fn build(self) -> crate::output::ResponseCodeDefaultOperationOutput {
|
145 229 | self.build_enforcing_all_constraints()
|
146 230 | }
|
231 + | /* ServerBuilderGenerator.kt:283 */
|
147 232 | fn build_enforcing_all_constraints(
|
148 233 | self,
|
149 234 | ) -> crate::output::ResponseCodeDefaultOperationOutput {
|
150 - | crate::output::ResponseCodeDefaultOperationOutput {}
|
235 + | /* ServerBuilderGenerator.kt:542 */
|
236 + | crate::output::ResponseCodeDefaultOperationOutput {
|
237 + | /* ServerBuilderGenerator.kt:542 */}
|
238 + | /* ServerBuilderGenerator.kt:283 */
|
151 239 | }
|
240 + | /* ServerBuilderGenerator.kt:215 */
|
152 241 | }
|
242 + |
|
243 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
153 244 | }
|
154 - | /// See [`ResponseCodeHttpFallbackOperationOutput`](crate::output::ResponseCodeHttpFallbackOperationOutput).
|
245 + | /// /* ServerBuilderGenerator.kt:171 */See [`ResponseCodeHttpFallbackOperationOutput`](crate::output::ResponseCodeHttpFallbackOperationOutput).
|
155 246 | pub mod response_code_http_fallback_operation_output {
|
156 247 |
|
248 + | /* ServerBuilderGenerator.kt:461 */
|
157 249 | impl ::std::convert::From<Builder> for crate::output::ResponseCodeHttpFallbackOperationOutput {
|
158 250 | fn from(builder: Builder) -> Self {
|
159 251 | builder.build()
|
160 252 | }
|
161 253 | }
|
162 - | /// A builder for [`ResponseCodeHttpFallbackOperationOutput`](crate::output::ResponseCodeHttpFallbackOperationOutput).
|
254 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResponseCodeHttpFallbackOperationOutput`](crate::output::ResponseCodeHttpFallbackOperationOutput).
|
255 + | /* RustType.kt:516 */
|
163 256 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
164 - | pub struct Builder {}
|
257 + | /* ServerBuilderGenerator.kt:211 */
|
258 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
259 + | /* ServerBuilderGenerator.kt:215 */
|
165 260 | impl Builder {
|
166 - | /// Consumes the builder and constructs a [`ResponseCodeHttpFallbackOperationOutput`](crate::output::ResponseCodeHttpFallbackOperationOutput).
|
261 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResponseCodeHttpFallbackOperationOutput`](crate::output::ResponseCodeHttpFallbackOperationOutput).
|
262 + | /* ServerBuilderGenerator.kt:271 */
|
167 263 | pub fn build(self) -> crate::output::ResponseCodeHttpFallbackOperationOutput {
|
168 264 | self.build_enforcing_all_constraints()
|
169 265 | }
|
266 + | /* ServerBuilderGenerator.kt:283 */
|
170 267 | fn build_enforcing_all_constraints(
|
171 268 | self,
|
172 269 | ) -> crate::output::ResponseCodeHttpFallbackOperationOutput {
|
173 - | crate::output::ResponseCodeHttpFallbackOperationOutput {}
|
270 + | /* ServerBuilderGenerator.kt:542 */
|
271 + | crate::output::ResponseCodeHttpFallbackOperationOutput {
|
272 + | /* ServerBuilderGenerator.kt:542 */}
|
273 + | /* ServerBuilderGenerator.kt:283 */
|
174 274 | }
|
275 + | /* ServerBuilderGenerator.kt:215 */
|
175 276 | }
|
277 + |
|
278 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
176 279 | }
|
177 - | /// See [`ResponseCodeRequiredOperationOutput`](crate::output::ResponseCodeRequiredOperationOutput).
|
280 + | /// /* ServerBuilderGenerator.kt:171 */See [`ResponseCodeRequiredOperationOutput`](crate::output::ResponseCodeRequiredOperationOutput).
|
178 281 | pub mod response_code_required_operation_output {
|
179 282 |
|
283 + | /* RustType.kt:516 */
|
180 284 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
181 - | /// Holds one variant for each of the ways the builder can fail.
|
285 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
286 + | /* RustType.kt:516 */
|
182 287 | #[non_exhaustive]
|
288 + | /* ServerBuilderConstraintViolations.kt:75 */
|
183 289 | #[allow(clippy::enum_variant_names)]
|
184 290 | pub enum ConstraintViolation {
|
185 - | /// `response_code` was not provided but it is required when building `ResponseCodeRequiredOperationOutput`.
|
291 + | /// /* ServerBuilderConstraintViolations.kt:138 */`response_code` was not provided but it is required when building `ResponseCodeRequiredOperationOutput`.
|
292 + | /* ServerBuilderConstraintViolations.kt:143 */
|
186 293 | MissingResponseCode,
|
294 + | /* ServerBuilderConstraintViolations.kt:75 */
|
187 295 | }
|
296 + | /* ServerBuilderConstraintViolations.kt:117 */
|
188 297 | impl ::std::fmt::Display for ConstraintViolation {
|
298 + | /* ServerBuilderConstraintViolations.kt:118 */
|
189 299 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
300 + | /* ServerBuilderConstraintViolations.kt:119 */
|
190 301 | match self {
|
191 - | ConstraintViolation::MissingResponseCode => write!(f, "`response_code` was not provided but it is required when building `ResponseCodeRequiredOperationOutput`"),
|
192 - | }
|
302 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingResponseCode => write!(f, "`response_code` was not provided but it is required when building `ResponseCodeRequiredOperationOutput`"),
|
303 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
304 + | /* ServerBuilderConstraintViolations.kt:118 */
|
193 305 | }
|
306 + | /* ServerBuilderConstraintViolations.kt:117 */
|
194 307 | }
|
308 + | /* ServerBuilderConstraintViolations.kt:84 */
|
195 309 | impl ::std::error::Error for ConstraintViolation {}
|
310 + | /* ServerBuilderGenerator.kt:446 */
|
196 311 | impl ::std::convert::TryFrom<Builder> for crate::output::ResponseCodeRequiredOperationOutput {
|
197 312 | type Error = ConstraintViolation;
|
198 313 |
|
199 314 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
200 315 | builder.build()
|
201 316 | }
|
202 317 | }
|
203 - | /// A builder for [`ResponseCodeRequiredOperationOutput`](crate::output::ResponseCodeRequiredOperationOutput).
|
318 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResponseCodeRequiredOperationOutput`](crate::output::ResponseCodeRequiredOperationOutput).
|
319 + | /* RustType.kt:516 */
|
204 320 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
321 + | /* ServerBuilderGenerator.kt:211 */
|
205 322 | pub struct Builder {
|
323 + | /* ServerBuilderGenerator.kt:308 */
|
206 324 | pub(crate) response_code: ::std::option::Option<i32>,
|
325 + | /* ServerBuilderGenerator.kt:211 */
|
207 326 | }
|
327 + | /* ServerBuilderGenerator.kt:215 */
|
208 328 | impl Builder {
|
329 + | /* ServerBuilderGenerator.kt:331 */
|
209 330 | #[allow(missing_docs)] // documentation missing in model
|
331 + | /* ServerBuilderGenerator.kt:343 */
|
210 332 | pub fn response_code(mut self, input: i32) -> Self {
|
211 - | self.response_code = Some(input);
|
333 + | /* ServerBuilderGenerator.kt:344 */
|
334 + | self.response_code =
|
335 + | /* ServerBuilderGenerator.kt:345 */Some(
|
336 + | /* ServerBuilderGenerator.kt:376 */input
|
337 + | /* ServerBuilderGenerator.kt:345 */)
|
338 + | /* ServerBuilderGenerator.kt:344 */;
|
212 339 | self
|
340 + | /* ServerBuilderGenerator.kt:343 */
|
213 341 | }
|
214 - | /// Consumes the builder and constructs a [`ResponseCodeRequiredOperationOutput`](crate::output::ResponseCodeRequiredOperationOutput).
|
215 - | ///
|
342 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResponseCodeRequiredOperationOutput`](crate::output::ResponseCodeRequiredOperationOutput).
|
343 + | /// /* ServerBuilderGenerator.kt:260 */
|
216 344 | /// The builder fails to construct a [`ResponseCodeRequiredOperationOutput`](crate::output::ResponseCodeRequiredOperationOutput) if a [`ConstraintViolation`] occurs.
|
217 345 | ///
|
346 + | /* ServerBuilderGenerator.kt:271 */
|
218 347 | pub fn build(
|
219 348 | self,
|
220 349 | ) -> Result<crate::output::ResponseCodeRequiredOperationOutput, ConstraintViolation>
|
221 350 | {
|
222 351 | self.build_enforcing_all_constraints()
|
223 352 | }
|
353 + | /* ServerBuilderGenerator.kt:283 */
|
224 354 | fn build_enforcing_all_constraints(
|
225 355 | self,
|
226 356 | ) -> Result<crate::output::ResponseCodeRequiredOperationOutput, ConstraintViolation>
|
227 357 | {
|
228 - | Ok(crate::output::ResponseCodeRequiredOperationOutput {
|
229 - | response_code: self
|
230 - | .response_code
|
231 - | .ok_or(ConstraintViolation::MissingResponseCode)?,
|
232 - | })
|
358 + | /* ServerBuilderGenerator.kt:287 */
|
359 + | Ok(
|
360 + | /* ServerBuilderGenerator.kt:542 */
|
361 + | crate::output::ResponseCodeRequiredOperationOutput {
|
362 + | /* ServerBuilderGenerator.kt:546 */
|
363 + | response_code: self
|
364 + | .response_code
|
365 + | /* ServerBuilderGenerator.kt:569 */
|
366 + | .ok_or(ConstraintViolation::MissingResponseCode)?,
|
367 + | /* ServerBuilderGenerator.kt:542 */
|
368 + | }, /* ServerBuilderGenerator.kt:287 */
|
369 + | )
|
370 + | /* ServerBuilderGenerator.kt:283 */
|
233 371 | }
|
372 + | /* ServerBuilderGenerator.kt:215 */
|
234 373 | }
|
374 + |
|
375 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
235 376 | }
|
236 - | /// See [`RequiredHeaderCollectionOperationOutput`](crate::output::RequiredHeaderCollectionOperationOutput).
|
377 + | /// /* ServerBuilderGenerator.kt:171 */See [`RequiredHeaderCollectionOperationOutput`](crate::output::RequiredHeaderCollectionOperationOutput).
|
237 378 | pub mod required_header_collection_operation_output {
|
238 379 |
|
380 + | /* RustType.kt:516 */
|
239 381 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
240 - | /// Holds one variant for each of the ways the builder can fail.
|
382 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
383 + | /* RustType.kt:516 */
|
241 384 | #[non_exhaustive]
|
385 + | /* ServerBuilderConstraintViolations.kt:75 */
|
242 386 | #[allow(clippy::enum_variant_names)]
|
243 387 | pub enum ConstraintViolation {
|
244 - | /// `required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationOutput`.
|
388 + | /// /* ServerBuilderConstraintViolations.kt:138 */`required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationOutput`.
|
389 + | /* ServerBuilderConstraintViolations.kt:143 */
|
245 390 | MissingRequiredHeaderList,
|
246 - | /// `required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationOutput`.
|
391 + | /// /* ServerBuilderConstraintViolations.kt:138 */`required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationOutput`.
|
392 + | /* ServerBuilderConstraintViolations.kt:143 */
|
247 393 | MissingRequiredHeaderSet,
|
394 + | /* ServerBuilderConstraintViolations.kt:75 */
|
248 395 | }
|
396 + | /* ServerBuilderConstraintViolations.kt:117 */
|
249 397 | impl ::std::fmt::Display for ConstraintViolation {
|
398 + | /* ServerBuilderConstraintViolations.kt:118 */
|
250 399 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
400 + | /* ServerBuilderConstraintViolations.kt:119 */
|
251 401 | match self {
|
252 - | ConstraintViolation::MissingRequiredHeaderList => write!(f, "`required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationOutput`"),
|
253 - | ConstraintViolation::MissingRequiredHeaderSet => write!(f, "`required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationOutput`"),
|
254 - | }
|
402 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRequiredHeaderList => write!(f, "`required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationOutput`"),
|
403 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRequiredHeaderSet => write!(f, "`required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationOutput`"),
|
404 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
405 + | /* ServerBuilderConstraintViolations.kt:118 */
|
255 406 | }
|
407 + | /* ServerBuilderConstraintViolations.kt:117 */
|
256 408 | }
|
409 + | /* ServerBuilderConstraintViolations.kt:84 */
|
257 410 | impl ::std::error::Error for ConstraintViolation {}
|
411 + | /* ServerBuilderGenerator.kt:446 */
|
258 412 | impl ::std::convert::TryFrom<Builder> for crate::output::RequiredHeaderCollectionOperationOutput {
|
259 413 | type Error = ConstraintViolation;
|
260 414 |
|
261 415 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
262 416 | builder.build()
|
263 417 | }
|
264 418 | }
|
265 - | /// A builder for [`RequiredHeaderCollectionOperationOutput`](crate::output::RequiredHeaderCollectionOperationOutput).
|
419 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RequiredHeaderCollectionOperationOutput`](crate::output::RequiredHeaderCollectionOperationOutput).
|
420 + | /* RustType.kt:516 */
|
266 421 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
422 + | /* ServerBuilderGenerator.kt:211 */
|
267 423 | pub struct Builder {
|
424 + | /* ServerBuilderGenerator.kt:308 */
|
268 425 | pub(crate) required_header_list:
|
269 426 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
427 + | /* ServerBuilderGenerator.kt:308 */
|
270 428 | pub(crate) required_header_set: ::std::option::Option<crate::model::HeaderSet>,
|
429 + | /* ServerBuilderGenerator.kt:211 */
|
271 430 | }
|
431 + | /* ServerBuilderGenerator.kt:215 */
|
272 432 | impl Builder {
|
433 + | /* ServerBuilderGenerator.kt:331 */
|
273 434 | #[allow(missing_docs)] // documentation missing in model
|
435 + | /* ServerBuilderGenerator.kt:343 */
|
274 436 | pub fn required_header_list(
|
275 437 | mut self,
|
276 438 | input: ::std::vec::Vec<::std::string::String>,
|
277 439 | ) -> Self {
|
278 - | self.required_header_list = Some(input);
|
440 + | /* ServerBuilderGenerator.kt:344 */
|
441 + | self.required_header_list =
|
442 + | /* ServerBuilderGenerator.kt:345 */Some(
|
443 + | /* ServerBuilderGenerator.kt:376 */input
|
444 + | /* ServerBuilderGenerator.kt:345 */)
|
445 + | /* ServerBuilderGenerator.kt:344 */;
|
279 446 | self
|
447 + | /* ServerBuilderGenerator.kt:343 */
|
280 448 | }
|
449 + | /* ServerBuilderGenerator.kt:331 */
|
281 450 | #[allow(missing_docs)] // documentation missing in model
|
451 + | /* ServerBuilderGenerator.kt:343 */
|
282 452 | pub fn required_header_set(mut self, input: crate::model::HeaderSet) -> Self {
|
283 - | self.required_header_set = Some(input);
|
453 + | /* ServerBuilderGenerator.kt:344 */
|
454 + | self.required_header_set =
|
455 + | /* ServerBuilderGenerator.kt:345 */Some(
|
456 + | /* ServerBuilderGenerator.kt:376 */input
|
457 + | /* ServerBuilderGenerator.kt:345 */)
|
458 + | /* ServerBuilderGenerator.kt:344 */;
|
284 459 | self
|
460 + | /* ServerBuilderGenerator.kt:343 */
|
285 461 | }
|
286 - | /// Consumes the builder and constructs a [`RequiredHeaderCollectionOperationOutput`](crate::output::RequiredHeaderCollectionOperationOutput).
|
287 - | ///
|
462 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RequiredHeaderCollectionOperationOutput`](crate::output::RequiredHeaderCollectionOperationOutput).
|
463 + | /// /* ServerBuilderGenerator.kt:260 */
|
288 464 | /// The builder fails to construct a [`RequiredHeaderCollectionOperationOutput`](crate::output::RequiredHeaderCollectionOperationOutput) if a [`ConstraintViolation`] occurs.
|
289 465 | ///
|
290 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
466 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
467 + | /* ServerBuilderGenerator.kt:271 */
|
291 468 | pub fn build(
|
292 469 | self,
|
293 470 | ) -> Result<crate::output::RequiredHeaderCollectionOperationOutput, ConstraintViolation>
|
294 471 | {
|
295 472 | self.build_enforcing_all_constraints()
|
296 473 | }
|
474 + | /* ServerBuilderGenerator.kt:283 */
|
297 475 | fn build_enforcing_all_constraints(
|
298 476 | self,
|
299 477 | ) -> Result<crate::output::RequiredHeaderCollectionOperationOutput, ConstraintViolation>
|
300 478 | {
|
301 - | Ok(crate::output::RequiredHeaderCollectionOperationOutput {
|
302 - | required_header_list: self
|
303 - | .required_header_list
|
304 - | .ok_or(ConstraintViolation::MissingRequiredHeaderList)?,
|
305 - | required_header_set: self
|
306 - | .required_header_set
|
307 - | .ok_or(ConstraintViolation::MissingRequiredHeaderSet)?,
|
308 - | })
|
479 + | /* ServerBuilderGenerator.kt:287 */
|
480 + | Ok(
|
481 + | /* ServerBuilderGenerator.kt:542 */
|
482 + | crate::output::RequiredHeaderCollectionOperationOutput {
|
483 + | /* ServerBuilderGenerator.kt:546 */
|
484 + | required_header_list: self
|
485 + | .required_header_list
|
486 + | /* ServerBuilderGenerator.kt:569 */
|
487 + | .ok_or(ConstraintViolation::MissingRequiredHeaderList)?,
|
488 + | /* ServerBuilderGenerator.kt:546 */
|
489 + | required_header_set: self
|
490 + | .required_header_set
|
491 + | /* ServerBuilderGenerator.kt:569 */
|
492 + | .ok_or(ConstraintViolation::MissingRequiredHeaderSet)?,
|
493 + | /* ServerBuilderGenerator.kt:542 */
|
494 + | }, /* ServerBuilderGenerator.kt:287 */
|
495 + | )
|
496 + | /* ServerBuilderGenerator.kt:283 */
|
309 497 | }
|
498 + | /* ServerBuilderGenerator.kt:215 */
|
310 499 | }
|
500 + |
|
501 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
311 502 | }
|
312 - | /// See [`RequiredInnerShapeOperationOutput`](crate::output::RequiredInnerShapeOperationOutput).
|
503 + | /// /* ServerBuilderGenerator.kt:171 */See [`RequiredInnerShapeOperationOutput`](crate::output::RequiredInnerShapeOperationOutput).
|
313 504 | pub mod required_inner_shape_operation_output {
|
314 505 |
|
506 + | /* ServerBuilderGenerator.kt:461 */
|
315 507 | impl ::std::convert::From<Builder> for crate::output::RequiredInnerShapeOperationOutput {
|
316 508 | fn from(builder: Builder) -> Self {
|
317 509 | builder.build()
|
318 510 | }
|
319 511 | }
|
320 - | /// A builder for [`RequiredInnerShapeOperationOutput`](crate::output::RequiredInnerShapeOperationOutput).
|
512 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RequiredInnerShapeOperationOutput`](crate::output::RequiredInnerShapeOperationOutput).
|
513 + | /* RustType.kt:516 */
|
321 514 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
515 + | /* ServerBuilderGenerator.kt:211 */
|
322 516 | pub struct Builder {
|
517 + | /* ServerBuilderGenerator.kt:308 */
|
323 518 | pub(crate) inner: ::std::option::Option<crate::model::InnerShape>,
|
519 + | /* ServerBuilderGenerator.kt:211 */
|
324 520 | }
|
521 + | /* ServerBuilderGenerator.kt:215 */
|
325 522 | impl Builder {
|
523 + | /* ServerBuilderGenerator.kt:331 */
|
326 524 | #[allow(missing_docs)] // documentation missing in model
|
525 + | /* ServerBuilderGenerator.kt:343 */
|
327 526 | pub fn inner(mut self, input: ::std::option::Option<crate::model::InnerShape>) -> Self {
|
328 - | self.inner = input;
|
527 + | /* ServerBuilderGenerator.kt:344 */
|
528 + | self.inner =
|
529 + | /* ServerBuilderGenerator.kt:376 */input
|
530 + | /* ServerBuilderGenerator.kt:344 */;
|
329 531 | self
|
532 + | /* ServerBuilderGenerator.kt:343 */
|
330 533 | }
|
331 - | /// Consumes the builder and constructs a [`RequiredInnerShapeOperationOutput`](crate::output::RequiredInnerShapeOperationOutput).
|
534 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RequiredInnerShapeOperationOutput`](crate::output::RequiredInnerShapeOperationOutput).
|
535 + | /* ServerBuilderGenerator.kt:271 */
|
332 536 | pub fn build(self) -> crate::output::RequiredInnerShapeOperationOutput {
|
333 537 | self.build_enforcing_all_constraints()
|
334 538 | }
|
539 + | /* ServerBuilderGenerator.kt:283 */
|
335 540 | fn build_enforcing_all_constraints(
|
336 541 | self,
|
337 542 | ) -> crate::output::RequiredInnerShapeOperationOutput {
|
338 - | crate::output::RequiredInnerShapeOperationOutput { inner: self.inner }
|
543 + | /* ServerBuilderGenerator.kt:542 */
|
544 + | crate::output::RequiredInnerShapeOperationOutput {
|
545 + | /* ServerBuilderGenerator.kt:546 */
|
546 + | inner: self.inner,
|
547 + | /* ServerBuilderGenerator.kt:542 */
|
548 + | }
|
549 + | /* ServerBuilderGenerator.kt:283 */
|
339 550 | }
|
551 + | /* ServerBuilderGenerator.kt:215 */
|
340 552 | }
|
553 + |
|
554 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
341 555 | }
|
342 - | /// See [`TypeComplexityOperationOutput`](crate::output::TypeComplexityOperationOutput).
|
556 + | /// /* ServerBuilderGenerator.kt:171 */See [`TypeComplexityOperationOutput`](crate::output::TypeComplexityOperationOutput).
|
343 557 | pub mod type_complexity_operation_output {
|
344 558 |
|
559 + | /* ServerBuilderGenerator.kt:461 */
|
345 560 | impl ::std::convert::From<Builder> for crate::output::TypeComplexityOperationOutput {
|
346 561 | fn from(builder: Builder) -> Self {
|
347 562 | builder.build()
|
348 563 | }
|
349 564 | }
|
350 - | /// A builder for [`TypeComplexityOperationOutput`](crate::output::TypeComplexityOperationOutput).
|
565 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TypeComplexityOperationOutput`](crate::output::TypeComplexityOperationOutput).
|
566 + | /* RustType.kt:516 */
|
351 567 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
568 + | /* ServerBuilderGenerator.kt:211 */
|
352 569 | pub struct Builder {
|
570 + | /* ServerBuilderGenerator.kt:308 */
|
353 571 | pub(crate) list: ::std::option::Option<
|
354 572 | ::std::vec::Vec<
|
355 573 | ::std::vec::Vec<
|
356 574 | ::std::vec::Vec<
|
357 575 | ::std::collections::HashMap<
|
358 576 | ::std::string::String,
|
359 577 | crate::model::EmptyStructure,
|
360 578 | >,
|
361 579 | >,
|
362 580 | >,
|
363 581 | >,
|
364 582 | >,
|
583 + | /* ServerBuilderGenerator.kt:211 */
|
365 584 | }
|
585 + | /* ServerBuilderGenerator.kt:215 */
|
366 586 | impl Builder {
|
587 + | /* ServerBuilderGenerator.kt:331 */
|
367 588 | #[allow(missing_docs)] // documentation missing in model
|
589 + | /* ServerBuilderGenerator.kt:343 */
|
368 590 | pub fn list(
|
369 591 | mut self,
|
370 592 | input: ::std::option::Option<
|
371 593 | ::std::vec::Vec<
|
372 594 | ::std::vec::Vec<
|
373 595 | ::std::vec::Vec<
|
374 596 | ::std::collections::HashMap<
|
375 597 | ::std::string::String,
|
376 598 | crate::model::EmptyStructure,
|
377 599 | >,
|
378 600 | >,
|
379 601 | >,
|
380 602 | >,
|
381 603 | >,
|
382 604 | ) -> Self {
|
383 - | self.list = input;
|
605 + | /* ServerBuilderGenerator.kt:344 */
|
606 + | self.list =
|
607 + | /* ServerBuilderGenerator.kt:376 */input
|
608 + | /* ServerBuilderGenerator.kt:344 */;
|
384 609 | self
|
610 + | /* ServerBuilderGenerator.kt:343 */
|
385 611 | }
|
386 - | /// Consumes the builder and constructs a [`TypeComplexityOperationOutput`](crate::output::TypeComplexityOperationOutput).
|
612 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TypeComplexityOperationOutput`](crate::output::TypeComplexityOperationOutput).
|
613 + | /* ServerBuilderGenerator.kt:271 */
|
387 614 | pub fn build(self) -> crate::output::TypeComplexityOperationOutput {
|
388 615 | self.build_enforcing_all_constraints()
|
389 616 | }
|
617 + | /* ServerBuilderGenerator.kt:283 */
|
390 618 | fn build_enforcing_all_constraints(self) -> crate::output::TypeComplexityOperationOutput {
|
391 - | crate::output::TypeComplexityOperationOutput { list: self.list }
|
619 + | /* ServerBuilderGenerator.kt:542 */
|
620 + | crate::output::TypeComplexityOperationOutput {
|
621 + | /* ServerBuilderGenerator.kt:546 */
|
622 + | list: self.list,
|
623 + | /* ServerBuilderGenerator.kt:542 */
|
624 + | }
|
625 + | /* ServerBuilderGenerator.kt:283 */
|
392 626 | }
|
627 + | /* ServerBuilderGenerator.kt:215 */
|
393 628 | }
|
629 + |
|
630 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
394 631 | }
|