1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// Describes one specific validation failure for an input member.
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */Describes one specific validation failure for an input member.
|
4 + | /* RustType.kt:516 */
|
4 5 | #[derive(
|
5 6 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
6 7 | )]
|
7 - | pub struct ValidationExceptionField {
|
8 - | /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
8 + | pub /* StructureGenerator.kt:201 */ struct ValidationExceptionField {
|
9 + | /// /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
9 10 | pub path: ::std::string::String,
|
10 - | /// A detailed description of the validation failure.
|
11 + | /// /* StructureGenerator.kt:231 */A detailed description of the validation failure.
|
11 12 | pub message: ::std::string::String,
|
13 + | /* StructureGenerator.kt:201 */
|
12 14 | }
|
15 + | /* StructureGenerator.kt:135 */
|
13 16 | impl ValidationExceptionField {
|
14 - | /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
17 + | /// /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
18 + | /* StructureGenerator.kt:166 */
|
15 19 | pub fn path(&self) -> &str {
|
20 + | /* StructureGenerator.kt:171 */
|
16 21 | use std::ops::Deref;
|
17 22 | self.path.deref()
|
23 + | /* StructureGenerator.kt:166 */
|
18 24 | }
|
19 - | /// A detailed description of the validation failure.
|
25 + | /// /* StructureGenerator.kt:231 */A detailed description of the validation failure.
|
26 + | /* StructureGenerator.kt:166 */
|
20 27 | pub fn message(&self) -> &str {
|
28 + | /* StructureGenerator.kt:171 */
|
21 29 | use std::ops::Deref;
|
22 30 | self.message.deref()
|
31 + | /* StructureGenerator.kt:166 */
|
23 32 | }
|
33 + | /* StructureGenerator.kt:135 */
|
24 34 | }
|
35 + | /* ServerCodegenVisitor.kt:345 */
|
25 36 | impl ValidationExceptionField {
|
26 - | /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
37 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
38 + | /* ServerBuilderGenerator.kt:295 */
|
27 39 | pub fn builder() -> crate::model::validation_exception_field::Builder {
|
40 + | /* ServerBuilderGenerator.kt:296 */
|
28 41 | crate::model::validation_exception_field::Builder::default()
|
42 + | /* ServerBuilderGenerator.kt:295 */
|
29 43 | }
|
44 + | /* ServerCodegenVisitor.kt:345 */
|
30 45 | }
|
31 46 |
|
47 + | /* ConstrainedCollectionGenerator.kt:93 */
|
32 48 | #[allow(missing_docs)] // documentation missing in model
|
33 - | ///
|
49 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
34 50 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
35 51 | /// [constraint traits]. Use [`HeaderSet::try_from`] to construct values of this type.
|
36 52 | ///
|
37 53 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
38 54 | ///
|
55 + | /* RustType.kt:516 */
|
39 56 | #[derive(
|
40 57 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
41 58 | )]
|
42 - | pub struct HeaderSet(pub(crate) ::std::vec::Vec<::std::string::String>);
|
59 + | pub /* ConstrainedCollectionGenerator.kt:97 */ struct HeaderSet(
|
60 + | pub(crate) ::std::vec::Vec<::std::string::String>,
|
61 + | );
|
62 + | /* ConstrainedCollectionGenerator.kt:104 */
|
43 63 | impl HeaderSet {
|
64 + | /* ConstrainedCollectionGenerator.kt:106 */
|
44 65 | /// Returns an immutable reference to the underlying [`::std::vec::Vec<::std::string::String>`].
|
45 66 | pub fn inner(&self) -> &::std::vec::Vec<::std::string::String> {
|
46 67 | &self.0
|
47 68 | }
|
69 + | /* ConstrainedCollectionGenerator.kt:116 */
|
48 70 | /// Consumes the value, returning the underlying [`::std::vec::Vec<::std::string::String>`].
|
49 71 | pub fn into_inner(self) -> ::std::vec::Vec<::std::string::String> {
|
50 72 | self.0
|
51 73 | }
|
52 74 |
|
53 75 | fn check_unique_items(
|
54 76 | items: ::std::vec::Vec<::std::string::String>,
|
55 77 | ) -> ::std::result::Result<
|
56 78 | ::std::vec::Vec<::std::string::String>,
|
57 79 | crate::model::header_set::ConstraintViolation,
|
58 80 | > {
|
59 81 | let mut seen = ::std::collections::HashMap::new();
|
60 82 | let mut duplicate_indices = ::std::vec::Vec::new();
|
61 83 | for (idx, item) in items.iter().enumerate() {
|
62 84 | if let Some(prev_idx) = seen.insert(item, idx) {
|
63 85 | duplicate_indices.push(prev_idx);
|
64 86 | }
|
65 87 | }
|
66 88 |
|
67 89 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
68 90 | for idx in &duplicate_indices {
|
69 91 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
70 92 | last_duplicate_indices.push(prev_idx);
|
71 93 | }
|
72 94 | }
|
73 95 | duplicate_indices.extend(last_duplicate_indices);
|
74 96 |
|
75 97 | if !duplicate_indices.is_empty() {
|
76 98 | debug_assert!(duplicate_indices.len() >= 2);
|
77 99 | Err(crate::model::header_set::ConstraintViolation::UniqueItems {
|
78 100 | duplicate_indices,
|
79 101 | original: items,
|
80 102 | })
|
81 103 | } else {
|
82 104 | Ok(items)
|
83 105 | }
|
84 106 | }
|
107 + | /* ConstrainedCollectionGenerator.kt:104 */
|
85 108 | }
|
109 + | /* ConstrainedCollectionGenerator.kt:133 */
|
86 110 | impl ::std::convert::TryFrom<::std::vec::Vec<::std::string::String>> for HeaderSet {
|
87 111 | type Error = crate::model::header_set::ConstraintViolation;
|
88 112 |
|
89 113 | /// Constructs a `HeaderSet` from an [`::std::vec::Vec<::std::string::String>`], failing when the provided value does not satisfy the modeled constraints.
|
90 114 | fn try_from(
|
91 115 | value: ::std::vec::Vec<::std::string::String>,
|
92 116 | ) -> ::std::result::Result<Self, Self::Error> {
|
93 117 | let value = Self::check_unique_items(value)?;
|
94 118 |
|
95 119 | Ok(Self(value))
|
96 120 | }
|
97 121 | }
|
98 122 |
|
99 123 | impl ::std::convert::From<HeaderSet> for ::std::vec::Vec<::std::string::String> {
|
100 124 | fn from(value: HeaderSet) -> Self {
|
101 125 | value.into_inner()
|
102 126 | }
|
103 127 | }
|
128 + | /* ConstrainedCollectionGenerator.kt:181 */
|
104 129 | impl crate::constrained::Constrained for HeaderSet {
|
105 130 | type Unconstrained = crate::unconstrained::header_set_unconstrained::HeaderSetUnconstrained;
|
106 131 | }
|
107 132 |
|
133 + | /* StructureGenerator.kt:197 */
|
108 134 | #[allow(missing_docs)] // documentation missing in model
|
135 + | /* RustType.kt:516 */
|
109 136 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
110 - | pub struct InnerShape {
|
137 + | pub /* StructureGenerator.kt:201 */ struct InnerShape {
|
138 + | /* StructureGenerator.kt:231 */
|
111 139 | #[allow(missing_docs)] // documentation missing in model
|
112 140 | pub required_inner_most_shape: crate::model::InnermostShape,
|
141 + | /* StructureGenerator.kt:201 */
|
113 142 | }
|
143 + | /* StructureGenerator.kt:135 */
|
114 144 | impl InnerShape {
|
145 + | /* StructureGenerator.kt:231 */
|
115 146 | #[allow(missing_docs)] // documentation missing in model
|
147 + | /* StructureGenerator.kt:166 */
|
116 148 | pub fn required_inner_most_shape(&self) -> &crate::model::InnermostShape {
|
149 + | /* StructureGenerator.kt:172 */
|
117 150 | &self.required_inner_most_shape
|
151 + | /* StructureGenerator.kt:166 */
|
118 152 | }
|
153 + | /* StructureGenerator.kt:135 */
|
119 154 | }
|
155 + | /* ServerCodegenVisitor.kt:345 */
|
120 156 | impl InnerShape {
|
121 - | /// Creates a new builder-style object to manufacture [`InnerShape`](crate::model::InnerShape).
|
157 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InnerShape`](crate::model::InnerShape).
|
158 + | /* ServerBuilderGenerator.kt:295 */
|
122 159 | pub fn builder() -> crate::model::inner_shape::Builder {
|
160 + | /* ServerBuilderGenerator.kt:296 */
|
123 161 | crate::model::inner_shape::Builder::default()
|
162 + | /* ServerBuilderGenerator.kt:295 */
|
124 163 | }
|
164 + | /* ServerCodegenVisitor.kt:345 */
|
125 165 | }
|
166 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
126 167 | impl crate::constrained::Constrained for crate::model::InnerShape {
|
127 168 | type Unconstrained = crate::model::inner_shape::Builder;
|
128 169 | }
|
129 170 |
|
171 + | /* StructureGenerator.kt:197 */
|
130 172 | #[allow(missing_docs)] // documentation missing in model
|
173 + | /* RustType.kt:516 */
|
131 174 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
132 - | pub struct InnermostShape {
|
175 + | pub /* StructureGenerator.kt:201 */ struct InnermostShape {
|
176 + | /* StructureGenerator.kt:231 */
|
133 177 | #[allow(missing_docs)] // documentation missing in model
|
134 178 | pub a_string: ::std::string::String,
|
179 + | /* StructureGenerator.kt:231 */
|
135 180 | #[allow(missing_docs)] // documentation missing in model
|
136 181 | pub a_boolean: bool,
|
182 + | /* StructureGenerator.kt:231 */
|
137 183 | #[allow(missing_docs)] // documentation missing in model
|
138 184 | pub a_byte: i8,
|
185 + | /* StructureGenerator.kt:231 */
|
139 186 | #[allow(missing_docs)] // documentation missing in model
|
140 187 | pub a_short: i16,
|
188 + | /* StructureGenerator.kt:231 */
|
141 189 | #[allow(missing_docs)] // documentation missing in model
|
142 190 | pub an_int: i32,
|
191 + | /* StructureGenerator.kt:231 */
|
143 192 | #[allow(missing_docs)] // documentation missing in model
|
144 193 | pub a_long: i64,
|
194 + | /* StructureGenerator.kt:231 */
|
145 195 | #[allow(missing_docs)] // documentation missing in model
|
146 196 | pub a_float: f32,
|
197 + | /* StructureGenerator.kt:231 */
|
147 198 | #[allow(missing_docs)] // documentation missing in model
|
148 199 | pub a_double: f64,
|
200 + | /* StructureGenerator.kt:231 */
|
149 201 | #[allow(missing_docs)] // documentation missing in model
|
150 202 | pub a_timestamp: ::aws_smithy_types::DateTime,
|
203 + | /* StructureGenerator.kt:231 */
|
151 204 | #[allow(missing_docs)] // documentation missing in model
|
152 205 | pub a_document: ::aws_smithy_types::DateTime,
|
206 + | /* StructureGenerator.kt:231 */
|
153 207 | #[allow(missing_docs)] // documentation missing in model
|
154 208 | pub a_string_list: ::std::vec::Vec<::std::string::String>,
|
209 + | /* StructureGenerator.kt:231 */
|
155 210 | #[allow(missing_docs)] // documentation missing in model
|
156 211 | pub a_string_map:
|
157 212 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::DateTime>,
|
213 + | /* StructureGenerator.kt:231 */
|
158 214 | #[allow(missing_docs)] // documentation missing in model
|
159 215 | pub a_string_set: ::std::vec::Vec<::std::string::String>,
|
216 + | /* StructureGenerator.kt:231 */
|
160 217 | #[allow(missing_docs)] // documentation missing in model
|
161 218 | pub a_blob: ::aws_smithy_types::Blob,
|
219 + | /* StructureGenerator.kt:231 */
|
162 220 | #[allow(missing_docs)] // documentation missing in model
|
163 221 | pub a_union: crate::model::AUnion,
|
222 + | /* StructureGenerator.kt:201 */
|
164 223 | }
|
224 + | /* StructureGenerator.kt:135 */
|
165 225 | impl InnermostShape {
|
226 + | /* StructureGenerator.kt:231 */
|
166 227 | #[allow(missing_docs)] // documentation missing in model
|
228 + | /* StructureGenerator.kt:166 */
|
167 229 | pub fn a_string(&self) -> &str {
|
230 + | /* StructureGenerator.kt:171 */
|
168 231 | use std::ops::Deref;
|
169 232 | self.a_string.deref()
|
233 + | /* StructureGenerator.kt:166 */
|
170 234 | }
|
235 + | /* StructureGenerator.kt:231 */
|
171 236 | #[allow(missing_docs)] // documentation missing in model
|
237 + | /* StructureGenerator.kt:166 */
|
172 238 | pub fn a_boolean(&self) -> bool {
|
239 + | /* StructureGenerator.kt:168 */
|
173 240 | self.a_boolean
|
241 + | /* StructureGenerator.kt:166 */
|
174 242 | }
|
243 + | /* StructureGenerator.kt:231 */
|
175 244 | #[allow(missing_docs)] // documentation missing in model
|
245 + | /* StructureGenerator.kt:166 */
|
176 246 | pub fn a_byte(&self) -> i8 {
|
247 + | /* StructureGenerator.kt:168 */
|
177 248 | self.a_byte
|
249 + | /* StructureGenerator.kt:166 */
|
178 250 | }
|
251 + | /* StructureGenerator.kt:231 */
|
179 252 | #[allow(missing_docs)] // documentation missing in model
|
253 + | /* StructureGenerator.kt:166 */
|
180 254 | pub fn a_short(&self) -> i16 {
|
255 + | /* StructureGenerator.kt:168 */
|
181 256 | self.a_short
|
257 + | /* StructureGenerator.kt:166 */
|
182 258 | }
|
259 + | /* StructureGenerator.kt:231 */
|
183 260 | #[allow(missing_docs)] // documentation missing in model
|
261 + | /* StructureGenerator.kt:166 */
|
184 262 | pub fn an_int(&self) -> i32 {
|
263 + | /* StructureGenerator.kt:168 */
|
185 264 | self.an_int
|
265 + | /* StructureGenerator.kt:166 */
|
186 266 | }
|
267 + | /* StructureGenerator.kt:231 */
|
187 268 | #[allow(missing_docs)] // documentation missing in model
|
269 + | /* StructureGenerator.kt:166 */
|
188 270 | pub fn a_long(&self) -> i64 {
|
271 + | /* StructureGenerator.kt:168 */
|
189 272 | self.a_long
|
273 + | /* StructureGenerator.kt:166 */
|
190 274 | }
|
275 + | /* StructureGenerator.kt:231 */
|
191 276 | #[allow(missing_docs)] // documentation missing in model
|
277 + | /* StructureGenerator.kt:166 */
|
192 278 | pub fn a_float(&self) -> f32 {
|
279 + | /* StructureGenerator.kt:168 */
|
193 280 | self.a_float
|
281 + | /* StructureGenerator.kt:166 */
|
194 282 | }
|
283 + | /* StructureGenerator.kt:231 */
|
195 284 | #[allow(missing_docs)] // documentation missing in model
|
285 + | /* StructureGenerator.kt:166 */
|
196 286 | pub fn a_double(&self) -> f64 {
|
287 + | /* StructureGenerator.kt:168 */
|
197 288 | self.a_double
|
289 + | /* StructureGenerator.kt:166 */
|
198 290 | }
|
291 + | /* StructureGenerator.kt:231 */
|
199 292 | #[allow(missing_docs)] // documentation missing in model
|
293 + | /* StructureGenerator.kt:166 */
|
200 294 | pub fn a_timestamp(&self) -> &::aws_smithy_types::DateTime {
|
295 + | /* StructureGenerator.kt:172 */
|
201 296 | &self.a_timestamp
|
297 + | /* StructureGenerator.kt:166 */
|
202 298 | }
|
299 + | /* StructureGenerator.kt:231 */
|
203 300 | #[allow(missing_docs)] // documentation missing in model
|
301 + | /* StructureGenerator.kt:166 */
|
204 302 | pub fn a_document(&self) -> &::aws_smithy_types::DateTime {
|
303 + | /* StructureGenerator.kt:172 */
|
205 304 | &self.a_document
|
305 + | /* StructureGenerator.kt:166 */
|
206 306 | }
|
307 + | /* StructureGenerator.kt:231 */
|
207 308 | #[allow(missing_docs)] // documentation missing in model
|
309 + | /* StructureGenerator.kt:166 */
|
208 310 | pub fn a_string_list(&self) -> &[::std::string::String] {
|
311 + | /* StructureGenerator.kt:171 */
|
209 312 | use std::ops::Deref;
|
210 313 | self.a_string_list.deref()
|
314 + | /* StructureGenerator.kt:166 */
|
211 315 | }
|
316 + | /* StructureGenerator.kt:231 */
|
212 317 | #[allow(missing_docs)] // documentation missing in model
|
318 + | /* StructureGenerator.kt:166 */
|
213 319 | pub fn a_string_map(
|
214 320 | &self,
|
215 321 | ) -> &::std::collections::HashMap<::std::string::String, ::aws_smithy_types::DateTime> {
|
322 + | /* StructureGenerator.kt:172 */
|
216 323 | &self.a_string_map
|
324 + | /* StructureGenerator.kt:166 */
|
217 325 | }
|
326 + | /* StructureGenerator.kt:231 */
|
218 327 | #[allow(missing_docs)] // documentation missing in model
|
328 + | /* StructureGenerator.kt:166 */
|
219 329 | pub fn a_string_set(&self) -> &[::std::string::String] {
|
330 + | /* StructureGenerator.kt:171 */
|
220 331 | use std::ops::Deref;
|
221 332 | self.a_string_set.deref()
|
333 + | /* StructureGenerator.kt:166 */
|
222 334 | }
|
335 + | /* StructureGenerator.kt:231 */
|
223 336 | #[allow(missing_docs)] // documentation missing in model
|
337 + | /* StructureGenerator.kt:166 */
|
224 338 | pub fn a_blob(&self) -> &::aws_smithy_types::Blob {
|
339 + | /* StructureGenerator.kt:172 */
|
225 340 | &self.a_blob
|
341 + | /* StructureGenerator.kt:166 */
|
226 342 | }
|
343 + | /* StructureGenerator.kt:231 */
|
227 344 | #[allow(missing_docs)] // documentation missing in model
|
345 + | /* StructureGenerator.kt:166 */
|
228 346 | pub fn a_union(&self) -> &crate::model::AUnion {
|
347 + | /* StructureGenerator.kt:172 */
|
229 348 | &self.a_union
|
349 + | /* StructureGenerator.kt:166 */
|
230 350 | }
|
351 + | /* StructureGenerator.kt:135 */
|
231 352 | }
|
353 + | /* ServerCodegenVisitor.kt:345 */
|
232 354 | impl InnermostShape {
|
233 - | /// Creates a new builder-style object to manufacture [`InnermostShape`](crate::model::InnermostShape).
|
355 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InnermostShape`](crate::model::InnermostShape).
|
356 + | /* ServerBuilderGenerator.kt:295 */
|
234 357 | pub fn builder() -> crate::model::innermost_shape::Builder {
|
358 + | /* ServerBuilderGenerator.kt:296 */
|
235 359 | crate::model::innermost_shape::Builder::default()
|
360 + | /* ServerBuilderGenerator.kt:295 */
|
236 361 | }
|
362 + | /* ServerCodegenVisitor.kt:345 */
|
237 363 | }
|
364 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
238 365 | impl crate::constrained::Constrained for crate::model::InnermostShape {
|
239 366 | type Unconstrained = crate::model::innermost_shape::Builder;
|
240 367 | }
|
241 368 |
|
369 + | /* UnionGenerator.kt:67 */
|
242 370 | #[allow(missing_docs)] // documentation missing in model
|
371 + | /* RustType.kt:516 */
|
243 372 | #[derive(
|
244 373 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
245 374 | )]
|
246 - | pub enum AUnion {
|
375 + | pub /* UnionGenerator.kt:85 */ enum AUnion {
|
376 + | /* UnionGenerator.kt:90 */
|
247 377 | #[allow(missing_docs)] // documentation missing in model
|
378 + | /* UnionGenerator.kt:190 */
|
248 379 | I32(i32),
|
380 + | /* UnionGenerator.kt:90 */
|
249 381 | #[allow(missing_docs)] // documentation missing in model
|
382 + | /* UnionGenerator.kt:190 */
|
250 383 | String(::std::string::String),
|
384 + | /* UnionGenerator.kt:90 */
|
251 385 | #[allow(missing_docs)] // documentation missing in model
|
386 + | /* UnionGenerator.kt:190 */
|
252 387 | Time(::aws_smithy_types::DateTime),
|
388 + | /* UnionGenerator.kt:85 */
|
253 389 | }
|
390 + | /* UnionGenerator.kt:111 */
|
254 391 | impl AUnion {
|
392 + | /* UnionGenerator.kt:217 */
|
255 393 | /// Tries to convert the enum instance into [`I32`](crate::model::AUnion::I32), extracting the inner [`i32`](i32).
|
394 + | /* UnionGenerator.kt:222 */
|
256 395 | /// Returns `Err(&Self)` if it can't be converted.
|
396 + | /* UnionGenerator.kt:223 */
|
257 397 | pub fn as_i32(&self) -> ::std::result::Result<&i32, &Self> {
|
398 + | /* UnionGenerator.kt:227 */
|
258 399 | if let AUnion::I32(val) = &self {
|
259 400 | ::std::result::Result::Ok(val)
|
260 401 | } else {
|
261 402 | ::std::result::Result::Err(self)
|
262 403 | }
|
404 + | /* UnionGenerator.kt:223 */
|
263 405 | }
|
406 + | /* UnionGenerator.kt:121 */
|
264 407 | /// Returns true if this is a [`I32`](crate::model::AUnion::I32).
|
408 + | /* UnionGenerator.kt:122 */
|
265 409 | pub fn is_i32(&self) -> bool {
|
410 + | /* UnionGenerator.kt:123 */
|
266 411 | self.as_i32().is_ok()
|
412 + | /* UnionGenerator.kt:122 */
|
267 413 | }
|
414 + | /* UnionGenerator.kt:217 */
|
268 415 | /// Tries to convert the enum instance into [`String`](crate::model::AUnion::String), extracting the inner [`String`](::std::string::String).
|
416 + | /* UnionGenerator.kt:222 */
|
269 417 | /// Returns `Err(&Self)` if it can't be converted.
|
418 + | /* UnionGenerator.kt:223 */
|
270 419 | pub fn as_string(&self) -> ::std::result::Result<&::std::string::String, &Self> {
|
420 + | /* UnionGenerator.kt:227 */
|
271 421 | if let AUnion::String(val) = &self {
|
272 422 | ::std::result::Result::Ok(val)
|
273 423 | } else {
|
274 424 | ::std::result::Result::Err(self)
|
275 425 | }
|
426 + | /* UnionGenerator.kt:223 */
|
276 427 | }
|
428 + | /* UnionGenerator.kt:121 */
|
277 429 | /// Returns true if this is a [`String`](crate::model::AUnion::String).
|
430 + | /* UnionGenerator.kt:122 */
|
278 431 | pub fn is_string(&self) -> bool {
|
432 + | /* UnionGenerator.kt:123 */
|
279 433 | self.as_string().is_ok()
|
434 + | /* UnionGenerator.kt:122 */
|
280 435 | }
|
436 + | /* UnionGenerator.kt:217 */
|
281 437 | /// Tries to convert the enum instance into [`Time`](crate::model::AUnion::Time), extracting the inner [`DateTime`](::aws_smithy_types::DateTime).
|
438 + | /* UnionGenerator.kt:222 */
|
282 439 | /// Returns `Err(&Self)` if it can't be converted.
|
440 + | /* UnionGenerator.kt:223 */
|
283 441 | pub fn as_time(&self) -> ::std::result::Result<&::aws_smithy_types::DateTime, &Self> {
|
442 + | /* UnionGenerator.kt:227 */
|
284 443 | if let AUnion::Time(val) = &self {
|
285 444 | ::std::result::Result::Ok(val)
|
286 445 | } else {
|
287 446 | ::std::result::Result::Err(self)
|
288 447 | }
|
448 + | /* UnionGenerator.kt:223 */
|
289 449 | }
|
450 + | /* UnionGenerator.kt:121 */
|
290 451 | /// Returns true if this is a [`Time`](crate::model::AUnion::Time).
|
452 + | /* UnionGenerator.kt:122 */
|
291 453 | pub fn is_time(&self) -> bool {
|
454 + | /* UnionGenerator.kt:123 */
|
292 455 | self.as_time().is_ok()
|
456 + | /* UnionGenerator.kt:122 */
|
293 457 | }
|
458 + | /* UnionGenerator.kt:111 */
|
294 459 | }
|
295 460 |
|
461 + | /* StructureGenerator.kt:197 */
|
296 462 | #[allow(missing_docs)] // documentation missing in model
|
463 + | /* RustType.kt:516 */
|
297 464 | #[derive(
|
298 465 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
299 466 | )]
|
300 - | pub struct EmptyStructure {}
|
467 + | pub /* StructureGenerator.kt:201 */ struct EmptyStructure {/* StructureGenerator.kt:201 */}
|
468 + | /* ServerCodegenVisitor.kt:345 */
|
301 469 | impl EmptyStructure {
|
302 - | /// Creates a new builder-style object to manufacture [`EmptyStructure`](crate::model::EmptyStructure).
|
470 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EmptyStructure`](crate::model::EmptyStructure).
|
471 + | /* ServerBuilderGenerator.kt:295 */
|
303 472 | pub fn builder() -> crate::model::empty_structure::Builder {
|
473 + | /* ServerBuilderGenerator.kt:296 */
|
304 474 | crate::model::empty_structure::Builder::default()
|
475 + | /* ServerBuilderGenerator.kt:295 */
|
305 476 | }
|
477 + | /* ServerCodegenVisitor.kt:345 */
|
306 478 | }
|
479 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
307 480 | impl crate::constrained::Constrained for crate::model::EmptyStructure {
|
308 481 | type Unconstrained = crate::model::empty_structure::Builder;
|
309 482 | }
|
310 - | /// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
483 + | /// /* ServerBuilderGenerator.kt:171 */See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
311 484 | pub mod validation_exception_field {
|
312 485 |
|
486 + | /* RustType.kt:516 */
|
313 487 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
314 - | /// Holds one variant for each of the ways the builder can fail.
|
488 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
489 + | /* RustType.kt:516 */
|
315 490 | #[non_exhaustive]
|
491 + | /* ServerBuilderConstraintViolations.kt:75 */
|
316 492 | #[allow(clippy::enum_variant_names)]
|
317 493 | pub enum ConstraintViolation {
|
318 - | /// `path` was not provided but it is required when building `ValidationExceptionField`.
|
494 + | /// /* ServerBuilderConstraintViolations.kt:138 */`path` was not provided but it is required when building `ValidationExceptionField`.
|
495 + | /* ServerBuilderConstraintViolations.kt:143 */
|
319 496 | MissingPath,
|
320 - | /// `message` was not provided but it is required when building `ValidationExceptionField`.
|
497 + | /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationExceptionField`.
|
498 + | /* ServerBuilderConstraintViolations.kt:143 */
|
321 499 | MissingMessage,
|
500 + | /* ServerBuilderConstraintViolations.kt:75 */
|
322 501 | }
|
502 + | /* ServerBuilderConstraintViolations.kt:117 */
|
323 503 | impl ::std::fmt::Display for ConstraintViolation {
|
504 + | /* ServerBuilderConstraintViolations.kt:118 */
|
324 505 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
506 + | /* ServerBuilderConstraintViolations.kt:119 */
|
325 507 | match self {
|
326 - | ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
|
327 - | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
|
328 - | }
|
508 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
|
509 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
|
510 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
511 + | /* ServerBuilderConstraintViolations.kt:118 */
|
329 512 | }
|
513 + | /* ServerBuilderConstraintViolations.kt:117 */
|
330 514 | }
|
515 + | /* ServerBuilderConstraintViolations.kt:84 */
|
331 516 | impl ::std::error::Error for ConstraintViolation {}
|
517 + | /* ServerBuilderGenerator.kt:446 */
|
332 518 | impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
|
333 519 | type Error = ConstraintViolation;
|
334 520 |
|
335 521 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
336 522 | builder.build()
|
337 523 | }
|
338 524 | }
|
339 - | /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
525 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
526 + | /* RustType.kt:516 */
|
340 527 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
528 + | /* ServerBuilderGenerator.kt:211 */
|
341 529 | pub struct Builder {
|
530 + | /* ServerBuilderGenerator.kt:308 */
|
342 531 | pub(crate) path: ::std::option::Option<::std::string::String>,
|
532 + | /* ServerBuilderGenerator.kt:308 */
|
343 533 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
534 + | /* ServerBuilderGenerator.kt:211 */
|
344 535 | }
|
536 + | /* ServerBuilderGenerator.kt:215 */
|
345 537 | impl Builder {
|
346 - | /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
538 + | /// /* ServerBuilderGenerator.kt:331 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
539 + | /* ServerBuilderGenerator.kt:343 */
|
347 540 | pub fn path(mut self, input: ::std::string::String) -> Self {
|
348 - | self.path = Some(input);
|
541 + | /* ServerBuilderGenerator.kt:344 */
|
542 + | self.path =
|
543 + | /* ServerBuilderGenerator.kt:345 */Some(
|
544 + | /* ServerBuilderGenerator.kt:376 */input
|
545 + | /* ServerBuilderGenerator.kt:345 */)
|
546 + | /* ServerBuilderGenerator.kt:344 */;
|
349 547 | self
|
548 + | /* ServerBuilderGenerator.kt:343 */
|
350 549 | }
|
351 - | /// A detailed description of the validation failure.
|
550 + | /// /* ServerBuilderGenerator.kt:331 */A detailed description of the validation failure.
|
551 + | /* ServerBuilderGenerator.kt:343 */
|
352 552 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
353 - | self.message = Some(input);
|
553 + | /* ServerBuilderGenerator.kt:344 */
|
554 + | self.message =
|
555 + | /* ServerBuilderGenerator.kt:345 */Some(
|
556 + | /* ServerBuilderGenerator.kt:376 */input
|
557 + | /* ServerBuilderGenerator.kt:345 */)
|
558 + | /* ServerBuilderGenerator.kt:344 */;
|
354 559 | self
|
560 + | /* ServerBuilderGenerator.kt:343 */
|
355 561 | }
|
356 - | /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
357 - | ///
|
562 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
563 + | /// /* ServerBuilderGenerator.kt:260 */
|
358 564 | /// The builder fails to construct a [`ValidationExceptionField`](crate::model::ValidationExceptionField) if a [`ConstraintViolation`] occurs.
|
359 565 | ///
|
360 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
566 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
567 + | /* ServerBuilderGenerator.kt:271 */
|
361 568 | pub fn build(self) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
|
362 569 | self.build_enforcing_all_constraints()
|
363 570 | }
|
571 + | /* ServerBuilderGenerator.kt:283 */
|
364 572 | fn build_enforcing_all_constraints(
|
365 573 | self,
|
366 574 | ) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
|
367 - | Ok(crate::model::ValidationExceptionField {
|
368 - | path: self.path.ok_or(ConstraintViolation::MissingPath)?,
|
369 - | message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
|
370 - | })
|
371 - | }
|
575 + | /* ServerBuilderGenerator.kt:287 */
|
576 + | Ok(
|
577 + | /* ServerBuilderGenerator.kt:542 */
|
578 + | crate::model::ValidationExceptionField {
|
579 + | /* ServerBuilderGenerator.kt:546 */
|
580 + | path: self
|
581 + | .path
|
582 + | /* ServerBuilderGenerator.kt:569 */
|
583 + | .ok_or(ConstraintViolation::MissingPath)?,
|
584 + | /* ServerBuilderGenerator.kt:546 */
|
585 + | message: self
|
586 + | .message
|
587 + | /* ServerBuilderGenerator.kt:569 */
|
588 + | .ok_or(ConstraintViolation::MissingMessage)?,
|
589 + | /* ServerBuilderGenerator.kt:542 */
|
590 + | }, /* ServerBuilderGenerator.kt:287 */
|
591 + | )
|
592 + | /* ServerBuilderGenerator.kt:283 */
|
593 + | }
|
594 + | /* ServerBuilderGenerator.kt:215 */
|
372 595 | }
|
596 + |
|
597 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
373 598 | }
|
374 - | /// See [`HeaderSet`](crate::model::HeaderSet).
|
599 + | /// /* CodegenDelegator.kt:51 */See [`HeaderSet`](crate::model::HeaderSet).
|
375 600 | pub mod header_set {
|
376 601 |
|
602 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
377 603 | #[allow(clippy::enum_variant_names)]
|
378 604 | #[derive(Debug, PartialEq)]
|
379 605 | pub enum ConstraintViolation {
|
380 606 | /// Constraint violation error when the list does not contain unique items
|
381 607 | UniqueItems {
|
382 608 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
383 609 | /// at least two elements.
|
384 610 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
385 611 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
386 612 | /// Nothing is guaranteed about the order of the indices.
|
387 613 | duplicate_indices: ::std::vec::Vec<usize>,
|
388 614 | /// The original vector, that contains duplicate items.
|
389 615 | original: ::std::vec::Vec<::std::string::String>,
|
390 616 | },
|
391 617 | }
|
392 618 |
|
393 619 | impl ::std::fmt::Display for ConstraintViolation {
|
394 620 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
395 621 | let message = match self {
|
396 622 | Self::UniqueItems { duplicate_indices, .. } =>
|
397 623 | format!("Value with repeated values at indices {:?} provided for 'aws.protocoltests.misc#HeaderSet' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
398 624 | };
|
399 625 | write!(f, "{message}")
|
400 626 | }
|
401 627 | }
|
402 628 |
|
403 629 | impl ::std::error::Error for ConstraintViolation {}
|
630 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
404 631 | impl ConstraintViolation {
|
405 632 | pub(crate) fn as_validation_exception_field(
|
406 633 | self,
|
407 634 | path: ::std::string::String,
|
408 635 | ) -> crate::model::ValidationExceptionField {
|
409 636 | match self {
|
410 637 | Self::UniqueItems { duplicate_indices, .. } =>
|
411 638 | crate::model::ValidationExceptionField {
|
412 639 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
413 640 | path,
|
414 641 | },
|
415 642 | }
|
416 643 | }
|
417 644 | }
|
645 + |
|
646 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
418 647 | }
|
419 - | /// See [`InnerShape`](crate::model::InnerShape).
|
648 + | /// /* ServerBuilderGenerator.kt:171 */See [`InnerShape`](crate::model::InnerShape).
|
420 649 | pub mod inner_shape {
|
421 650 |
|
651 + | /* RustType.kt:516 */
|
422 652 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
423 - | /// Holds one variant for each of the ways the builder can fail.
|
653 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
654 + | /* RustType.kt:516 */
|
424 655 | #[non_exhaustive]
|
656 + | /* ServerBuilderConstraintViolations.kt:75 */
|
425 657 | #[allow(clippy::enum_variant_names)]
|
426 658 | pub enum ConstraintViolation {
|
427 - | /// `required_inner_most_shape` was not provided but it is required when building `InnerShape`.
|
659 + | /// /* ServerBuilderConstraintViolations.kt:138 */`required_inner_most_shape` was not provided but it is required when building `InnerShape`.
|
660 + | /* ServerBuilderConstraintViolations.kt:143 */
|
428 661 | MissingRequiredInnerMostShape,
|
429 - | /// Constraint violation occurred building member `required_inner_most_shape` when building `InnerShape`.
|
662 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `required_inner_most_shape` when building `InnerShape`.
|
663 + | /* RustType.kt:516 */
|
430 664 | #[doc(hidden)]
|
665 + | /* ServerBuilderConstraintViolations.kt:164 */
|
431 666 | RequiredInnerMostShape(crate::model::innermost_shape::ConstraintViolation),
|
667 + | /* ServerBuilderConstraintViolations.kt:75 */
|
432 668 | }
|
669 + | /* ServerBuilderConstraintViolations.kt:117 */
|
433 670 | impl ::std::fmt::Display for ConstraintViolation {
|
671 + | /* ServerBuilderConstraintViolations.kt:118 */
|
434 672 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
673 + | /* ServerBuilderConstraintViolations.kt:119 */
|
435 674 | match self {
|
436 - | ConstraintViolation::MissingRequiredInnerMostShape => write!(f, "`required_inner_most_shape` was not provided but it is required when building `InnerShape`"),
|
437 - | ConstraintViolation::RequiredInnerMostShape(_) => write!(f, "constraint violation occurred building member `required_inner_most_shape` when building `InnerShape`"),
|
438 - | }
|
675 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRequiredInnerMostShape => write!(f, "`required_inner_most_shape` was not provided but it is required when building `InnerShape`"),
|
676 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RequiredInnerMostShape(_) => write!(f, "constraint violation occurred building member `required_inner_most_shape` when building `InnerShape`"),
|
677 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
678 + | /* ServerBuilderConstraintViolations.kt:118 */
|
439 679 | }
|
680 + | /* ServerBuilderConstraintViolations.kt:117 */
|
440 681 | }
|
682 + | /* ServerBuilderConstraintViolations.kt:84 */
|
441 683 | impl ::std::error::Error for ConstraintViolation {}
|
684 + | /* ServerBuilderConstraintViolations.kt:171 */
|
442 685 | impl ConstraintViolation {
|
443 686 | pub(crate) fn as_validation_exception_field(
|
444 687 | self,
|
445 688 | path: ::std::string::String,
|
446 689 | ) -> crate::model::ValidationExceptionField {
|
447 690 | match self {
|
448 691 | ConstraintViolation::MissingRequiredInnerMostShape => crate::model::ValidationExceptionField {
|
449 692 | message: format!("Value at '{}/requiredInnerMostShape' failed to satisfy constraint: Member must not be null", path),
|
450 693 | path: path + "/requiredInnerMostShape",
|
451 694 | },
|
452 695 | ConstraintViolation::RequiredInnerMostShape(inner) => inner.as_validation_exception_field(path + "/requiredInnerMostShape"),
|
453 696 | }
|
454 697 | }
|
455 698 | }
|
699 + | /* ServerBuilderGenerator.kt:244 */
|
456 700 | impl ::std::convert::From<Builder>
|
457 701 | for crate::constrained::MaybeConstrained<crate::model::InnerShape>
|
458 702 | {
|
459 703 | fn from(builder: Builder) -> Self {
|
460 704 | Self::Unconstrained(builder)
|
461 705 | }
|
462 706 | }
|
707 + | /* ServerBuilderGenerator.kt:446 */
|
463 708 | impl ::std::convert::TryFrom<Builder> for crate::model::InnerShape {
|
464 709 | type Error = ConstraintViolation;
|
465 710 |
|
466 711 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
467 712 | builder.build()
|
468 713 | }
|
469 714 | }
|
470 - | /// A builder for [`InnerShape`](crate::model::InnerShape).
|
715 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`InnerShape`](crate::model::InnerShape).
|
716 + | /* RustType.kt:516 */
|
471 717 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
718 + | /* ServerBuilderGenerator.kt:211 */
|
472 719 | pub struct Builder {
|
720 + | /* ServerBuilderGenerator.kt:308 */
|
473 721 | pub(crate) required_inner_most_shape: ::std::option::Option<
|
474 722 | crate::constrained::MaybeConstrained<crate::model::InnermostShape>,
|
475 723 | >,
|
724 + | /* ServerBuilderGenerator.kt:211 */
|
476 725 | }
|
726 + | /* ServerBuilderGenerator.kt:215 */
|
477 727 | impl Builder {
|
728 + | /* ServerBuilderGenerator.kt:331 */
|
478 729 | #[allow(missing_docs)] // documentation missing in model
|
730 + | /* ServerBuilderGenerator.kt:343 */
|
479 731 | pub fn required_inner_most_shape(mut self, input: crate::model::InnermostShape) -> Self {
|
732 + | /* ServerBuilderGenerator.kt:344 */
|
480 733 | self.required_inner_most_shape =
|
481 - | Some(crate::constrained::MaybeConstrained::Constrained(input));
|
734 + | /* ServerBuilderGenerator.kt:345 */Some(
|
735 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
736 + | /* ServerBuilderGenerator.kt:345 */)
|
737 + | /* ServerBuilderGenerator.kt:344 */;
|
482 738 | self
|
739 + | /* ServerBuilderGenerator.kt:343 */
|
483 740 | }
|
741 + | /* ServerBuilderGenerator.kt:426 */
|
484 742 | #[allow(missing_docs)] // documentation missing in model
|
743 + | /* ServerBuilderGenerator.kt:428 */
|
485 744 | pub(crate) fn set_required_inner_most_shape(
|
486 745 | mut self,
|
487 746 | input: impl ::std::convert::Into<
|
488 747 | crate::constrained::MaybeConstrained<crate::model::InnermostShape>,
|
489 748 | >,
|
490 749 | ) -> Self {
|
750 + | /* ServerBuilderGenerator.kt:429 */
|
491 751 | self.required_inner_most_shape = Some(input.into());
|
492 752 | self
|
753 + | /* ServerBuilderGenerator.kt:428 */
|
493 754 | }
|
494 - | /// Consumes the builder and constructs a [`InnerShape`](crate::model::InnerShape).
|
495 - | ///
|
755 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InnerShape`](crate::model::InnerShape).
|
756 + | /// /* ServerBuilderGenerator.kt:260 */
|
496 757 | /// The builder fails to construct a [`InnerShape`](crate::model::InnerShape) if a [`ConstraintViolation`] occurs.
|
497 758 | ///
|
498 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
759 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
760 + | /* ServerBuilderGenerator.kt:271 */
|
499 761 | pub fn build(self) -> Result<crate::model::InnerShape, ConstraintViolation> {
|
500 762 | self.build_enforcing_all_constraints()
|
501 763 | }
|
764 + | /* ServerBuilderGenerator.kt:283 */
|
502 765 | fn build_enforcing_all_constraints(
|
503 766 | self,
|
504 767 | ) -> Result<crate::model::InnerShape, ConstraintViolation> {
|
505 - | Ok(crate::model::InnerShape {
|
768 + | /* ServerBuilderGenerator.kt:287 */
|
769 + | Ok(
|
770 + | /* ServerBuilderGenerator.kt:542 */
|
771 + | crate::model::InnerShape {
|
772 + | /* ServerBuilderGenerator.kt:546 */
|
506 773 | required_inner_most_shape: self
|
507 774 | .required_inner_most_shape
|
775 + | /* ServerBuilderGenerator.kt:602 */
|
508 776 | .map(|v| match v {
|
509 777 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
510 778 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
511 779 | })
|
780 + | /* ServerBuilderGenerator.kt:614 */
|
512 781 | .map(|res| res.map_err(ConstraintViolation::RequiredInnerMostShape))
|
513 782 | .transpose()?
|
783 + | /* ServerBuilderGenerator.kt:569 */
|
514 784 | .ok_or(ConstraintViolation::MissingRequiredInnerMostShape)?,
|
515 - | })
|
785 + | /* ServerBuilderGenerator.kt:542 */
|
786 + | }, /* ServerBuilderGenerator.kt:287 */
|
787 + | )
|
788 + | /* ServerBuilderGenerator.kt:283 */
|
516 789 | }
|
790 + | /* ServerBuilderGenerator.kt:215 */
|
517 791 | }
|
792 + |
|
793 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
518 794 | }
|
519 - | /// See [`InnermostShape`](crate::model::InnermostShape).
|
795 + | /// /* ServerBuilderGenerator.kt:171 */See [`InnermostShape`](crate::model::InnermostShape).
|
520 796 | pub mod innermost_shape {
|
521 797 |
|
798 + | /* RustType.kt:516 */
|
522 799 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
523 - | /// Holds one variant for each of the ways the builder can fail.
|
800 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
801 + | /* RustType.kt:516 */
|
524 802 | #[non_exhaustive]
|
803 + | /* ServerBuilderConstraintViolations.kt:75 */
|
525 804 | #[allow(clippy::enum_variant_names)]
|
526 805 | pub enum ConstraintViolation {
|
527 - | /// `a_string` was not provided but it is required when building `InnermostShape`.
|
806 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_string` was not provided but it is required when building `InnermostShape`.
|
807 + | /* ServerBuilderConstraintViolations.kt:143 */
|
528 808 | MissingAString,
|
529 - | /// `a_boolean` was not provided but it is required when building `InnermostShape`.
|
809 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_boolean` was not provided but it is required when building `InnermostShape`.
|
810 + | /* ServerBuilderConstraintViolations.kt:143 */
|
530 811 | MissingABoolean,
|
531 - | /// `a_byte` was not provided but it is required when building `InnermostShape`.
|
812 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_byte` was not provided but it is required when building `InnermostShape`.
|
813 + | /* ServerBuilderConstraintViolations.kt:143 */
|
532 814 | MissingAByte,
|
533 - | /// `a_short` was not provided but it is required when building `InnermostShape`.
|
815 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_short` was not provided but it is required when building `InnermostShape`.
|
816 + | /* ServerBuilderConstraintViolations.kt:143 */
|
534 817 | MissingAShort,
|
535 - | /// `an_int` was not provided but it is required when building `InnermostShape`.
|
818 + | /// /* ServerBuilderConstraintViolations.kt:138 */`an_int` was not provided but it is required when building `InnermostShape`.
|
819 + | /* ServerBuilderConstraintViolations.kt:143 */
|
536 820 | MissingAnInt,
|
537 - | /// `a_long` was not provided but it is required when building `InnermostShape`.
|
821 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_long` was not provided but it is required when building `InnermostShape`.
|
822 + | /* ServerBuilderConstraintViolations.kt:143 */
|
538 823 | MissingALong,
|
539 - | /// `a_float` was not provided but it is required when building `InnermostShape`.
|
824 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_float` was not provided but it is required when building `InnermostShape`.
|
825 + | /* ServerBuilderConstraintViolations.kt:143 */
|
540 826 | MissingAFloat,
|
541 - | /// `a_double` was not provided but it is required when building `InnermostShape`.
|
827 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_double` was not provided but it is required when building `InnermostShape`.
|
828 + | /* ServerBuilderConstraintViolations.kt:143 */
|
542 829 | MissingADouble,
|
543 - | /// `a_timestamp` was not provided but it is required when building `InnermostShape`.
|
830 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_timestamp` was not provided but it is required when building `InnermostShape`.
|
831 + | /* ServerBuilderConstraintViolations.kt:143 */
|
544 832 | MissingATimestamp,
|
545 - | /// `a_document` was not provided but it is required when building `InnermostShape`.
|
833 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_document` was not provided but it is required when building `InnermostShape`.
|
834 + | /* ServerBuilderConstraintViolations.kt:143 */
|
546 835 | MissingADocument,
|
547 - | /// `a_string_list` was not provided but it is required when building `InnermostShape`.
|
836 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_string_list` was not provided but it is required when building `InnermostShape`.
|
837 + | /* ServerBuilderConstraintViolations.kt:143 */
|
548 838 | MissingAStringList,
|
549 - | /// `a_string_map` was not provided but it is required when building `InnermostShape`.
|
839 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_string_map` was not provided but it is required when building `InnermostShape`.
|
840 + | /* ServerBuilderConstraintViolations.kt:143 */
|
550 841 | MissingAStringMap,
|
551 - | /// `a_string_set` was not provided but it is required when building `InnermostShape`.
|
842 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_string_set` was not provided but it is required when building `InnermostShape`.
|
843 + | /* ServerBuilderConstraintViolations.kt:143 */
|
552 844 | MissingAStringSet,
|
553 - | /// `a_blob` was not provided but it is required when building `InnermostShape`.
|
845 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_blob` was not provided but it is required when building `InnermostShape`.
|
846 + | /* ServerBuilderConstraintViolations.kt:143 */
|
554 847 | MissingABlob,
|
555 - | /// `a_union` was not provided but it is required when building `InnermostShape`.
|
848 + | /// /* ServerBuilderConstraintViolations.kt:138 */`a_union` was not provided but it is required when building `InnermostShape`.
|
849 + | /* ServerBuilderConstraintViolations.kt:143 */
|
556 850 | MissingAUnion,
|
851 + | /* ServerBuilderConstraintViolations.kt:75 */
|
557 852 | }
|
853 + | /* ServerBuilderConstraintViolations.kt:117 */
|
558 854 | impl ::std::fmt::Display for ConstraintViolation {
|
855 + | /* ServerBuilderConstraintViolations.kt:118 */
|
559 856 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
857 + | /* ServerBuilderConstraintViolations.kt:119 */
|
560 858 | match self {
|
561 - | ConstraintViolation::MissingAString => write!(f, "`a_string` was not provided but it is required when building `InnermostShape`"),
|
562 - | ConstraintViolation::MissingABoolean => write!(f, "`a_boolean` was not provided but it is required when building `InnermostShape`"),
|
563 - | ConstraintViolation::MissingAByte => write!(f, "`a_byte` was not provided but it is required when building `InnermostShape`"),
|
564 - | ConstraintViolation::MissingAShort => write!(f, "`a_short` was not provided but it is required when building `InnermostShape`"),
|
565 - | ConstraintViolation::MissingAnInt => write!(f, "`an_int` was not provided but it is required when building `InnermostShape`"),
|
566 - | ConstraintViolation::MissingALong => write!(f, "`a_long` was not provided but it is required when building `InnermostShape`"),
|
567 - | ConstraintViolation::MissingAFloat => write!(f, "`a_float` was not provided but it is required when building `InnermostShape`"),
|
568 - | ConstraintViolation::MissingADouble => write!(f, "`a_double` was not provided but it is required when building `InnermostShape`"),
|
569 - | ConstraintViolation::MissingATimestamp => write!(f, "`a_timestamp` was not provided but it is required when building `InnermostShape`"),
|
570 - | ConstraintViolation::MissingADocument => write!(f, "`a_document` was not provided but it is required when building `InnermostShape`"),
|
571 - | ConstraintViolation::MissingAStringList => write!(f, "`a_string_list` was not provided but it is required when building `InnermostShape`"),
|
572 - | ConstraintViolation::MissingAStringMap => write!(f, "`a_string_map` was not provided but it is required when building `InnermostShape`"),
|
573 - | ConstraintViolation::MissingAStringSet => write!(f, "`a_string_set` was not provided but it is required when building `InnermostShape`"),
|
574 - | ConstraintViolation::MissingABlob => write!(f, "`a_blob` was not provided but it is required when building `InnermostShape`"),
|
575 - | ConstraintViolation::MissingAUnion => write!(f, "`a_union` was not provided but it is required when building `InnermostShape`"),
|
576 - | }
|
577 - | }
|
578 - | }
|
859 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAString => write!(f, "`a_string` was not provided but it is required when building `InnermostShape`"),
|
860 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingABoolean => write!(f, "`a_boolean` was not provided but it is required when building `InnermostShape`"),
|
861 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAByte => write!(f, "`a_byte` was not provided but it is required when building `InnermostShape`"),
|
862 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAShort => write!(f, "`a_short` was not provided but it is required when building `InnermostShape`"),
|
863 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAnInt => write!(f, "`an_int` was not provided but it is required when building `InnermostShape`"),
|
864 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingALong => write!(f, "`a_long` was not provided but it is required when building `InnermostShape`"),
|
865 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAFloat => write!(f, "`a_float` was not provided but it is required when building `InnermostShape`"),
|
866 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingADouble => write!(f, "`a_double` was not provided but it is required when building `InnermostShape`"),
|
867 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingATimestamp => write!(f, "`a_timestamp` was not provided but it is required when building `InnermostShape`"),
|
868 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingADocument => write!(f, "`a_document` was not provided but it is required when building `InnermostShape`"),
|
869 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAStringList => write!(f, "`a_string_list` was not provided but it is required when building `InnermostShape`"),
|
870 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAStringMap => write!(f, "`a_string_map` was not provided but it is required when building `InnermostShape`"),
|
871 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAStringSet => write!(f, "`a_string_set` was not provided but it is required when building `InnermostShape`"),
|
872 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingABlob => write!(f, "`a_blob` was not provided but it is required when building `InnermostShape`"),
|
873 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAUnion => write!(f, "`a_union` was not provided but it is required when building `InnermostShape`"),
|
874 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
875 + | /* ServerBuilderConstraintViolations.kt:118 */
|
876 + | }
|
877 + | /* ServerBuilderConstraintViolations.kt:117 */
|
878 + | }
|
879 + | /* ServerBuilderConstraintViolations.kt:84 */
|
579 880 | impl ::std::error::Error for ConstraintViolation {}
|
881 + | /* ServerBuilderConstraintViolations.kt:171 */
|
580 882 | impl ConstraintViolation {
|
581 883 | pub(crate) fn as_validation_exception_field(
|
582 884 | self,
|
583 885 | path: ::std::string::String,
|
584 886 | ) -> crate::model::ValidationExceptionField {
|
585 887 | match self {
|
586 888 | ConstraintViolation::MissingAString => crate::model::ValidationExceptionField {
|
587 889 | message: format!("Value at '{}/aString' failed to satisfy constraint: Member must not be null", path),
|
588 890 | path: path + "/aString",
|
589 891 | },
|
639 941 | message: format!("Value at '{}/aBlob' failed to satisfy constraint: Member must not be null", path),
|
640 942 | path: path + "/aBlob",
|
641 943 | },
|
642 944 | ConstraintViolation::MissingAUnion => crate::model::ValidationExceptionField {
|
643 945 | message: format!("Value at '{}/aUnion' failed to satisfy constraint: Member must not be null", path),
|
644 946 | path: path + "/aUnion",
|
645 947 | },
|
646 948 | }
|
647 949 | }
|
648 950 | }
|
951 + | /* ServerBuilderGenerator.kt:244 */
|
649 952 | impl ::std::convert::From<Builder>
|
650 953 | for crate::constrained::MaybeConstrained<crate::model::InnermostShape>
|
651 954 | {
|
652 955 | fn from(builder: Builder) -> Self {
|
653 956 | Self::Unconstrained(builder)
|
654 957 | }
|
655 958 | }
|
959 + | /* ServerBuilderGenerator.kt:446 */
|
656 960 | impl ::std::convert::TryFrom<Builder> for crate::model::InnermostShape {
|
657 961 | type Error = ConstraintViolation;
|
658 962 |
|
659 963 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
660 964 | builder.build()
|
661 965 | }
|
662 966 | }
|
663 - | /// A builder for [`InnermostShape`](crate::model::InnermostShape).
|
967 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`InnermostShape`](crate::model::InnermostShape).
|
968 + | /* RustType.kt:516 */
|
664 969 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
970 + | /* ServerBuilderGenerator.kt:211 */
|
665 971 | pub struct Builder {
|
972 + | /* ServerBuilderGenerator.kt:308 */
|
666 973 | pub(crate) a_string: ::std::option::Option<::std::string::String>,
|
974 + | /* ServerBuilderGenerator.kt:308 */
|
667 975 | pub(crate) a_boolean: ::std::option::Option<bool>,
|
668 - | pub(crate) a_byte: ::std::option::Option<i8>,
|
669 - | pub(crate) a_short: ::std::option::Option<i16>,
|
670 - | pub(crate) an_int: ::std::option::Option<i32>,
|
671 - | pub(crate) a_long: ::std::option::Option<i64>,
|
672 - | pub(crate) a_float: ::std::option::Option<f32>,
|
673 - | pub(crate) a_double: ::std::option::Option<f64>,
|
976 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) a_byte: ::std::option::Option<i8>,
|
977 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) a_short: ::std::option::Option<i16>,
|
978 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) an_int: ::std::option::Option<i32>,
|
979 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) a_long: ::std::option::Option<i64>,
|
980 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) a_float: ::std::option::Option<f32>,
|
981 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) a_double: ::std::option::Option<f64>,
|
982 + | /* ServerBuilderGenerator.kt:308 */
|
674 983 | pub(crate) a_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
984 + | /* ServerBuilderGenerator.kt:308 */
|
675 985 | pub(crate) a_document: ::std::option::Option<::aws_smithy_types::DateTime>,
|
986 + | /* ServerBuilderGenerator.kt:308 */
|
676 987 | pub(crate) a_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
988 + | /* ServerBuilderGenerator.kt:308 */
|
677 989 | pub(crate) a_string_map: ::std::option::Option<
|
678 990 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::DateTime>,
|
679 991 | >,
|
992 + | /* ServerBuilderGenerator.kt:308 */
|
680 993 | pub(crate) a_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
994 + | /* ServerBuilderGenerator.kt:308 */
|
681 995 | pub(crate) a_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
996 + | /* ServerBuilderGenerator.kt:308 */
|
682 997 | pub(crate) a_union: ::std::option::Option<crate::model::AUnion>,
|
998 + | /* ServerBuilderGenerator.kt:211 */
|
683 999 | }
|
1000 + | /* ServerBuilderGenerator.kt:215 */
|
684 1001 | impl Builder {
|
1002 + | /* ServerBuilderGenerator.kt:331 */
|
685 1003 | #[allow(missing_docs)] // documentation missing in model
|
1004 + | /* ServerBuilderGenerator.kt:343 */
|
686 1005 | pub fn a_string(mut self, input: ::std::string::String) -> Self {
|
687 - | self.a_string = Some(input);
|
1006 + | /* ServerBuilderGenerator.kt:344 */
|
1007 + | self.a_string =
|
1008 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1009 + | /* ServerBuilderGenerator.kt:376 */input
|
1010 + | /* ServerBuilderGenerator.kt:345 */)
|
1011 + | /* ServerBuilderGenerator.kt:344 */;
|
688 1012 | self
|
1013 + | /* ServerBuilderGenerator.kt:343 */
|
689 1014 | }
|
1015 + | /* ServerBuilderGenerator.kt:426 */
|
690 1016 | #[allow(missing_docs)] // documentation missing in model
|
1017 + | /* ServerBuilderGenerator.kt:428 */
|
691 1018 | pub(crate) fn set_a_string(
|
692 1019 | mut self,
|
693 1020 | input: impl ::std::convert::Into<::std::string::String>,
|
694 1021 | ) -> Self {
|
1022 + | /* ServerBuilderGenerator.kt:429 */
|
695 1023 | self.a_string = Some(input.into());
|
696 1024 | self
|
1025 + | /* ServerBuilderGenerator.kt:428 */
|
697 1026 | }
|
1027 + | /* ServerBuilderGenerator.kt:331 */
|
698 1028 | #[allow(missing_docs)] // documentation missing in model
|
1029 + | /* ServerBuilderGenerator.kt:343 */
|
699 1030 | pub fn a_boolean(mut self, input: bool) -> Self {
|
700 - | self.a_boolean = Some(input);
|
1031 + | /* ServerBuilderGenerator.kt:344 */
|
1032 + | self.a_boolean =
|
1033 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1034 + | /* ServerBuilderGenerator.kt:376 */input
|
1035 + | /* ServerBuilderGenerator.kt:345 */)
|
1036 + | /* ServerBuilderGenerator.kt:344 */;
|
701 1037 | self
|
1038 + | /* ServerBuilderGenerator.kt:343 */
|
702 1039 | }
|
1040 + | /* ServerBuilderGenerator.kt:426 */
|
703 1041 | #[allow(missing_docs)] // documentation missing in model
|
1042 + | /* ServerBuilderGenerator.kt:428 */
|
704 1043 | pub(crate) fn set_a_boolean(mut self, input: impl ::std::convert::Into<bool>) -> Self {
|
1044 + | /* ServerBuilderGenerator.kt:429 */
|
705 1045 | self.a_boolean = Some(input.into());
|
706 1046 | self
|
1047 + | /* ServerBuilderGenerator.kt:428 */
|
707 1048 | }
|
1049 + | /* ServerBuilderGenerator.kt:331 */
|
708 1050 | #[allow(missing_docs)] // documentation missing in model
|
1051 + | /* ServerBuilderGenerator.kt:343 */
|
709 1052 | pub fn a_byte(mut self, input: i8) -> Self {
|
710 - | self.a_byte = Some(input);
|
1053 + | /* ServerBuilderGenerator.kt:344 */
|
1054 + | self.a_byte =
|
1055 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1056 + | /* ServerBuilderGenerator.kt:376 */input
|
1057 + | /* ServerBuilderGenerator.kt:345 */)
|
1058 + | /* ServerBuilderGenerator.kt:344 */;
|
711 1059 | self
|
1060 + | /* ServerBuilderGenerator.kt:343 */
|
712 1061 | }
|
1062 + | /* ServerBuilderGenerator.kt:426 */
|
713 1063 | #[allow(missing_docs)] // documentation missing in model
|
1064 + | /* ServerBuilderGenerator.kt:428 */
|
714 1065 | pub(crate) fn set_a_byte(mut self, input: impl ::std::convert::Into<i8>) -> Self {
|
1066 + | /* ServerBuilderGenerator.kt:429 */
|
715 1067 | self.a_byte = Some(input.into());
|
716 1068 | self
|
1069 + | /* ServerBuilderGenerator.kt:428 */
|
717 1070 | }
|
1071 + | /* ServerBuilderGenerator.kt:331 */
|
718 1072 | #[allow(missing_docs)] // documentation missing in model
|
1073 + | /* ServerBuilderGenerator.kt:343 */
|
719 1074 | pub fn a_short(mut self, input: i16) -> Self {
|
720 - | self.a_short = Some(input);
|
1075 + | /* ServerBuilderGenerator.kt:344 */
|
1076 + | self.a_short =
|
1077 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1078 + | /* ServerBuilderGenerator.kt:376 */input
|
1079 + | /* ServerBuilderGenerator.kt:345 */)
|
1080 + | /* ServerBuilderGenerator.kt:344 */;
|
721 1081 | self
|
1082 + | /* ServerBuilderGenerator.kt:343 */
|
722 1083 | }
|
1084 + | /* ServerBuilderGenerator.kt:426 */
|
723 1085 | #[allow(missing_docs)] // documentation missing in model
|
1086 + | /* ServerBuilderGenerator.kt:428 */
|
724 1087 | pub(crate) fn set_a_short(mut self, input: impl ::std::convert::Into<i16>) -> Self {
|
1088 + | /* ServerBuilderGenerator.kt:429 */
|
725 1089 | self.a_short = Some(input.into());
|
726 1090 | self
|
1091 + | /* ServerBuilderGenerator.kt:428 */
|
727 1092 | }
|
1093 + | /* ServerBuilderGenerator.kt:331 */
|
728 1094 | #[allow(missing_docs)] // documentation missing in model
|
1095 + | /* ServerBuilderGenerator.kt:343 */
|
729 1096 | pub fn an_int(mut self, input: i32) -> Self {
|
730 - | self.an_int = Some(input);
|
1097 + | /* ServerBuilderGenerator.kt:344 */
|
1098 + | self.an_int =
|
1099 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1100 + | /* ServerBuilderGenerator.kt:376 */input
|
1101 + | /* ServerBuilderGenerator.kt:345 */)
|
1102 + | /* ServerBuilderGenerator.kt:344 */;
|
731 1103 | self
|
1104 + | /* ServerBuilderGenerator.kt:343 */
|
732 1105 | }
|
1106 + | /* ServerBuilderGenerator.kt:426 */
|
733 1107 | #[allow(missing_docs)] // documentation missing in model
|
1108 + | /* ServerBuilderGenerator.kt:428 */
|
734 1109 | pub(crate) fn set_an_int(mut self, input: impl ::std::convert::Into<i32>) -> Self {
|
1110 + | /* ServerBuilderGenerator.kt:429 */
|
735 1111 | self.an_int = Some(input.into());
|
736 1112 | self
|
1113 + | /* ServerBuilderGenerator.kt:428 */
|
737 1114 | }
|
1115 + | /* ServerBuilderGenerator.kt:331 */
|
738 1116 | #[allow(missing_docs)] // documentation missing in model
|
1117 + | /* ServerBuilderGenerator.kt:343 */
|
739 1118 | pub fn a_long(mut self, input: i64) -> Self {
|
740 - | self.a_long = Some(input);
|
1119 + | /* ServerBuilderGenerator.kt:344 */
|
1120 + | self.a_long =
|
1121 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1122 + | /* ServerBuilderGenerator.kt:376 */input
|
1123 + | /* ServerBuilderGenerator.kt:345 */)
|
1124 + | /* ServerBuilderGenerator.kt:344 */;
|
741 1125 | self
|
1126 + | /* ServerBuilderGenerator.kt:343 */
|
742 1127 | }
|
1128 + | /* ServerBuilderGenerator.kt:426 */
|
743 1129 | #[allow(missing_docs)] // documentation missing in model
|
1130 + | /* ServerBuilderGenerator.kt:428 */
|
744 1131 | pub(crate) fn set_a_long(mut self, input: impl ::std::convert::Into<i64>) -> Self {
|
1132 + | /* ServerBuilderGenerator.kt:429 */
|
745 1133 | self.a_long = Some(input.into());
|
746 1134 | self
|
1135 + | /* ServerBuilderGenerator.kt:428 */
|
747 1136 | }
|
1137 + | /* ServerBuilderGenerator.kt:331 */
|
748 1138 | #[allow(missing_docs)] // documentation missing in model
|
1139 + | /* ServerBuilderGenerator.kt:343 */
|
749 1140 | pub fn a_float(mut self, input: f32) -> Self {
|
750 - | self.a_float = Some(input);
|
1141 + | /* ServerBuilderGenerator.kt:344 */
|
1142 + | self.a_float =
|
1143 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1144 + | /* ServerBuilderGenerator.kt:376 */input
|
1145 + | /* ServerBuilderGenerator.kt:345 */)
|
1146 + | /* ServerBuilderGenerator.kt:344 */;
|
751 1147 | self
|
1148 + | /* ServerBuilderGenerator.kt:343 */
|
752 1149 | }
|
1150 + | /* ServerBuilderGenerator.kt:426 */
|
753 1151 | #[allow(missing_docs)] // documentation missing in model
|
1152 + | /* ServerBuilderGenerator.kt:428 */
|
754 1153 | pub(crate) fn set_a_float(mut self, input: impl ::std::convert::Into<f32>) -> Self {
|
1154 + | /* ServerBuilderGenerator.kt:429 */
|
755 1155 | self.a_float = Some(input.into());
|
756 1156 | self
|
1157 + | /* ServerBuilderGenerator.kt:428 */
|
757 1158 | }
|
1159 + | /* ServerBuilderGenerator.kt:331 */
|
758 1160 | #[allow(missing_docs)] // documentation missing in model
|
1161 + | /* ServerBuilderGenerator.kt:343 */
|
759 1162 | pub fn a_double(mut self, input: f64) -> Self {
|
760 - | self.a_double = Some(input);
|
1163 + | /* ServerBuilderGenerator.kt:344 */
|
1164 + | self.a_double =
|
1165 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1166 + | /* ServerBuilderGenerator.kt:376 */input
|
1167 + | /* ServerBuilderGenerator.kt:345 */)
|
1168 + | /* ServerBuilderGenerator.kt:344 */;
|
761 1169 | self
|
1170 + | /* ServerBuilderGenerator.kt:343 */
|
762 1171 | }
|
1172 + | /* ServerBuilderGenerator.kt:426 */
|
763 1173 | #[allow(missing_docs)] // documentation missing in model
|
1174 + | /* ServerBuilderGenerator.kt:428 */
|
764 1175 | pub(crate) fn set_a_double(mut self, input: impl ::std::convert::Into<f64>) -> Self {
|
1176 + | /* ServerBuilderGenerator.kt:429 */
|
765 1177 | self.a_double = Some(input.into());
|
766 1178 | self
|
1179 + | /* ServerBuilderGenerator.kt:428 */
|
767 1180 | }
|
1181 + | /* ServerBuilderGenerator.kt:331 */
|
768 1182 | #[allow(missing_docs)] // documentation missing in model
|
1183 + | /* ServerBuilderGenerator.kt:343 */
|
769 1184 | pub fn a_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
770 - | self.a_timestamp = Some(input);
|
1185 + | /* ServerBuilderGenerator.kt:344 */
|
1186 + | self.a_timestamp =
|
1187 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1188 + | /* ServerBuilderGenerator.kt:376 */input
|
1189 + | /* ServerBuilderGenerator.kt:345 */)
|
1190 + | /* ServerBuilderGenerator.kt:344 */;
|
771 1191 | self
|
1192 + | /* ServerBuilderGenerator.kt:343 */
|
772 1193 | }
|
1194 + | /* ServerBuilderGenerator.kt:426 */
|
773 1195 | #[allow(missing_docs)] // documentation missing in model
|
1196 + | /* ServerBuilderGenerator.kt:428 */
|
774 1197 | pub(crate) fn set_a_timestamp(
|
775 1198 | mut self,
|
776 1199 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
777 1200 | ) -> Self {
|
1201 + | /* ServerBuilderGenerator.kt:429 */
|
778 1202 | self.a_timestamp = Some(input.into());
|
779 1203 | self
|
1204 + | /* ServerBuilderGenerator.kt:428 */
|
780 1205 | }
|
1206 + | /* ServerBuilderGenerator.kt:331 */
|
781 1207 | #[allow(missing_docs)] // documentation missing in model
|
1208 + | /* ServerBuilderGenerator.kt:343 */
|
782 1209 | pub fn a_document(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
783 - | self.a_document = Some(input);
|
1210 + | /* ServerBuilderGenerator.kt:344 */
|
1211 + | self.a_document =
|
1212 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1213 + | /* ServerBuilderGenerator.kt:376 */input
|
1214 + | /* ServerBuilderGenerator.kt:345 */)
|
1215 + | /* ServerBuilderGenerator.kt:344 */;
|
784 1216 | self
|
1217 + | /* ServerBuilderGenerator.kt:343 */
|
785 1218 | }
|
1219 + | /* ServerBuilderGenerator.kt:426 */
|
786 1220 | #[allow(missing_docs)] // documentation missing in model
|
1221 + | /* ServerBuilderGenerator.kt:428 */
|
787 1222 | pub(crate) fn set_a_document(
|
788 1223 | mut self,
|
789 1224 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
790 1225 | ) -> Self {
|
1226 + | /* ServerBuilderGenerator.kt:429 */
|
791 1227 | self.a_document = Some(input.into());
|
792 1228 | self
|
1229 + | /* ServerBuilderGenerator.kt:428 */
|
793 1230 | }
|
1231 + | /* ServerBuilderGenerator.kt:331 */
|
794 1232 | #[allow(missing_docs)] // documentation missing in model
|
1233 + | /* ServerBuilderGenerator.kt:343 */
|
795 1234 | pub fn a_string_list(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
|
796 - | self.a_string_list = Some(input);
|
1235 + | /* ServerBuilderGenerator.kt:344 */
|
1236 + | self.a_string_list =
|
1237 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1238 + | /* ServerBuilderGenerator.kt:376 */input
|
1239 + | /* ServerBuilderGenerator.kt:345 */)
|
1240 + | /* ServerBuilderGenerator.kt:344 */;
|
797 1241 | self
|
1242 + | /* ServerBuilderGenerator.kt:343 */
|
798 1243 | }
|
1244 + | /* ServerBuilderGenerator.kt:426 */
|
799 1245 | #[allow(missing_docs)] // documentation missing in model
|
1246 + | /* ServerBuilderGenerator.kt:428 */
|
800 1247 | pub(crate) fn set_a_string_list(
|
801 1248 | mut self,
|
802 1249 | input: impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>,
|
803 1250 | ) -> Self {
|
1251 + | /* ServerBuilderGenerator.kt:429 */
|
804 1252 | self.a_string_list = Some(input.into());
|
805 1253 | self
|
1254 + | /* ServerBuilderGenerator.kt:428 */
|
806 1255 | }
|
1256 + | /* ServerBuilderGenerator.kt:331 */
|
807 1257 | #[allow(missing_docs)] // documentation missing in model
|
1258 + | /* ServerBuilderGenerator.kt:343 */
|
808 1259 | pub fn a_string_map(
|
809 1260 | mut self,
|
810 1261 | input: ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::DateTime>,
|
811 1262 | ) -> Self {
|
812 - | self.a_string_map = Some(input);
|
1263 + | /* ServerBuilderGenerator.kt:344 */
|
1264 + | self.a_string_map =
|
1265 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1266 + | /* ServerBuilderGenerator.kt:376 */input
|
1267 + | /* ServerBuilderGenerator.kt:345 */)
|
1268 + | /* ServerBuilderGenerator.kt:344 */;
|
813 1269 | self
|
1270 + | /* ServerBuilderGenerator.kt:343 */
|
814 1271 | }
|
1272 + | /* ServerBuilderGenerator.kt:426 */
|
815 1273 | #[allow(missing_docs)] // documentation missing in model
|
1274 + | /* ServerBuilderGenerator.kt:428 */
|
816 1275 | pub(crate) fn set_a_string_map(
|
817 1276 | mut self,
|
818 1277 | input: impl ::std::convert::Into<
|
819 1278 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::DateTime>,
|
820 1279 | >,
|
821 1280 | ) -> Self {
|
1281 + | /* ServerBuilderGenerator.kt:429 */
|
822 1282 | self.a_string_map = Some(input.into());
|
823 1283 | self
|
1284 + | /* ServerBuilderGenerator.kt:428 */
|
824 1285 | }
|
1286 + | /* ServerBuilderGenerator.kt:331 */
|
825 1287 | #[allow(missing_docs)] // documentation missing in model
|
1288 + | /* ServerBuilderGenerator.kt:343 */
|
826 1289 | pub fn a_string_set(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
|
827 - | self.a_string_set = Some(input);
|
1290 + | /* ServerBuilderGenerator.kt:344 */
|
1291 + | self.a_string_set =
|
1292 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1293 + | /* ServerBuilderGenerator.kt:376 */input
|
1294 + | /* ServerBuilderGenerator.kt:345 */)
|
1295 + | /* ServerBuilderGenerator.kt:344 */;
|
828 1296 | self
|
1297 + | /* ServerBuilderGenerator.kt:343 */
|
829 1298 | }
|
1299 + | /* ServerBuilderGenerator.kt:426 */
|
830 1300 | #[allow(missing_docs)] // documentation missing in model
|
1301 + | /* ServerBuilderGenerator.kt:428 */
|
831 1302 | pub(crate) fn set_a_string_set(
|
832 1303 | mut self,
|
833 1304 | input: impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>,
|
834 1305 | ) -> Self {
|
1306 + | /* ServerBuilderGenerator.kt:429 */
|
835 1307 | self.a_string_set = Some(input.into());
|
836 1308 | self
|
1309 + | /* ServerBuilderGenerator.kt:428 */
|
837 1310 | }
|
1311 + | /* ServerBuilderGenerator.kt:331 */
|
838 1312 | #[allow(missing_docs)] // documentation missing in model
|
1313 + | /* ServerBuilderGenerator.kt:343 */
|
839 1314 | pub fn a_blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
|
840 - | self.a_blob = Some(input);
|
1315 + | /* ServerBuilderGenerator.kt:344 */
|
1316 + | self.a_blob =
|
1317 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1318 + | /* ServerBuilderGenerator.kt:376 */input
|
1319 + | /* ServerBuilderGenerator.kt:345 */)
|
1320 + | /* ServerBuilderGenerator.kt:344 */;
|
841 1321 | self
|
1322 + | /* ServerBuilderGenerator.kt:343 */
|
842 1323 | }
|
1324 + | /* ServerBuilderGenerator.kt:426 */
|
843 1325 | #[allow(missing_docs)] // documentation missing in model
|
1326 + | /* ServerBuilderGenerator.kt:428 */
|
844 1327 | pub(crate) fn set_a_blob(
|
845 1328 | mut self,
|
846 1329 | input: impl ::std::convert::Into<::aws_smithy_types::Blob>,
|
847 1330 | ) -> Self {
|
1331 + | /* ServerBuilderGenerator.kt:429 */
|
848 1332 | self.a_blob = Some(input.into());
|
849 1333 | self
|
1334 + | /* ServerBuilderGenerator.kt:428 */
|
850 1335 | }
|
1336 + | /* ServerBuilderGenerator.kt:331 */
|
851 1337 | #[allow(missing_docs)] // documentation missing in model
|
1338 + | /* ServerBuilderGenerator.kt:343 */
|
852 1339 | pub fn a_union(mut self, input: crate::model::AUnion) -> Self {
|
853 - | self.a_union = Some(input);
|
1340 + | /* ServerBuilderGenerator.kt:344 */
|
1341 + | self.a_union =
|
1342 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1343 + | /* ServerBuilderGenerator.kt:376 */input
|
1344 + | /* ServerBuilderGenerator.kt:345 */)
|
1345 + | /* ServerBuilderGenerator.kt:344 */;
|
854 1346 | self
|
1347 + | /* ServerBuilderGenerator.kt:343 */
|
855 1348 | }
|
1349 + | /* ServerBuilderGenerator.kt:426 */
|
856 1350 | #[allow(missing_docs)] // documentation missing in model
|
1351 + | /* ServerBuilderGenerator.kt:428 */
|
857 1352 | pub(crate) fn set_a_union(
|
858 1353 | mut self,
|
859 1354 | input: impl ::std::convert::Into<crate::model::AUnion>,
|
860 1355 | ) -> Self {
|
1356 + | /* ServerBuilderGenerator.kt:429 */
|
861 1357 | self.a_union = Some(input.into());
|
862 1358 | self
|
1359 + | /* ServerBuilderGenerator.kt:428 */
|
863 1360 | }
|
864 - | /// Consumes the builder and constructs a [`InnermostShape`](crate::model::InnermostShape).
|
865 - | ///
|
1361 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InnermostShape`](crate::model::InnermostShape).
|
1362 + | /// /* ServerBuilderGenerator.kt:260 */
|
866 1363 | /// The builder fails to construct a [`InnermostShape`](crate::model::InnermostShape) if a [`ConstraintViolation`] occurs.
|
867 1364 | ///
|
868 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
1365 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
1366 + | /* ServerBuilderGenerator.kt:271 */
|
869 1367 | pub fn build(self) -> Result<crate::model::InnermostShape, ConstraintViolation> {
|
870 1368 | self.build_enforcing_all_constraints()
|
871 1369 | }
|
1370 + | /* ServerBuilderGenerator.kt:283 */
|
872 1371 | fn build_enforcing_all_constraints(
|
873 1372 | self,
|
874 1373 | ) -> Result<crate::model::InnermostShape, ConstraintViolation> {
|
875 - | Ok(crate::model::InnermostShape {
|
876 - | a_string: self.a_string.ok_or(ConstraintViolation::MissingAString)?,
|
877 - | a_boolean: self.a_boolean.ok_or(ConstraintViolation::MissingABoolean)?,
|
878 - | a_byte: self.a_byte.ok_or(ConstraintViolation::MissingAByte)?,
|
879 - | a_short: self.a_short.ok_or(ConstraintViolation::MissingAShort)?,
|
880 - | an_int: self.an_int.ok_or(ConstraintViolation::MissingAnInt)?,
|
881 - | a_long: self.a_long.ok_or(ConstraintViolation::MissingALong)?,
|
882 - | a_float: self.a_float.ok_or(ConstraintViolation::MissingAFloat)?,
|
883 - | a_double: self.a_double.ok_or(ConstraintViolation::MissingADouble)?,
|
1374 + | /* ServerBuilderGenerator.kt:287 */
|
1375 + | Ok(
|
1376 + | /* ServerBuilderGenerator.kt:542 */
|
1377 + | crate::model::InnermostShape {
|
1378 + | /* ServerBuilderGenerator.kt:546 */
|
1379 + | a_string: self
|
1380 + | .a_string
|
1381 + | /* ServerBuilderGenerator.kt:569 */
|
1382 + | .ok_or(ConstraintViolation::MissingAString)?,
|
1383 + | /* ServerBuilderGenerator.kt:546 */
|
1384 + | a_boolean: self
|
1385 + | .a_boolean
|
1386 + | /* ServerBuilderGenerator.kt:569 */
|
1387 + | .ok_or(ConstraintViolation::MissingABoolean)?,
|
1388 + | /* ServerBuilderGenerator.kt:546 */
|
1389 + | a_byte: self
|
1390 + | .a_byte
|
1391 + | /* ServerBuilderGenerator.kt:569 */
|
1392 + | .ok_or(ConstraintViolation::MissingAByte)?,
|
1393 + | /* ServerBuilderGenerator.kt:546 */
|
1394 + | a_short: self
|
1395 + | .a_short
|
1396 + | /* ServerBuilderGenerator.kt:569 */
|
1397 + | .ok_or(ConstraintViolation::MissingAShort)?,
|
1398 + | /* ServerBuilderGenerator.kt:546 */
|
1399 + | an_int: self
|
1400 + | .an_int
|
1401 + | /* ServerBuilderGenerator.kt:569 */
|
1402 + | .ok_or(ConstraintViolation::MissingAnInt)?,
|
1403 + | /* ServerBuilderGenerator.kt:546 */
|
1404 + | a_long: self
|
1405 + | .a_long
|
1406 + | /* ServerBuilderGenerator.kt:569 */
|
1407 + | .ok_or(ConstraintViolation::MissingALong)?,
|
1408 + | /* ServerBuilderGenerator.kt:546 */
|
1409 + | a_float: self
|
1410 + | .a_float
|
1411 + | /* ServerBuilderGenerator.kt:569 */
|
1412 + | .ok_or(ConstraintViolation::MissingAFloat)?,
|
1413 + | /* ServerBuilderGenerator.kt:546 */
|
1414 + | a_double: self
|
1415 + | .a_double
|
1416 + | /* ServerBuilderGenerator.kt:569 */
|
1417 + | .ok_or(ConstraintViolation::MissingADouble)?,
|
1418 + | /* ServerBuilderGenerator.kt:546 */
|
884 1419 | a_timestamp: self
|
885 1420 | .a_timestamp
|
1421 + | /* ServerBuilderGenerator.kt:569 */
|
886 1422 | .ok_or(ConstraintViolation::MissingATimestamp)?,
|
1423 + | /* ServerBuilderGenerator.kt:546 */
|
887 1424 | a_document: self
|
888 1425 | .a_document
|
1426 + | /* ServerBuilderGenerator.kt:569 */
|
889 1427 | .ok_or(ConstraintViolation::MissingADocument)?,
|
1428 + | /* ServerBuilderGenerator.kt:546 */
|
890 1429 | a_string_list: self
|
891 1430 | .a_string_list
|
1431 + | /* ServerBuilderGenerator.kt:569 */
|
892 1432 | .ok_or(ConstraintViolation::MissingAStringList)?,
|
1433 + | /* ServerBuilderGenerator.kt:546 */
|
893 1434 | a_string_map: self
|
894 1435 | .a_string_map
|
1436 + | /* ServerBuilderGenerator.kt:569 */
|
895 1437 | .ok_or(ConstraintViolation::MissingAStringMap)?,
|
1438 + | /* ServerBuilderGenerator.kt:546 */
|
896 1439 | a_string_set: self
|
897 1440 | .a_string_set
|
1441 + | /* ServerBuilderGenerator.kt:569 */
|
898 1442 | .ok_or(ConstraintViolation::MissingAStringSet)?,
|
899 - | a_blob: self.a_blob.ok_or(ConstraintViolation::MissingABlob)?,
|
900 - | a_union: self.a_union.ok_or(ConstraintViolation::MissingAUnion)?,
|
901 - | })
|
902 - | }
|
1443 + | /* ServerBuilderGenerator.kt:546 */
|
1444 + | a_blob: self
|
1445 + | .a_blob
|
1446 + | /* ServerBuilderGenerator.kt:569 */
|
1447 + | .ok_or(ConstraintViolation::MissingABlob)?,
|
1448 + | /* ServerBuilderGenerator.kt:546 */
|
1449 + | a_union: self
|
1450 + | .a_union
|
1451 + | /* ServerBuilderGenerator.kt:569 */
|
1452 + | .ok_or(ConstraintViolation::MissingAUnion)?,
|
1453 + | /* ServerBuilderGenerator.kt:542 */
|
1454 + | }, /* ServerBuilderGenerator.kt:287 */
|
1455 + | )
|
1456 + | /* ServerBuilderGenerator.kt:283 */
|
1457 + | }
|
1458 + | /* ServerBuilderGenerator.kt:215 */
|
903 1459 | }
|
1460 + |
|
1461 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
904 1462 | }
|
905 - | /// See [`EmptyStructure`](crate::model::EmptyStructure).
|
1463 + | /// /* ServerBuilderGenerator.kt:171 */See [`EmptyStructure`](crate::model::EmptyStructure).
|
906 1464 | pub mod empty_structure {
|
907 1465 |
|
1466 + | /* ServerBuilderGenerator.kt:461 */
|
908 1467 | impl ::std::convert::From<Builder> for crate::model::EmptyStructure {
|
909 1468 | fn from(builder: Builder) -> Self {
|
910 1469 | builder.build()
|
911 1470 | }
|
912 1471 | }
|
913 - | /// A builder for [`EmptyStructure`](crate::model::EmptyStructure).
|
1472 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EmptyStructure`](crate::model::EmptyStructure).
|
1473 + | /* RustType.kt:516 */
|
914 1474 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
915 - | pub struct Builder {}
|
1475 + | /* ServerBuilderGenerator.kt:211 */
|
1476 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
1477 + | /* ServerBuilderGenerator.kt:215 */
|
916 1478 | impl Builder {
|
917 - | /// Consumes the builder and constructs a [`EmptyStructure`](crate::model::EmptyStructure).
|
1479 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EmptyStructure`](crate::model::EmptyStructure).
|
1480 + | /* ServerBuilderGenerator.kt:271 */
|
918 1481 | pub fn build(self) -> crate::model::EmptyStructure {
|
919 1482 | self.build_enforcing_all_constraints()
|
920 1483 | }
|
1484 + | /* ServerBuilderGenerator.kt:283 */
|
921 1485 | fn build_enforcing_all_constraints(self) -> crate::model::EmptyStructure {
|
922 - | crate::model::EmptyStructure {}
|
1486 + | /* ServerBuilderGenerator.kt:542 */
|
1487 + | crate::model::EmptyStructure {
|
1488 + | /* ServerBuilderGenerator.kt:542 */}
|
1489 + | /* ServerBuilderGenerator.kt:283 */
|
923 1490 | }
|
1491 + | /* ServerBuilderGenerator.kt:215 */
|
924 1492 | }
|
1493 + |
|
1494 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
925 1495 | }
|