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(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4 - | pub struct QueryPrecedenceInput {
|
6 + | pub /* StructureGenerator.kt:201 */ struct QueryPrecedenceInput {
|
7 + | /* StructureGenerator.kt:231 */
|
5 8 | #[allow(missing_docs)] // documentation missing in model
|
6 9 | pub foo: ::std::option::Option<::std::string::String>,
|
10 + | /* StructureGenerator.kt:231 */
|
7 11 | #[allow(missing_docs)] // documentation missing in model
|
8 12 | pub baz: ::std::option::Option<
|
9 13 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
10 14 | >,
|
15 + | /* StructureGenerator.kt:201 */
|
11 16 | }
|
17 + | /* StructureGenerator.kt:135 */
|
12 18 | impl QueryPrecedenceInput {
|
19 + | /* StructureGenerator.kt:231 */
|
13 20 | #[allow(missing_docs)] // documentation missing in model
|
21 + | /* StructureGenerator.kt:166 */
|
14 22 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
23 + | /* StructureGenerator.kt:169 */
|
15 24 | self.foo.as_deref()
|
25 + | /* StructureGenerator.kt:166 */
|
16 26 | }
|
27 + | /* StructureGenerator.kt:231 */
|
17 28 | #[allow(missing_docs)] // documentation missing in model
|
29 + | /* StructureGenerator.kt:166 */
|
18 30 | pub fn baz(
|
19 31 | &self,
|
20 32 | ) -> ::std::option::Option<
|
21 33 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
22 34 | > {
|
35 + | /* StructureGenerator.kt:170 */
|
23 36 | self.baz.as_ref()
|
37 + | /* StructureGenerator.kt:166 */
|
24 38 | }
|
39 + | /* StructureGenerator.kt:135 */
|
25 40 | }
|
41 + | /* ServerCodegenVisitor.kt:345 */
|
26 42 | impl QueryPrecedenceInput {
|
27 - | /// Creates a new builder-style object to manufacture [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
43 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
44 + | /* ServerBuilderGenerator.kt:295 */
|
28 45 | pub fn builder() -> crate::input::query_precedence_input::Builder {
|
46 + | /* ServerBuilderGenerator.kt:296 */
|
29 47 | crate::input::query_precedence_input::Builder::default()
|
48 + | /* ServerBuilderGenerator.kt:295 */
|
30 49 | }
|
50 + | /* ServerCodegenVisitor.kt:345 */
|
31 51 | }
|
52 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
32 53 | impl crate::constrained::Constrained for crate::input::QueryPrecedenceInput {
|
33 54 | type Unconstrained = crate::input::query_precedence_input::Builder;
|
34 55 | }
|
35 56 |
|
57 + | /* StructureGenerator.kt:197 */
|
36 58 | #[allow(missing_docs)] // documentation missing in model
|
59 + | /* RustType.kt:516 */
|
37 60 | #[derive(
|
38 61 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
39 62 | )]
|
40 - | pub struct EmptyStructWithContentOnWireOpInput {}
|
63 + | pub /* StructureGenerator.kt:201 */ struct EmptyStructWithContentOnWireOpInput {/* StructureGenerator.kt:201 */}
|
64 + | /* ServerCodegenVisitor.kt:345 */
|
41 65 | impl EmptyStructWithContentOnWireOpInput {
|
42 - | /// Creates a new builder-style object to manufacture [`EmptyStructWithContentOnWireOpInput`](crate::input::EmptyStructWithContentOnWireOpInput).
|
66 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EmptyStructWithContentOnWireOpInput`](crate::input::EmptyStructWithContentOnWireOpInput).
|
67 + | /* ServerBuilderGenerator.kt:295 */
|
43 68 | pub fn builder() -> crate::input::empty_struct_with_content_on_wire_op_input::Builder {
|
69 + | /* ServerBuilderGenerator.kt:296 */
|
44 70 | crate::input::empty_struct_with_content_on_wire_op_input::Builder::default()
|
71 + | /* ServerBuilderGenerator.kt:295 */
|
45 72 | }
|
73 + | /* ServerCodegenVisitor.kt:345 */
|
46 74 | }
|
75 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
47 76 | impl crate::constrained::Constrained for crate::input::EmptyStructWithContentOnWireOpInput {
|
48 77 | type Unconstrained = crate::input::empty_struct_with_content_on_wire_op_input::Builder;
|
49 78 | }
|
50 79 |
|
80 + | /* StructureGenerator.kt:197 */
|
51 81 | #[allow(missing_docs)] // documentation missing in model
|
82 + | /* RustType.kt:516 */
|
52 83 | #[derive(
|
53 84 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
54 85 | )]
|
55 - | pub struct CaseInsensitiveErrorOperationInput {}
|
86 + | pub /* StructureGenerator.kt:201 */ struct CaseInsensitiveErrorOperationInput {/* StructureGenerator.kt:201 */}
|
87 + | /* ServerCodegenVisitor.kt:345 */
|
56 88 | impl CaseInsensitiveErrorOperationInput {
|
57 - | /// Creates a new builder-style object to manufacture [`CaseInsensitiveErrorOperationInput`](crate::input::CaseInsensitiveErrorOperationInput).
|
89 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`CaseInsensitiveErrorOperationInput`](crate::input::CaseInsensitiveErrorOperationInput).
|
90 + | /* ServerBuilderGenerator.kt:295 */
|
58 91 | pub fn builder() -> crate::input::case_insensitive_error_operation_input::Builder {
|
92 + | /* ServerBuilderGenerator.kt:296 */
|
59 93 | crate::input::case_insensitive_error_operation_input::Builder::default()
|
94 + | /* ServerBuilderGenerator.kt:295 */
|
60 95 | }
|
96 + | /* ServerCodegenVisitor.kt:345 */
|
61 97 | }
|
98 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
62 99 | impl crate::constrained::Constrained for crate::input::CaseInsensitiveErrorOperationInput {
|
63 100 | type Unconstrained = crate::input::case_insensitive_error_operation_input::Builder;
|
64 101 | }
|
65 102 |
|
103 + | /* StructureGenerator.kt:197 */
|
66 104 | #[allow(missing_docs)] // documentation missing in model
|
105 + | /* RustType.kt:516 */
|
67 106 | #[derive(
|
68 107 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
69 108 | )]
|
70 - | pub struct NullInNonSparseInput {}
|
109 + | pub /* StructureGenerator.kt:201 */ struct NullInNonSparseInput {/* StructureGenerator.kt:201 */}
|
110 + | /* ServerCodegenVisitor.kt:345 */
|
71 111 | impl NullInNonSparseInput {
|
72 - | /// Creates a new builder-style object to manufacture [`NullInNonSparseInput`](crate::input::NullInNonSparseInput).
|
112 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NullInNonSparseInput`](crate::input::NullInNonSparseInput).
|
113 + | /* ServerBuilderGenerator.kt:295 */
|
73 114 | pub fn builder() -> crate::input::null_in_non_sparse_input::Builder {
|
115 + | /* ServerBuilderGenerator.kt:296 */
|
74 116 | crate::input::null_in_non_sparse_input::Builder::default()
|
117 + | /* ServerBuilderGenerator.kt:295 */
|
75 118 | }
|
119 + | /* ServerCodegenVisitor.kt:345 */
|
76 120 | }
|
121 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
77 122 | impl crate::constrained::Constrained for crate::input::NullInNonSparseInput {
|
78 123 | type Unconstrained = crate::input::null_in_non_sparse_input::Builder;
|
79 124 | }
|
80 125 |
|
126 + | /* StructureGenerator.kt:197 */
|
81 127 | #[allow(missing_docs)] // documentation missing in model
|
128 + | /* RustType.kt:516 */
|
82 129 | #[derive(
|
83 130 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
84 131 | )]
|
85 - | pub struct EscapedStringValuesInput {
|
132 + | pub /* StructureGenerator.kt:201 */ struct EscapedStringValuesInput {
|
133 + | /* StructureGenerator.kt:231 */
|
86 134 | #[allow(missing_docs)] // documentation missing in model
|
87 135 | pub r#enum: ::std::option::Option<crate::model::EnumWithEscapedChars>,
|
136 + | /* StructureGenerator.kt:231 */
|
88 137 | #[allow(missing_docs)] // documentation missing in model
|
89 138 | pub some_string: ::std::option::Option<::std::string::String>,
|
139 + | /* StructureGenerator.kt:201 */
|
90 140 | }
|
141 + | /* StructureGenerator.kt:135 */
|
91 142 | impl EscapedStringValuesInput {
|
143 + | /* StructureGenerator.kt:231 */
|
92 144 | #[allow(missing_docs)] // documentation missing in model
|
145 + | /* StructureGenerator.kt:166 */
|
93 146 | pub fn r#enum(&self) -> ::std::option::Option<&crate::model::EnumWithEscapedChars> {
|
147 + | /* StructureGenerator.kt:170 */
|
94 148 | self.r#enum.as_ref()
|
149 + | /* StructureGenerator.kt:166 */
|
95 150 | }
|
151 + | /* StructureGenerator.kt:231 */
|
96 152 | #[allow(missing_docs)] // documentation missing in model
|
153 + | /* StructureGenerator.kt:166 */
|
97 154 | pub fn some_string(&self) -> ::std::option::Option<&str> {
|
155 + | /* StructureGenerator.kt:169 */
|
98 156 | self.some_string.as_deref()
|
157 + | /* StructureGenerator.kt:166 */
|
99 158 | }
|
159 + | /* StructureGenerator.kt:135 */
|
100 160 | }
|
161 + | /* ServerCodegenVisitor.kt:345 */
|
101 162 | impl EscapedStringValuesInput {
|
102 - | /// Creates a new builder-style object to manufacture [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput).
|
163 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput).
|
164 + | /* ServerBuilderGenerator.kt:295 */
|
103 165 | pub fn builder() -> crate::input::escaped_string_values_input::Builder {
|
166 + | /* ServerBuilderGenerator.kt:296 */
|
104 167 | crate::input::escaped_string_values_input::Builder::default()
|
168 + | /* ServerBuilderGenerator.kt:295 */
|
105 169 | }
|
170 + | /* ServerCodegenVisitor.kt:345 */
|
106 171 | }
|
172 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
107 173 | impl crate::constrained::Constrained for crate::input::EscapedStringValuesInput {
|
108 174 | type Unconstrained = crate::input::escaped_string_values_input::Builder;
|
109 175 | }
|
110 176 |
|
177 + | /* StructureGenerator.kt:197 */
|
111 178 | #[allow(missing_docs)] // documentation missing in model
|
179 + | /* RustType.kt:516 */
|
112 180 | #[derive(
|
113 181 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
114 182 | )]
|
115 - | pub struct PrimitiveIntOpInput {
|
183 + | pub /* StructureGenerator.kt:201 */ struct PrimitiveIntOpInput {
|
184 + | /* StructureGenerator.kt:231 */
|
116 185 | #[allow(missing_docs)] // documentation missing in model
|
117 186 | pub value: i32,
|
187 + | /* StructureGenerator.kt:201 */
|
118 188 | }
|
189 + | /* StructureGenerator.kt:135 */
|
119 190 | impl PrimitiveIntOpInput {
|
191 + | /* StructureGenerator.kt:231 */
|
120 192 | #[allow(missing_docs)] // documentation missing in model
|
193 + | /* StructureGenerator.kt:166 */
|
121 194 | pub fn value(&self) -> i32 {
|
195 + | /* StructureGenerator.kt:168 */
|
122 196 | self.value
|
197 + | /* StructureGenerator.kt:166 */
|
123 198 | }
|
199 + | /* StructureGenerator.kt:135 */
|
124 200 | }
|
201 + | /* ServerCodegenVisitor.kt:345 */
|
125 202 | impl PrimitiveIntOpInput {
|
126 - | /// Creates a new builder-style object to manufacture [`PrimitiveIntOpInput`](crate::input::PrimitiveIntOpInput).
|
203 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`PrimitiveIntOpInput`](crate::input::PrimitiveIntOpInput).
|
204 + | /* ServerBuilderGenerator.kt:295 */
|
127 205 | pub fn builder() -> crate::input::primitive_int_op_input::Builder {
|
206 + | /* ServerBuilderGenerator.kt:296 */
|
128 207 | crate::input::primitive_int_op_input::Builder::default()
|
208 + | /* ServerBuilderGenerator.kt:295 */
|
129 209 | }
|
210 + | /* ServerCodegenVisitor.kt:345 */
|
130 211 | }
|
212 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
131 213 | impl crate::constrained::Constrained for crate::input::PrimitiveIntOpInput {
|
132 214 | type Unconstrained = crate::input::primitive_int_op_input::Builder;
|
133 215 | }
|
134 216 |
|
217 + | /* StructureGenerator.kt:197 */
|
135 218 | #[allow(missing_docs)] // documentation missing in model
|
219 + | /* RustType.kt:516 */
|
136 220 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
137 - | pub struct MapWithEnumKeyOpInput {
|
221 + | pub /* StructureGenerator.kt:201 */ struct MapWithEnumKeyOpInput {
|
222 + | /* StructureGenerator.kt:231 */
|
138 223 | #[allow(missing_docs)] // documentation missing in model
|
139 224 | pub map: ::std::option::Option<
|
140 225 | ::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
|
141 226 | >,
|
227 + | /* StructureGenerator.kt:201 */
|
142 228 | }
|
229 + | /* StructureGenerator.kt:135 */
|
143 230 | impl MapWithEnumKeyOpInput {
|
231 + | /* StructureGenerator.kt:231 */
|
144 232 | #[allow(missing_docs)] // documentation missing in model
|
233 + | /* StructureGenerator.kt:166 */
|
145 234 | pub fn map(
|
146 235 | &self,
|
147 236 | ) -> ::std::option::Option<
|
148 237 | &::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
|
149 238 | > {
|
239 + | /* StructureGenerator.kt:170 */
|
150 240 | self.map.as_ref()
|
241 + | /* StructureGenerator.kt:166 */
|
151 242 | }
|
243 + | /* StructureGenerator.kt:135 */
|
152 244 | }
|
245 + | /* ServerCodegenVisitor.kt:345 */
|
153 246 | impl MapWithEnumKeyOpInput {
|
154 - | /// Creates a new builder-style object to manufacture [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput).
|
247 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput).
|
248 + | /* ServerBuilderGenerator.kt:295 */
|
155 249 | pub fn builder() -> crate::input::map_with_enum_key_op_input::Builder {
|
250 + | /* ServerBuilderGenerator.kt:296 */
|
156 251 | crate::input::map_with_enum_key_op_input::Builder::default()
|
252 + | /* ServerBuilderGenerator.kt:295 */
|
157 253 | }
|
254 + | /* ServerCodegenVisitor.kt:345 */
|
158 255 | }
|
256 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
159 257 | impl crate::constrained::Constrained for crate::input::MapWithEnumKeyOpInput {
|
160 258 | type Unconstrained = crate::input::map_with_enum_key_op_input::Builder;
|
161 259 | }
|
162 260 |
|
261 + | /* StructureGenerator.kt:197 */
|
163 262 | #[allow(missing_docs)] // documentation missing in model
|
263 + | /* RustType.kt:516 */
|
164 264 | #[derive(
|
165 265 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
166 266 | )]
|
167 - | pub struct StatusResponseInput {}
|
267 + | pub /* StructureGenerator.kt:201 */ struct StatusResponseInput {/* StructureGenerator.kt:201 */}
|
268 + | /* ServerCodegenVisitor.kt:345 */
|
168 269 | impl StatusResponseInput {
|
169 - | /// Creates a new builder-style object to manufacture [`StatusResponseInput`](crate::input::StatusResponseInput).
|
270 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StatusResponseInput`](crate::input::StatusResponseInput).
|
271 + | /* ServerBuilderGenerator.kt:295 */
|
170 272 | pub fn builder() -> crate::input::status_response_input::Builder {
|
273 + | /* ServerBuilderGenerator.kt:296 */
|
171 274 | crate::input::status_response_input::Builder::default()
|
275 + | /* ServerBuilderGenerator.kt:295 */
|
172 276 | }
|
277 + | /* ServerCodegenVisitor.kt:345 */
|
173 278 | }
|
279 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
174 280 | impl crate::constrained::Constrained for crate::input::StatusResponseInput {
|
175 281 | type Unconstrained = crate::input::status_response_input::Builder;
|
176 282 | }
|
177 283 |
|
284 + | /* StructureGenerator.kt:197 */
|
178 285 | #[allow(missing_docs)] // documentation missing in model
|
286 + | /* RustType.kt:516 */
|
179 287 | #[derive(
|
180 288 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
181 289 | )]
|
182 - | pub struct EnumQueryInput {
|
290 + | pub /* StructureGenerator.kt:201 */ struct EnumQueryInput {
|
291 + | /* StructureGenerator.kt:231 */
|
183 292 | #[allow(missing_docs)] // documentation missing in model
|
184 293 | pub r#enum: crate::model::StringEnum,
|
294 + | /* StructureGenerator.kt:201 */
|
185 295 | }
|
296 + | /* StructureGenerator.kt:135 */
|
186 297 | impl EnumQueryInput {
|
298 + | /* StructureGenerator.kt:231 */
|
187 299 | #[allow(missing_docs)] // documentation missing in model
|
300 + | /* StructureGenerator.kt:166 */
|
188 301 | pub fn r#enum(&self) -> &crate::model::StringEnum {
|
302 + | /* StructureGenerator.kt:172 */
|
189 303 | &self.r#enum
|
304 + | /* StructureGenerator.kt:166 */
|
190 305 | }
|
306 + | /* StructureGenerator.kt:135 */
|
191 307 | }
|
308 + | /* ServerCodegenVisitor.kt:345 */
|
192 309 | impl EnumQueryInput {
|
193 - | /// Creates a new builder-style object to manufacture [`EnumQueryInput`](crate::input::EnumQueryInput).
|
310 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EnumQueryInput`](crate::input::EnumQueryInput).
|
311 + | /* ServerBuilderGenerator.kt:295 */
|
194 312 | pub fn builder() -> crate::input::enum_query_input::Builder {
|
313 + | /* ServerBuilderGenerator.kt:296 */
|
195 314 | crate::input::enum_query_input::Builder::default()
|
315 + | /* ServerBuilderGenerator.kt:295 */
|
196 316 | }
|
317 + | /* ServerCodegenVisitor.kt:345 */
|
197 318 | }
|
319 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
198 320 | impl crate::constrained::Constrained for crate::input::EnumQueryInput {
|
199 321 | type Unconstrained = crate::input::enum_query_input::Builder;
|
200 322 | }
|
201 323 |
|
324 + | /* StructureGenerator.kt:197 */
|
202 325 | #[allow(missing_docs)] // documentation missing in model
|
326 + | /* RustType.kt:516 */
|
203 327 | #[derive(
|
204 328 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
205 329 | )]
|
206 - | pub struct PrimitiveIntHeaderInput {}
|
330 + | pub /* StructureGenerator.kt:201 */ struct PrimitiveIntHeaderInput {/* StructureGenerator.kt:201 */}
|
331 + | /* ServerCodegenVisitor.kt:345 */
|
207 332 | impl PrimitiveIntHeaderInput {
|
208 - | /// Creates a new builder-style object to manufacture [`PrimitiveIntHeaderInput`](crate::input::PrimitiveIntHeaderInput).
|
333 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`PrimitiveIntHeaderInput`](crate::input::PrimitiveIntHeaderInput).
|
334 + | /* ServerBuilderGenerator.kt:295 */
|
209 335 | pub fn builder() -> crate::input::primitive_int_header_input::Builder {
|
336 + | /* ServerBuilderGenerator.kt:296 */
|
210 337 | crate::input::primitive_int_header_input::Builder::default()
|
338 + | /* ServerBuilderGenerator.kt:295 */
|
211 339 | }
|
340 + | /* ServerCodegenVisitor.kt:345 */
|
212 341 | }
|
342 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
213 343 | impl crate::constrained::Constrained for crate::input::PrimitiveIntHeaderInput {
|
214 344 | type Unconstrained = crate::input::primitive_int_header_input::Builder;
|
215 345 | }
|
216 346 |
|
347 + | /* StructureGenerator.kt:197 */
|
217 348 | #[allow(missing_docs)] // documentation missing in model
|
349 + | /* RustType.kt:516 */
|
218 350 | #[derive(
|
219 351 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
220 352 | )]
|
221 - | pub struct StringPayloadInput {
|
353 + | pub /* StructureGenerator.kt:201 */ struct StringPayloadInput {
|
354 + | /* StructureGenerator.kt:231 */
|
222 355 | #[allow(missing_docs)] // documentation missing in model
|
223 356 | pub payload: ::std::option::Option<::std::string::String>,
|
357 + | /* StructureGenerator.kt:201 */
|
224 358 | }
|
359 + | /* StructureGenerator.kt:135 */
|
225 360 | impl StringPayloadInput {
|
361 + | /* StructureGenerator.kt:231 */
|
226 362 | #[allow(missing_docs)] // documentation missing in model
|
363 + | /* StructureGenerator.kt:166 */
|
227 364 | pub fn payload(&self) -> ::std::option::Option<&str> {
|
365 + | /* StructureGenerator.kt:169 */
|
228 366 | self.payload.as_deref()
|
367 + | /* StructureGenerator.kt:166 */
|
229 368 | }
|
369 + | /* StructureGenerator.kt:135 */
|
230 370 | }
|
371 + | /* ServerCodegenVisitor.kt:345 */
|
231 372 | impl StringPayloadInput {
|
232 - | /// Creates a new builder-style object to manufacture [`StringPayloadInput`](crate::input::StringPayloadInput).
|
373 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StringPayloadInput`](crate::input::StringPayloadInput).
|
374 + | /* ServerBuilderGenerator.kt:295 */
|
233 375 | pub fn builder() -> crate::input::string_payload_input::Builder {
|
376 + | /* ServerBuilderGenerator.kt:296 */
|
234 377 | crate::input::string_payload_input::Builder::default()
|
378 + | /* ServerBuilderGenerator.kt:295 */
|
235 379 | }
|
380 + | /* ServerCodegenVisitor.kt:345 */
|
236 381 | }
|
382 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
237 383 | impl crate::constrained::Constrained for crate::input::StringPayloadInput {
|
238 384 | type Unconstrained = crate::input::string_payload_input::Builder;
|
239 385 | }
|
240 - | /// See [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
386 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
241 387 | pub mod query_precedence_input {
|
242 388 |
|
389 + | /* ServerBuilderGenerator.kt:461 */
|
243 390 | impl ::std::convert::From<Builder> for crate::input::QueryPrecedenceInput {
|
244 391 | fn from(builder: Builder) -> Self {
|
245 392 | builder.build()
|
246 393 | }
|
247 394 | }
|
248 - | /// A builder for [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
395 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
396 + | /* RustType.kt:516 */
|
249 397 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
398 + | /* ServerBuilderGenerator.kt:211 */
|
250 399 | pub struct Builder {
|
400 + | /* ServerBuilderGenerator.kt:308 */
|
251 401 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
402 + | /* ServerBuilderGenerator.kt:308 */
|
252 403 | pub(crate) baz: ::std::option::Option<
|
253 404 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
254 405 | >,
|
406 + | /* ServerBuilderGenerator.kt:211 */
|
255 407 | }
|
408 + | /* ServerBuilderGenerator.kt:215 */
|
256 409 | impl Builder {
|
410 + | /* ServerBuilderGenerator.kt:331 */
|
257 411 | #[allow(missing_docs)] // documentation missing in model
|
412 + | /* ServerBuilderGenerator.kt:343 */
|
258 413 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
259 - | self.foo = input;
|
414 + | /* ServerBuilderGenerator.kt:344 */
|
415 + | self.foo =
|
416 + | /* ServerBuilderGenerator.kt:376 */input
|
417 + | /* ServerBuilderGenerator.kt:344 */;
|
260 418 | self
|
419 + | /* ServerBuilderGenerator.kt:343 */
|
261 420 | }
|
421 + | /* ServerBuilderGenerator.kt:426 */
|
262 422 | #[allow(missing_docs)] // documentation missing in model
|
423 + | /* ServerBuilderGenerator.kt:428 */
|
263 424 | pub(crate) fn set_foo(
|
264 425 | mut self,
|
265 426 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
266 427 | ) -> Self {
|
428 + | /* ServerBuilderGenerator.kt:429 */
|
267 429 | self.foo = input.map(|v| v.into());
|
268 430 | self
|
431 + | /* ServerBuilderGenerator.kt:428 */
|
269 432 | }
|
433 + | /* ServerBuilderGenerator.kt:331 */
|
270 434 | #[allow(missing_docs)] // documentation missing in model
|
435 + | /* ServerBuilderGenerator.kt:343 */
|
271 436 | pub fn baz(
|
272 437 | mut self,
|
273 438 | input: ::std::option::Option<
|
274 439 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
275 440 | >,
|
276 441 | ) -> Self {
|
277 - | self.baz = input;
|
442 + | /* ServerBuilderGenerator.kt:344 */
|
443 + | self.baz =
|
444 + | /* ServerBuilderGenerator.kt:376 */input
|
445 + | /* ServerBuilderGenerator.kt:344 */;
|
278 446 | self
|
447 + | /* ServerBuilderGenerator.kt:343 */
|
279 448 | }
|
449 + | /* ServerBuilderGenerator.kt:426 */
|
280 450 | #[allow(missing_docs)] // documentation missing in model
|
451 + | /* ServerBuilderGenerator.kt:428 */
|
281 452 | pub(crate) fn set_baz(
|
282 453 | mut self,
|
283 454 | input: Option<
|
284 455 | impl ::std::convert::Into<
|
285 456 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
286 457 | >,
|
287 458 | >,
|
288 459 | ) -> Self {
|
460 + | /* ServerBuilderGenerator.kt:429 */
|
289 461 | self.baz = input.map(|v| v.into());
|
290 462 | self
|
463 + | /* ServerBuilderGenerator.kt:428 */
|
291 464 | }
|
292 - | /// Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
465 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
466 + | /* ServerBuilderGenerator.kt:271 */
|
293 467 | pub fn build(self) -> crate::input::QueryPrecedenceInput {
|
294 468 | self.build_enforcing_all_constraints()
|
295 469 | }
|
470 + | /* ServerBuilderGenerator.kt:283 */
|
296 471 | fn build_enforcing_all_constraints(self) -> crate::input::QueryPrecedenceInput {
|
472 + | /* ServerBuilderGenerator.kt:542 */
|
297 473 | crate::input::QueryPrecedenceInput {
|
474 + | /* ServerBuilderGenerator.kt:546 */
|
298 475 | foo: self.foo,
|
476 + | /* ServerBuilderGenerator.kt:546 */
|
299 477 | baz: self.baz,
|
478 + | /* ServerBuilderGenerator.kt:542 */
|
300 479 | }
|
480 + | /* ServerBuilderGenerator.kt:283 */
|
301 481 | }
|
482 + | /* ServerBuilderGenerator.kt:215 */
|
302 483 | }
|
484 + |
|
485 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
303 486 | }
|
304 - | /// See [`EmptyStructWithContentOnWireOpInput`](crate::input::EmptyStructWithContentOnWireOpInput).
|
487 + | /// /* ServerBuilderGenerator.kt:171 */See [`EmptyStructWithContentOnWireOpInput`](crate::input::EmptyStructWithContentOnWireOpInput).
|
305 488 | pub mod empty_struct_with_content_on_wire_op_input {
|
306 489 |
|
490 + | /* ServerBuilderGenerator.kt:461 */
|
307 491 | impl ::std::convert::From<Builder> for crate::input::EmptyStructWithContentOnWireOpInput {
|
308 492 | fn from(builder: Builder) -> Self {
|
309 493 | builder.build()
|
310 494 | }
|
311 495 | }
|
312 - | /// A builder for [`EmptyStructWithContentOnWireOpInput`](crate::input::EmptyStructWithContentOnWireOpInput).
|
496 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EmptyStructWithContentOnWireOpInput`](crate::input::EmptyStructWithContentOnWireOpInput).
|
497 + | /* RustType.kt:516 */
|
313 498 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
314 - | pub struct Builder {}
|
499 + | /* ServerBuilderGenerator.kt:211 */
|
500 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
501 + | /* ServerBuilderGenerator.kt:215 */
|
315 502 | impl Builder {
|
316 - | /// Consumes the builder and constructs a [`EmptyStructWithContentOnWireOpInput`](crate::input::EmptyStructWithContentOnWireOpInput).
|
503 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EmptyStructWithContentOnWireOpInput`](crate::input::EmptyStructWithContentOnWireOpInput).
|
504 + | /* ServerBuilderGenerator.kt:271 */
|
317 505 | pub fn build(self) -> crate::input::EmptyStructWithContentOnWireOpInput {
|
318 506 | self.build_enforcing_all_constraints()
|
319 507 | }
|
508 + | /* ServerBuilderGenerator.kt:283 */
|
320 509 | fn build_enforcing_all_constraints(
|
321 510 | self,
|
322 511 | ) -> crate::input::EmptyStructWithContentOnWireOpInput {
|
323 - | crate::input::EmptyStructWithContentOnWireOpInput {}
|
512 + | /* ServerBuilderGenerator.kt:542 */
|
513 + | crate::input::EmptyStructWithContentOnWireOpInput {
|
514 + | /* ServerBuilderGenerator.kt:542 */}
|
515 + | /* ServerBuilderGenerator.kt:283 */
|
324 516 | }
|
517 + | /* ServerBuilderGenerator.kt:215 */
|
325 518 | }
|
519 + |
|
520 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
326 521 | }
|
327 - | /// See [`CaseInsensitiveErrorOperationInput`](crate::input::CaseInsensitiveErrorOperationInput).
|
522 + | /// /* ServerBuilderGenerator.kt:171 */See [`CaseInsensitiveErrorOperationInput`](crate::input::CaseInsensitiveErrorOperationInput).
|
328 523 | pub mod case_insensitive_error_operation_input {
|
329 524 |
|
525 + | /* ServerBuilderGenerator.kt:461 */
|
330 526 | impl ::std::convert::From<Builder> for crate::input::CaseInsensitiveErrorOperationInput {
|
331 527 | fn from(builder: Builder) -> Self {
|
332 528 | builder.build()
|
333 529 | }
|
334 530 | }
|
335 - | /// A builder for [`CaseInsensitiveErrorOperationInput`](crate::input::CaseInsensitiveErrorOperationInput).
|
531 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`CaseInsensitiveErrorOperationInput`](crate::input::CaseInsensitiveErrorOperationInput).
|
532 + | /* RustType.kt:516 */
|
336 533 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
337 - | pub struct Builder {}
|
534 + | /* ServerBuilderGenerator.kt:211 */
|
535 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
536 + | /* ServerBuilderGenerator.kt:215 */
|
338 537 | impl Builder {
|
339 - | /// Consumes the builder and constructs a [`CaseInsensitiveErrorOperationInput`](crate::input::CaseInsensitiveErrorOperationInput).
|
538 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`CaseInsensitiveErrorOperationInput`](crate::input::CaseInsensitiveErrorOperationInput).
|
539 + | /* ServerBuilderGenerator.kt:271 */
|
340 540 | pub fn build(self) -> crate::input::CaseInsensitiveErrorOperationInput {
|
341 541 | self.build_enforcing_all_constraints()
|
342 542 | }
|
543 + | /* ServerBuilderGenerator.kt:283 */
|
343 544 | fn build_enforcing_all_constraints(
|
344 545 | self,
|
345 546 | ) -> crate::input::CaseInsensitiveErrorOperationInput {
|
346 - | crate::input::CaseInsensitiveErrorOperationInput {}
|
547 + | /* ServerBuilderGenerator.kt:542 */
|
548 + | crate::input::CaseInsensitiveErrorOperationInput {
|
549 + | /* ServerBuilderGenerator.kt:542 */}
|
550 + | /* ServerBuilderGenerator.kt:283 */
|
347 551 | }
|
552 + | /* ServerBuilderGenerator.kt:215 */
|
348 553 | }
|
554 + |
|
555 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
349 556 | }
|
350 - | /// See [`NullInNonSparseInput`](crate::input::NullInNonSparseInput).
|
557 + | /// /* ServerBuilderGenerator.kt:171 */See [`NullInNonSparseInput`](crate::input::NullInNonSparseInput).
|
351 558 | pub mod null_in_non_sparse_input {
|
352 559 |
|
560 + | /* ServerBuilderGenerator.kt:461 */
|
353 561 | impl ::std::convert::From<Builder> for crate::input::NullInNonSparseInput {
|
354 562 | fn from(builder: Builder) -> Self {
|
355 563 | builder.build()
|
356 564 | }
|
357 565 | }
|
358 - | /// A builder for [`NullInNonSparseInput`](crate::input::NullInNonSparseInput).
|
566 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NullInNonSparseInput`](crate::input::NullInNonSparseInput).
|
567 + | /* RustType.kt:516 */
|
359 568 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
360 - | pub struct Builder {}
|
569 + | /* ServerBuilderGenerator.kt:211 */
|
570 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
571 + | /* ServerBuilderGenerator.kt:215 */
|
361 572 | impl Builder {
|
362 - | /// Consumes the builder and constructs a [`NullInNonSparseInput`](crate::input::NullInNonSparseInput).
|
573 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NullInNonSparseInput`](crate::input::NullInNonSparseInput).
|
574 + | /* ServerBuilderGenerator.kt:271 */
|
363 575 | pub fn build(self) -> crate::input::NullInNonSparseInput {
|
364 576 | self.build_enforcing_all_constraints()
|
365 577 | }
|
578 + | /* ServerBuilderGenerator.kt:283 */
|
366 579 | fn build_enforcing_all_constraints(self) -> crate::input::NullInNonSparseInput {
|
367 - | crate::input::NullInNonSparseInput {}
|
580 + | /* ServerBuilderGenerator.kt:542 */
|
581 + | crate::input::NullInNonSparseInput {
|
582 + | /* ServerBuilderGenerator.kt:542 */}
|
583 + | /* ServerBuilderGenerator.kt:283 */
|
368 584 | }
|
585 + | /* ServerBuilderGenerator.kt:215 */
|
369 586 | }
|
587 + |
|
588 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
370 589 | }
|
371 - | /// See [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput).
|
590 + | /// /* ServerBuilderGenerator.kt:171 */See [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput).
|
372 591 | pub mod escaped_string_values_input {
|
373 592 |
|
593 + | /* RustType.kt:516 */
|
374 594 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
375 - | /// Holds one variant for each of the ways the builder can fail.
|
595 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
596 + | /* RustType.kt:516 */
|
376 597 | #[non_exhaustive]
|
598 + | /* ServerBuilderConstraintViolations.kt:75 */
|
377 599 | #[allow(clippy::enum_variant_names)]
|
378 600 | pub enum ConstraintViolation {
|
379 - | /// Constraint violation occurred building member `r#enum` when building `EscapedStringValuesInput`.
|
601 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `r#enum` when building `EscapedStringValuesInput`.
|
602 + | /* RustType.kt:516 */
|
380 603 | #[doc(hidden)]
|
604 + | /* ServerBuilderConstraintViolations.kt:164 */
|
381 605 | Enum(crate::model::enum_with_escaped_chars::ConstraintViolation),
|
606 + | /* ServerBuilderConstraintViolations.kt:75 */
|
382 607 | }
|
608 + | /* ServerBuilderConstraintViolations.kt:117 */
|
383 609 | impl ::std::fmt::Display for ConstraintViolation {
|
610 + | /* ServerBuilderConstraintViolations.kt:118 */
|
384 611 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
612 + | /* ServerBuilderConstraintViolations.kt:119 */
|
385 613 | match self {
|
386 - | ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `EscapedStringValuesInput`"),
|
387 - | }
|
614 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `EscapedStringValuesInput`"),
|
615 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
616 + | /* ServerBuilderConstraintViolations.kt:118 */
|
388 617 | }
|
618 + | /* ServerBuilderConstraintViolations.kt:117 */
|
389 619 | }
|
620 + | /* ServerBuilderConstraintViolations.kt:84 */
|
390 621 | impl ::std::error::Error for ConstraintViolation {}
|
622 + | /* ServerBuilderConstraintViolations.kt:171 */
|
391 623 | impl ConstraintViolation {
|
392 624 | pub(crate) fn as_validation_exception_field(
|
393 625 | self,
|
394 626 | path: ::std::string::String,
|
395 627 | ) -> crate::model::ValidationExceptionField {
|
396 628 | match self {
|
397 629 | ConstraintViolation::Enum(inner) => {
|
398 630 | inner.as_validation_exception_field(path + "/enum")
|
399 631 | }
|
400 632 | }
|
401 633 | }
|
402 634 | }
|
635 + | /* ServerBuilderGenerator.kt:234 */
|
403 636 | impl ::std::convert::From<ConstraintViolation>
|
404 637 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
405 638 | {
|
406 639 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
407 640 | let first_validation_exception_field =
|
408 641 | constraint_violation.as_validation_exception_field("".to_owned());
|
409 642 | let validation_exception = crate::error::ValidationException {
|
410 643 | message: format!(
|
411 644 | "1 validation error detected. {}",
|
412 645 | &first_validation_exception_field.message
|
413 646 | ),
|
414 647 | field_list: Some(vec![first_validation_exception_field]),
|
415 648 | };
|
416 649 | Self::ConstraintViolation(
|
417 650 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
418 651 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
419 652 | )
|
420 653 | }
|
421 654 | }
|
655 + | /* ServerBuilderGenerator.kt:244 */
|
422 656 | impl ::std::convert::From<Builder>
|
423 657 | for crate::constrained::MaybeConstrained<crate::input::EscapedStringValuesInput>
|
424 658 | {
|
425 659 | fn from(builder: Builder) -> Self {
|
426 660 | Self::Unconstrained(builder)
|
427 661 | }
|
428 662 | }
|
663 + | /* ServerBuilderGenerator.kt:446 */
|
429 664 | impl ::std::convert::TryFrom<Builder> for crate::input::EscapedStringValuesInput {
|
430 665 | type Error = ConstraintViolation;
|
431 666 |
|
432 667 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
433 668 | builder.build()
|
434 669 | }
|
435 670 | }
|
436 - | /// A builder for [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput).
|
671 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput).
|
672 + | /* RustType.kt:516 */
|
437 673 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
674 + | /* ServerBuilderGenerator.kt:211 */
|
438 675 | pub struct Builder {
|
676 + | /* ServerBuilderGenerator.kt:308 */
|
439 677 | pub(crate) r#enum: ::std::option::Option<
|
440 678 | crate::constrained::MaybeConstrained<crate::model::EnumWithEscapedChars>,
|
441 679 | >,
|
680 + | /* ServerBuilderGenerator.kt:308 */
|
442 681 | pub(crate) some_string: ::std::option::Option<::std::string::String>,
|
682 + | /* ServerBuilderGenerator.kt:211 */
|
443 683 | }
|
684 + | /* ServerBuilderGenerator.kt:215 */
|
444 685 | impl Builder {
|
686 + | /* ServerBuilderGenerator.kt:331 */
|
445 687 | #[allow(missing_docs)] // documentation missing in model
|
688 + | /* ServerBuilderGenerator.kt:343 */
|
446 689 | pub fn r#enum(
|
447 690 | mut self,
|
448 691 | input: ::std::option::Option<crate::model::EnumWithEscapedChars>,
|
449 692 | ) -> Self {
|
450 - | self.r#enum = input.map(
|
451 - | #[allow(clippy::redundant_closure)]
|
452 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
453 - | );
|
693 + | /* ServerBuilderGenerator.kt:344 */
|
694 + | self.r#enum =
|
695 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
696 + | /* ServerBuilderGenerator.kt:344 */;
|
454 697 | self
|
698 + | /* ServerBuilderGenerator.kt:343 */
|
455 699 | }
|
700 + | /* ServerBuilderGenerator.kt:426 */
|
456 701 | #[allow(missing_docs)] // documentation missing in model
|
702 + | /* ServerBuilderGenerator.kt:428 */
|
457 703 | pub(crate) fn set_enum(
|
458 704 | mut self,
|
459 705 | input: Option<
|
460 706 | impl ::std::convert::Into<
|
461 707 | crate::constrained::MaybeConstrained<crate::model::EnumWithEscapedChars>,
|
462 708 | >,
|
463 709 | >,
|
464 710 | ) -> Self {
|
711 + | /* ServerBuilderGenerator.kt:429 */
|
465 712 | self.r#enum = input.map(|v| v.into());
|
466 713 | self
|
714 + | /* ServerBuilderGenerator.kt:428 */
|
467 715 | }
|
716 + | /* ServerBuilderGenerator.kt:331 */
|
468 717 | #[allow(missing_docs)] // documentation missing in model
|
718 + | /* ServerBuilderGenerator.kt:343 */
|
469 719 | pub fn some_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
470 - | self.some_string = input;
|
720 + | /* ServerBuilderGenerator.kt:344 */
|
721 + | self.some_string =
|
722 + | /* ServerBuilderGenerator.kt:376 */input
|
723 + | /* ServerBuilderGenerator.kt:344 */;
|
471 724 | self
|
725 + | /* ServerBuilderGenerator.kt:343 */
|
472 726 | }
|
727 + | /* ServerBuilderGenerator.kt:426 */
|
473 728 | #[allow(missing_docs)] // documentation missing in model
|
729 + | /* ServerBuilderGenerator.kt:428 */
|
474 730 | pub(crate) fn set_some_string(
|
475 731 | mut self,
|
476 732 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
477 733 | ) -> Self {
|
734 + | /* ServerBuilderGenerator.kt:429 */
|
478 735 | self.some_string = input.map(|v| v.into());
|
479 736 | self
|
737 + | /* ServerBuilderGenerator.kt:428 */
|
480 738 | }
|
481 - | /// Consumes the builder and constructs a [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput).
|
482 - | ///
|
739 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput).
|
740 + | /// /* ServerBuilderGenerator.kt:260 */
|
483 741 | /// The builder fails to construct a [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput) if a [`ConstraintViolation`] occurs.
|
484 742 | ///
|
743 + | /* ServerBuilderGenerator.kt:271 */
|
485 744 | pub fn build(self) -> Result<crate::input::EscapedStringValuesInput, ConstraintViolation> {
|
486 745 | self.build_enforcing_all_constraints()
|
487 746 | }
|
747 + | /* ServerBuilderGenerator.kt:283 */
|
488 748 | fn build_enforcing_all_constraints(
|
489 749 | self,
|
490 750 | ) -> Result<crate::input::EscapedStringValuesInput, ConstraintViolation> {
|
491 - | Ok(crate::input::EscapedStringValuesInput {
|
751 + | /* ServerBuilderGenerator.kt:287 */
|
752 + | Ok(
|
753 + | /* ServerBuilderGenerator.kt:542 */
|
754 + | crate::input::EscapedStringValuesInput {
|
755 + | /* ServerBuilderGenerator.kt:546 */
|
492 756 | r#enum: self
|
493 757 | .r#enum
|
758 + | /* ServerBuilderGenerator.kt:602 */
|
494 759 | .map(|v| match v {
|
495 760 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
496 761 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
497 762 | })
|
763 + | /* ServerBuilderGenerator.kt:614 */
|
498 764 | .map(|res| res.map_err(ConstraintViolation::Enum))
|
499 765 | .transpose()?,
|
766 + | /* ServerBuilderGenerator.kt:546 */
|
500 767 | some_string: self.some_string,
|
501 - | })
|
768 + | /* ServerBuilderGenerator.kt:542 */
|
769 + | }, /* ServerBuilderGenerator.kt:287 */
|
770 + | )
|
771 + | /* ServerBuilderGenerator.kt:283 */
|
502 772 | }
|
773 + | /* ServerBuilderGenerator.kt:215 */
|
503 774 | }
|
775 + |
|
776 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
504 777 | }
|
505 - | /// See [`PrimitiveIntOpInput`](crate::input::PrimitiveIntOpInput).
|
778 + | /// /* ServerBuilderGenerator.kt:171 */See [`PrimitiveIntOpInput`](crate::input::PrimitiveIntOpInput).
|
506 779 | pub mod primitive_int_op_input {
|
507 780 |
|
781 + | /* ServerBuilderGenerator.kt:461 */
|
508 782 | impl ::std::convert::From<Builder> for crate::input::PrimitiveIntOpInput {
|
509 783 | fn from(builder: Builder) -> Self {
|
510 784 | builder.build()
|
511 785 | }
|
512 786 | }
|
513 - | /// A builder for [`PrimitiveIntOpInput`](crate::input::PrimitiveIntOpInput).
|
787 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PrimitiveIntOpInput`](crate::input::PrimitiveIntOpInput).
|
788 + | /* RustType.kt:516 */
|
514 789 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
790 + | /* ServerBuilderGenerator.kt:211 */
|
515 791 | pub struct Builder {
|
792 + | /* ServerBuilderGenerator.kt:308 */
|
516 793 | pub(crate) value: ::std::option::Option<i32>,
|
794 + | /* ServerBuilderGenerator.kt:211 */
|
517 795 | }
|
796 + | /* ServerBuilderGenerator.kt:215 */
|
518 797 | impl Builder {
|
798 + | /* ServerBuilderGenerator.kt:331 */
|
519 799 | #[allow(missing_docs)] // documentation missing in model
|
800 + | /* ServerBuilderGenerator.kt:343 */
|
520 801 | pub fn value(mut self, input: i32) -> Self {
|
521 - | self.value = Some(input);
|
802 + | /* ServerBuilderGenerator.kt:344 */
|
803 + | self.value =
|
804 + | /* ServerBuilderGenerator.kt:345 */Some(
|
805 + | /* ServerBuilderGenerator.kt:376 */input
|
806 + | /* ServerBuilderGenerator.kt:345 */)
|
807 + | /* ServerBuilderGenerator.kt:344 */;
|
522 808 | self
|
809 + | /* ServerBuilderGenerator.kt:343 */
|
523 810 | }
|
811 + | /* ServerBuilderGenerator.kt:426 */
|
524 812 | #[allow(missing_docs)] // documentation missing in model
|
813 + | /* ServerBuilderGenerator.kt:428 */
|
525 814 | pub(crate) fn set_value(mut self, input: impl ::std::convert::Into<i32>) -> Self {
|
815 + | /* ServerBuilderGenerator.kt:429 */
|
526 816 | self.value = Some(input.into());
|
527 817 | self
|
818 + | /* ServerBuilderGenerator.kt:428 */
|
528 819 | }
|
529 - | /// Consumes the builder and constructs a [`PrimitiveIntOpInput`](crate::input::PrimitiveIntOpInput).
|
820 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PrimitiveIntOpInput`](crate::input::PrimitiveIntOpInput).
|
821 + | /* ServerBuilderGenerator.kt:271 */
|
530 822 | pub fn build(self) -> crate::input::PrimitiveIntOpInput {
|
531 823 | self.build_enforcing_all_constraints()
|
532 824 | }
|
825 + | /* ServerBuilderGenerator.kt:283 */
|
533 826 | fn build_enforcing_all_constraints(self) -> crate::input::PrimitiveIntOpInput {
|
827 + | /* ServerBuilderGenerator.kt:542 */
|
534 828 | crate::input::PrimitiveIntOpInput {
|
535 - | value: self.value.unwrap_or(0i32),
|
829 + | /* ServerBuilderGenerator.kt:546 */
|
830 + | value: self
|
831 + | .value
|
832 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
833 + | .unwrap_or(0i32),
|
834 + | /* ServerBuilderGenerator.kt:542 */
|
536 835 | }
|
836 + | /* ServerBuilderGenerator.kt:283 */
|
537 837 | }
|
838 + | /* ServerBuilderGenerator.kt:215 */
|
538 839 | }
|
840 + |
|
841 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
539 842 | }
|
540 - | /// See [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput).
|
843 + | /// /* ServerBuilderGenerator.kt:171 */See [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput).
|
541 844 | pub mod map_with_enum_key_op_input {
|
542 845 |
|
846 + | /* RustType.kt:516 */
|
543 847 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
544 - | /// Holds one variant for each of the ways the builder can fail.
|
848 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
849 + | /* RustType.kt:516 */
|
545 850 | #[non_exhaustive]
|
851 + | /* ServerBuilderConstraintViolations.kt:75 */
|
546 852 | #[allow(clippy::enum_variant_names)]
|
547 853 | pub enum ConstraintViolation {
|
548 - | /// Constraint violation occurred building member `map` when building `MapWithEnumKeyOpInput`.
|
854 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map` when building `MapWithEnumKeyOpInput`.
|
855 + | /* RustType.kt:516 */
|
549 856 | #[doc(hidden)]
|
857 + | /* ServerBuilderConstraintViolations.kt:164 */
|
550 858 | Map(crate::model::map_with_enum_key::ConstraintViolation),
|
859 + | /* ServerBuilderConstraintViolations.kt:75 */
|
551 860 | }
|
861 + | /* ServerBuilderConstraintViolations.kt:117 */
|
552 862 | impl ::std::fmt::Display for ConstraintViolation {
|
863 + | /* ServerBuilderConstraintViolations.kt:118 */
|
553 864 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
865 + | /* ServerBuilderConstraintViolations.kt:119 */
|
554 866 | match self {
|
555 - | ConstraintViolation::Map(_) => write!(f, "constraint violation occurred building member `map` when building `MapWithEnumKeyOpInput`"),
|
556 - | }
|
867 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Map(_) => write!(f, "constraint violation occurred building member `map` when building `MapWithEnumKeyOpInput`"),
|
868 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
869 + | /* ServerBuilderConstraintViolations.kt:118 */
|
557 870 | }
|
871 + | /* ServerBuilderConstraintViolations.kt:117 */
|
558 872 | }
|
873 + | /* ServerBuilderConstraintViolations.kt:84 */
|
559 874 | impl ::std::error::Error for ConstraintViolation {}
|
875 + | /* ServerBuilderConstraintViolations.kt:171 */
|
560 876 | impl ConstraintViolation {
|
561 877 | pub(crate) fn as_validation_exception_field(
|
562 878 | self,
|
563 879 | path: ::std::string::String,
|
564 880 | ) -> crate::model::ValidationExceptionField {
|
565 881 | match self {
|
566 882 | ConstraintViolation::Map(inner) => {
|
567 883 | inner.as_validation_exception_field(path + "/map")
|
568 884 | }
|
569 885 | }
|
570 886 | }
|
571 887 | }
|
888 + | /* ServerBuilderGenerator.kt:234 */
|
572 889 | impl ::std::convert::From<ConstraintViolation>
|
573 890 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
574 891 | {
|
575 892 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
576 893 | let first_validation_exception_field =
|
577 894 | constraint_violation.as_validation_exception_field("".to_owned());
|
578 895 | let validation_exception = crate::error::ValidationException {
|
579 896 | message: format!(
|
580 897 | "1 validation error detected. {}",
|
581 898 | &first_validation_exception_field.message
|
582 899 | ),
|
583 900 | field_list: Some(vec![first_validation_exception_field]),
|
584 901 | };
|
585 902 | Self::ConstraintViolation(
|
586 903 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
587 904 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
588 905 | )
|
589 906 | }
|
590 907 | }
|
908 + | /* ServerBuilderGenerator.kt:244 */
|
591 909 | impl ::std::convert::From<Builder>
|
592 910 | for crate::constrained::MaybeConstrained<crate::input::MapWithEnumKeyOpInput>
|
593 911 | {
|
594 912 | fn from(builder: Builder) -> Self {
|
595 913 | Self::Unconstrained(builder)
|
596 914 | }
|
597 915 | }
|
916 + | /* ServerBuilderGenerator.kt:446 */
|
598 917 | impl ::std::convert::TryFrom<Builder> for crate::input::MapWithEnumKeyOpInput {
|
599 918 | type Error = ConstraintViolation;
|
600 919 |
|
601 920 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
602 921 | builder.build()
|
603 922 | }
|
604 923 | }
|
605 - | /// A builder for [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput).
|
924 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput).
|
925 + | /* RustType.kt:516 */
|
606 926 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
927 + | /* ServerBuilderGenerator.kt:211 */
|
607 928 | pub struct Builder {
|
929 + | /* ServerBuilderGenerator.kt:308 */
|
608 930 | pub(crate) map: ::std::option::Option<
|
609 931 | crate::constrained::MaybeConstrained<
|
610 932 | crate::constrained::map_with_enum_key_constrained::MapWithEnumKeyConstrained,
|
611 933 | >,
|
612 934 | >,
|
935 + | /* ServerBuilderGenerator.kt:211 */
|
613 936 | }
|
937 + | /* ServerBuilderGenerator.kt:215 */
|
614 938 | impl Builder {
|
939 + | /* ServerBuilderGenerator.kt:331 */
|
615 940 | #[allow(missing_docs)] // documentation missing in model
|
941 + | /* ServerBuilderGenerator.kt:343 */
|
616 942 | pub fn map(
|
617 943 | mut self,
|
618 944 | input: ::std::option::Option<
|
619 945 | ::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
|
620 946 | >,
|
621 947 | ) -> Self {
|
622 - | self.map = input.map(
|
623 - | #[allow(clippy::redundant_closure)]
|
624 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
625 - | );
|
948 + | /* ServerBuilderGenerator.kt:344 */
|
949 + | self.map =
|
950 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
951 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
952 + | /* ServerBuilderGenerator.kt:369 */)
|
953 + | /* ServerBuilderGenerator.kt:344 */;
|
626 954 | self
|
955 + | /* ServerBuilderGenerator.kt:343 */
|
627 956 | }
|
957 + | /* ServerBuilderGenerator.kt:426 */
|
628 958 | #[allow(missing_docs)] // documentation missing in model
|
959 + | /* ServerBuilderGenerator.kt:428 */
|
629 960 | pub(crate) fn set_map(
|
630 961 | mut self,
|
631 962 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_with_enum_key_constrained::MapWithEnumKeyConstrained>>>,
|
632 963 | ) -> Self {
|
964 + | /* ServerBuilderGenerator.kt:429 */
|
633 965 | self.map = input.map(|v| v.into());
|
634 966 | self
|
967 + | /* ServerBuilderGenerator.kt:428 */
|
635 968 | }
|
636 - | /// Consumes the builder and constructs a [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput).
|
637 - | ///
|
969 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput).
|
970 + | /// /* ServerBuilderGenerator.kt:260 */
|
638 971 | /// The builder fails to construct a [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput) if a [`ConstraintViolation`] occurs.
|
639 972 | ///
|
973 + | /* ServerBuilderGenerator.kt:271 */
|
640 974 | pub fn build(self) -> Result<crate::input::MapWithEnumKeyOpInput, ConstraintViolation> {
|
641 975 | self.build_enforcing_all_constraints()
|
642 976 | }
|
977 + | /* ServerBuilderGenerator.kt:283 */
|
643 978 | fn build_enforcing_all_constraints(
|
644 979 | self,
|
645 980 | ) -> Result<crate::input::MapWithEnumKeyOpInput, ConstraintViolation> {
|
646 - | Ok(crate::input::MapWithEnumKeyOpInput {
|
981 + | /* ServerBuilderGenerator.kt:287 */
|
982 + | Ok(
|
983 + | /* ServerBuilderGenerator.kt:542 */
|
984 + | crate::input::MapWithEnumKeyOpInput {
|
985 + | /* ServerBuilderGenerator.kt:546 */
|
647 986 | map: self
|
648 987 | .map
|
988 + | /* ServerBuilderGenerator.kt:602 */
|
649 989 | .map(|v| match v {
|
650 990 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
651 991 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
652 992 | })
|
993 + | /* ServerBuilderGenerator.kt:614 */
|
653 994 | .map(|res| res.map(|v| v.into()).map_err(ConstraintViolation::Map))
|
654 995 | .transpose()?,
|
655 - | })
|
996 + | /* ServerBuilderGenerator.kt:542 */
|
997 + | }, /* ServerBuilderGenerator.kt:287 */
|
998 + | )
|
999 + | /* ServerBuilderGenerator.kt:283 */
|
656 1000 | }
|
1001 + | /* ServerBuilderGenerator.kt:215 */
|
657 1002 | }
|
1003 + |
|
1004 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
658 1005 | }
|
659 - | /// See [`StatusResponseInput`](crate::input::StatusResponseInput).
|
1006 + | /// /* ServerBuilderGenerator.kt:171 */See [`StatusResponseInput`](crate::input::StatusResponseInput).
|
660 1007 | pub mod status_response_input {
|
661 1008 |
|
1009 + | /* ServerBuilderGenerator.kt:461 */
|
662 1010 | impl ::std::convert::From<Builder> for crate::input::StatusResponseInput {
|
663 1011 | fn from(builder: Builder) -> Self {
|
664 1012 | builder.build()
|
665 1013 | }
|
666 1014 | }
|
667 - | /// A builder for [`StatusResponseInput`](crate::input::StatusResponseInput).
|
1015 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StatusResponseInput`](crate::input::StatusResponseInput).
|
1016 + | /* RustType.kt:516 */
|
668 1017 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
669 - | pub struct Builder {}
|
1018 + | /* ServerBuilderGenerator.kt:211 */
|
1019 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
1020 + | /* ServerBuilderGenerator.kt:215 */
|
670 1021 | impl Builder {
|
671 - | /// Consumes the builder and constructs a [`StatusResponseInput`](crate::input::StatusResponseInput).
|
1022 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StatusResponseInput`](crate::input::StatusResponseInput).
|
1023 + | /* ServerBuilderGenerator.kt:271 */
|
672 1024 | pub fn build(self) -> crate::input::StatusResponseInput {
|
673 1025 | self.build_enforcing_all_constraints()
|
674 1026 | }
|
1027 + | /* ServerBuilderGenerator.kt:283 */
|
675 1028 | fn build_enforcing_all_constraints(self) -> crate::input::StatusResponseInput {
|
676 - | crate::input::StatusResponseInput {}
|
1029 + | /* ServerBuilderGenerator.kt:542 */
|
1030 + | crate::input::StatusResponseInput {
|
1031 + | /* ServerBuilderGenerator.kt:542 */}
|
1032 + | /* ServerBuilderGenerator.kt:283 */
|
677 1033 | }
|
1034 + | /* ServerBuilderGenerator.kt:215 */
|
678 1035 | }
|
1036 + |
|
1037 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
679 1038 | }
|
680 - | /// See [`EnumQueryInput`](crate::input::EnumQueryInput).
|
1039 + | /// /* ServerBuilderGenerator.kt:171 */See [`EnumQueryInput`](crate::input::EnumQueryInput).
|
681 1040 | pub mod enum_query_input {
|
682 1041 |
|
1042 + | /* RustType.kt:516 */
|
683 1043 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
684 - | /// Holds one variant for each of the ways the builder can fail.
|
1044 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1045 + | /* RustType.kt:516 */
|
685 1046 | #[non_exhaustive]
|
1047 + | /* ServerBuilderConstraintViolations.kt:75 */
|
686 1048 | #[allow(clippy::enum_variant_names)]
|
687 1049 | pub enum ConstraintViolation {
|
688 - | /// `r#enum` was not provided but it is required when building `EnumQueryInput`.
|
1050 + | /// /* ServerBuilderConstraintViolations.kt:138 */`r#enum` was not provided but it is required when building `EnumQueryInput`.
|
1051 + | /* ServerBuilderConstraintViolations.kt:143 */
|
689 1052 | MissingEnum,
|
690 - | /// Constraint violation occurred building member `r#enum` when building `EnumQueryInput`.
|
1053 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `r#enum` when building `EnumQueryInput`.
|
1054 + | /* RustType.kt:516 */
|
691 1055 | #[doc(hidden)]
|
1056 + | /* ServerBuilderConstraintViolations.kt:164 */
|
692 1057 | Enum(crate::model::string_enum::ConstraintViolation),
|
1058 + | /* ServerBuilderConstraintViolations.kt:75 */
|
693 1059 | }
|
1060 + | /* ServerBuilderConstraintViolations.kt:117 */
|
694 1061 | impl ::std::fmt::Display for ConstraintViolation {
|
1062 + | /* ServerBuilderConstraintViolations.kt:118 */
|
695 1063 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1064 + | /* ServerBuilderConstraintViolations.kt:119 */
|
696 1065 | match self {
|
697 - | ConstraintViolation::MissingEnum => write!(f, "`r#enum` was not provided but it is required when building `EnumQueryInput`"),
|
698 - | ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `EnumQueryInput`"),
|
699 - | }
|
1066 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEnum => write!(f, "`r#enum` was not provided but it is required when building `EnumQueryInput`"),
|
1067 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `EnumQueryInput`"),
|
1068 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1069 + | /* ServerBuilderConstraintViolations.kt:118 */
|
700 1070 | }
|
1071 + | /* ServerBuilderConstraintViolations.kt:117 */
|
701 1072 | }
|
1073 + | /* ServerBuilderConstraintViolations.kt:84 */
|
702 1074 | impl ::std::error::Error for ConstraintViolation {}
|
1075 + | /* ServerBuilderConstraintViolations.kt:171 */
|
703 1076 | impl ConstraintViolation {
|
704 1077 | pub(crate) fn as_validation_exception_field(
|
705 1078 | self,
|
706 1079 | path: ::std::string::String,
|
707 1080 | ) -> crate::model::ValidationExceptionField {
|
708 1081 | match self {
|
709 1082 | ConstraintViolation::MissingEnum => crate::model::ValidationExceptionField {
|
710 1083 | message: format!(
|
711 1084 | "Value at '{}/enum' failed to satisfy constraint: Member must not be null",
|
712 1085 | path
|
713 1086 | ),
|
714 1087 | path: path + "/enum",
|
715 1088 | },
|
716 1089 | ConstraintViolation::Enum(inner) => {
|
717 1090 | inner.as_validation_exception_field(path + "/enum")
|
718 1091 | }
|
719 1092 | }
|
720 1093 | }
|
721 1094 | }
|
1095 + | /* ServerBuilderGenerator.kt:234 */
|
722 1096 | impl ::std::convert::From<ConstraintViolation>
|
723 1097 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
724 1098 | {
|
725 1099 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
726 1100 | let first_validation_exception_field =
|
727 1101 | constraint_violation.as_validation_exception_field("".to_owned());
|
728 1102 | let validation_exception = crate::error::ValidationException {
|
729 1103 | message: format!(
|
730 1104 | "1 validation error detected. {}",
|
731 1105 | &first_validation_exception_field.message
|
732 1106 | ),
|
733 1107 | field_list: Some(vec![first_validation_exception_field]),
|
734 1108 | };
|
735 1109 | Self::ConstraintViolation(
|
736 1110 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
737 1111 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
738 1112 | )
|
739 1113 | }
|
740 1114 | }
|
1115 + | /* ServerBuilderGenerator.kt:244 */
|
741 1116 | impl ::std::convert::From<Builder>
|
742 1117 | for crate::constrained::MaybeConstrained<crate::input::EnumQueryInput>
|
743 1118 | {
|
744 1119 | fn from(builder: Builder) -> Self {
|
745 1120 | Self::Unconstrained(builder)
|
746 1121 | }
|
747 1122 | }
|
1123 + | /* ServerBuilderGenerator.kt:446 */
|
748 1124 | impl ::std::convert::TryFrom<Builder> for crate::input::EnumQueryInput {
|
749 1125 | type Error = ConstraintViolation;
|
750 1126 |
|
751 1127 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
752 1128 | builder.build()
|
753 1129 | }
|
754 1130 | }
|
755 - | /// A builder for [`EnumQueryInput`](crate::input::EnumQueryInput).
|
1131 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EnumQueryInput`](crate::input::EnumQueryInput).
|
1132 + | /* RustType.kt:516 */
|
756 1133 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1134 + | /* ServerBuilderGenerator.kt:211 */
|
757 1135 | pub struct Builder {
|
1136 + | /* ServerBuilderGenerator.kt:308 */
|
758 1137 | pub(crate) r#enum:
|
759 1138 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringEnum>>,
|
1139 + | /* ServerBuilderGenerator.kt:211 */
|
760 1140 | }
|
1141 + | /* ServerBuilderGenerator.kt:215 */
|
761 1142 | impl Builder {
|
1143 + | /* ServerBuilderGenerator.kt:331 */
|
762 1144 | #[allow(missing_docs)] // documentation missing in model
|
1145 + | /* ServerBuilderGenerator.kt:343 */
|
763 1146 | pub fn r#enum(mut self, input: crate::model::StringEnum) -> Self {
|
764 - | self.r#enum = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
1147 + | /* ServerBuilderGenerator.kt:344 */
|
1148 + | self.r#enum =
|
1149 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1150 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
1151 + | /* ServerBuilderGenerator.kt:345 */)
|
1152 + | /* ServerBuilderGenerator.kt:344 */;
|
765 1153 | self
|
1154 + | /* ServerBuilderGenerator.kt:343 */
|
766 1155 | }
|
1156 + | /* ServerBuilderGenerator.kt:426 */
|
767 1157 | #[allow(missing_docs)] // documentation missing in model
|
1158 + | /* ServerBuilderGenerator.kt:428 */
|
768 1159 | pub(crate) fn set_enum(
|
769 1160 | mut self,
|
770 1161 | input: impl ::std::convert::Into<
|
771 1162 | crate::constrained::MaybeConstrained<crate::model::StringEnum>,
|
772 1163 | >,
|
773 1164 | ) -> Self {
|
1165 + | /* ServerBuilderGenerator.kt:429 */
|
774 1166 | self.r#enum = Some(input.into());
|
775 1167 | self
|
1168 + | /* ServerBuilderGenerator.kt:428 */
|
776 1169 | }
|
777 - | /// Consumes the builder and constructs a [`EnumQueryInput`](crate::input::EnumQueryInput).
|
778 - | ///
|
1170 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EnumQueryInput`](crate::input::EnumQueryInput).
|
1171 + | /// /* ServerBuilderGenerator.kt:260 */
|
779 1172 | /// The builder fails to construct a [`EnumQueryInput`](crate::input::EnumQueryInput) if a [`ConstraintViolation`] occurs.
|
780 1173 | ///
|
781 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
1174 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
1175 + | /* ServerBuilderGenerator.kt:271 */
|
782 1176 | pub fn build(self) -> Result<crate::input::EnumQueryInput, ConstraintViolation> {
|
783 1177 | self.build_enforcing_all_constraints()
|
784 1178 | }
|
1179 + | /* ServerBuilderGenerator.kt:283 */
|
785 1180 | fn build_enforcing_all_constraints(
|
786 1181 | self,
|
787 1182 | ) -> Result<crate::input::EnumQueryInput, ConstraintViolation> {
|
788 - | Ok(crate::input::EnumQueryInput {
|
1183 + | /* ServerBuilderGenerator.kt:287 */
|
1184 + | Ok(
|
1185 + | /* ServerBuilderGenerator.kt:542 */
|
1186 + | crate::input::EnumQueryInput {
|
1187 + | /* ServerBuilderGenerator.kt:546 */
|
789 1188 | r#enum: self
|
790 1189 | .r#enum
|
1190 + | /* ServerBuilderGenerator.kt:602 */
|
791 1191 | .map(|v| match v {
|
792 1192 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
793 1193 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
794 1194 | })
|
1195 + | /* ServerBuilderGenerator.kt:614 */
|
795 1196 | .map(|res| res.map_err(ConstraintViolation::Enum))
|
796 1197 | .transpose()?
|
1198 + | /* ServerBuilderGenerator.kt:569 */
|
797 1199 | .ok_or(ConstraintViolation::MissingEnum)?,
|
798 - | })
|
1200 + | /* ServerBuilderGenerator.kt:542 */
|
1201 + | }, /* ServerBuilderGenerator.kt:287 */
|
1202 + | )
|
1203 + | /* ServerBuilderGenerator.kt:283 */
|
799 1204 | }
|
1205 + | /* ServerBuilderGenerator.kt:215 */
|
800 1206 | }
|
1207 + |
|
1208 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
801 1209 | }
|
802 - | /// See [`PrimitiveIntHeaderInput`](crate::input::PrimitiveIntHeaderInput).
|
1210 + | /// /* ServerBuilderGenerator.kt:171 */See [`PrimitiveIntHeaderInput`](crate::input::PrimitiveIntHeaderInput).
|
803 1211 | pub mod primitive_int_header_input {
|
804 1212 |
|
1213 + | /* ServerBuilderGenerator.kt:461 */
|
805 1214 | impl ::std::convert::From<Builder> for crate::input::PrimitiveIntHeaderInput {
|
806 1215 | fn from(builder: Builder) -> Self {
|
807 1216 | builder.build()
|
808 1217 | }
|
809 1218 | }
|
810 - | /// A builder for [`PrimitiveIntHeaderInput`](crate::input::PrimitiveIntHeaderInput).
|
1219 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PrimitiveIntHeaderInput`](crate::input::PrimitiveIntHeaderInput).
|
1220 + | /* RustType.kt:516 */
|
811 1221 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
812 - | pub struct Builder {}
|
1222 + | /* ServerBuilderGenerator.kt:211 */
|
1223 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
1224 + | /* ServerBuilderGenerator.kt:215 */
|
813 1225 | impl Builder {
|
814 - | /// Consumes the builder and constructs a [`PrimitiveIntHeaderInput`](crate::input::PrimitiveIntHeaderInput).
|
1226 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PrimitiveIntHeaderInput`](crate::input::PrimitiveIntHeaderInput).
|
1227 + | /* ServerBuilderGenerator.kt:271 */
|
815 1228 | pub fn build(self) -> crate::input::PrimitiveIntHeaderInput {
|
816 1229 | self.build_enforcing_all_constraints()
|
817 1230 | }
|
1231 + | /* ServerBuilderGenerator.kt:283 */
|
818 1232 | fn build_enforcing_all_constraints(self) -> crate::input::PrimitiveIntHeaderInput {
|
819 - | crate::input::PrimitiveIntHeaderInput {}
|
1233 + | /* ServerBuilderGenerator.kt:542 */
|
1234 + | crate::input::PrimitiveIntHeaderInput {
|
1235 + | /* ServerBuilderGenerator.kt:542 */}
|
1236 + | /* ServerBuilderGenerator.kt:283 */
|
820 1237 | }
|
1238 + | /* ServerBuilderGenerator.kt:215 */
|
821 1239 | }
|
1240 + |
|
1241 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
822 1242 | }
|
823 - | /// See [`StringPayloadInput`](crate::input::StringPayloadInput).
|
1243 + | /// /* ServerBuilderGenerator.kt:171 */See [`StringPayloadInput`](crate::input::StringPayloadInput).
|
824 1244 | pub mod string_payload_input {
|
825 1245 |
|
1246 + | /* ServerBuilderGenerator.kt:461 */
|
826 1247 | impl ::std::convert::From<Builder> for crate::input::StringPayloadInput {
|
827 1248 | fn from(builder: Builder) -> Self {
|
828 1249 | builder.build()
|
829 1250 | }
|
830 1251 | }
|
831 - | /// A builder for [`StringPayloadInput`](crate::input::StringPayloadInput).
|
1252 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StringPayloadInput`](crate::input::StringPayloadInput).
|
1253 + | /* RustType.kt:516 */
|
832 1254 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1255 + | /* ServerBuilderGenerator.kt:211 */
|
833 1256 | pub struct Builder {
|
1257 + | /* ServerBuilderGenerator.kt:308 */
|
834 1258 | pub(crate) payload: ::std::option::Option<::std::string::String>,
|
1259 + | /* ServerBuilderGenerator.kt:211 */
|
835 1260 | }
|
1261 + | /* ServerBuilderGenerator.kt:215 */
|
836 1262 | impl Builder {
|
1263 + | /* ServerBuilderGenerator.kt:331 */
|
837 1264 | #[allow(missing_docs)] // documentation missing in model
|
1265 + | /* ServerBuilderGenerator.kt:343 */
|
838 1266 | pub fn payload(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
839 - | self.payload = input;
|
1267 + | /* ServerBuilderGenerator.kt:344 */
|
1268 + | self.payload =
|
1269 + | /* ServerBuilderGenerator.kt:376 */input
|
1270 + | /* ServerBuilderGenerator.kt:344 */;
|
840 1271 | self
|
1272 + | /* ServerBuilderGenerator.kt:343 */
|
841 1273 | }
|
1274 + | /* ServerBuilderGenerator.kt:426 */
|
842 1275 | #[allow(missing_docs)] // documentation missing in model
|
1276 + | /* ServerBuilderGenerator.kt:428 */
|
843 1277 | pub(crate) fn set_payload(
|
844 1278 | mut self,
|
845 1279 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
846 1280 | ) -> Self {
|
1281 + | /* ServerBuilderGenerator.kt:429 */
|
847 1282 | self.payload = input.map(|v| v.into());
|
848 1283 | self
|
1284 + | /* ServerBuilderGenerator.kt:428 */
|
849 1285 | }
|
850 - | /// Consumes the builder and constructs a [`StringPayloadInput`](crate::input::StringPayloadInput).
|
1286 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StringPayloadInput`](crate::input::StringPayloadInput).
|
1287 + | /* ServerBuilderGenerator.kt:271 */
|
851 1288 | pub fn build(self) -> crate::input::StringPayloadInput {
|
852 1289 | self.build_enforcing_all_constraints()
|
853 1290 | }
|
1291 + | /* ServerBuilderGenerator.kt:283 */
|
854 1292 | fn build_enforcing_all_constraints(self) -> crate::input::StringPayloadInput {
|
1293 + | /* ServerBuilderGenerator.kt:542 */
|
855 1294 | crate::input::StringPayloadInput {
|
1295 + | /* ServerBuilderGenerator.kt:546 */
|
856 1296 | payload: self.payload,
|
1297 + | /* ServerBuilderGenerator.kt:542 */
|
857 1298 | }
|
1299 + | /* ServerBuilderGenerator.kt:283 */
|
858 1300 | }
|
1301 + | /* ServerBuilderGenerator.kt:215 */
|
859 1302 | }
|
1303 + |
|
1304 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
860 1305 | }
|