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:370 */
|
25 36 | impl ValidationExceptionField {
|
26 - | /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
37 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
38 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
27 39 | pub fn builder() -> crate::model::validation_exception_field::Builder {
|
40 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
28 41 | crate::model::validation_exception_field::Builder::default()
|
42 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
29 43 | }
|
44 + | /* ServerCodegenVisitor.kt:370 */
|
30 45 | }
|
31 46 |
|
47 + | /* UnionGenerator.kt:67 */
|
32 48 | #[allow(missing_docs)] // documentation missing in model
|
49 + | /* RustType.kt:516 */
|
33 50 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
34 - | pub enum Event {
|
51 + | pub /* UnionGenerator.kt:85 */ enum Event {
|
52 + | /* UnionGenerator.kt:90 */
|
35 53 | #[allow(missing_docs)] // documentation missing in model
|
54 + | /* UnionGenerator.kt:190 */
|
36 55 | RegularMessage(crate::model::EventStreamRegularMessage),
|
56 + | /* UnionGenerator.kt:85 */
|
37 57 | }
|
58 + | /* UnionGenerator.kt:111 */
|
38 59 | impl Event {
|
60 + | /* RustType.kt:516 */
|
39 61 | #[allow(irrefutable_let_patterns)]
|
62 + | /* UnionGenerator.kt:217 */
|
40 63 | /// Tries to convert the enum instance into [`RegularMessage`](crate::model::Event::RegularMessage), extracting the inner [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
64 + | /* UnionGenerator.kt:222 */
|
41 65 | /// Returns `Err(&Self)` if it can't be converted.
|
66 + | /* UnionGenerator.kt:223 */
|
42 67 | pub fn as_regular_message(
|
43 68 | &self,
|
44 69 | ) -> ::std::result::Result<&crate::model::EventStreamRegularMessage, &Self> {
|
70 + | /* UnionGenerator.kt:227 */
|
45 71 | if let Event::RegularMessage(val) = &self {
|
46 72 | ::std::result::Result::Ok(val)
|
47 73 | } else {
|
48 74 | ::std::result::Result::Err(self)
|
49 75 | }
|
76 + | /* UnionGenerator.kt:223 */
|
50 77 | }
|
78 + | /* UnionGenerator.kt:121 */
|
51 79 | /// Returns true if this is a [`RegularMessage`](crate::model::Event::RegularMessage).
|
80 + | /* UnionGenerator.kt:122 */
|
52 81 | pub fn is_regular_message(&self) -> bool {
|
82 + | /* UnionGenerator.kt:123 */
|
53 83 | self.as_regular_message().is_ok()
|
84 + | /* UnionGenerator.kt:122 */
|
54 85 | }
|
86 + | /* UnionGenerator.kt:111 */
|
55 87 | }
|
56 88 |
|
89 + | /* StructureGenerator.kt:197 */
|
57 90 | #[allow(missing_docs)] // documentation missing in model
|
91 + | /* RustType.kt:516 */
|
58 92 | #[derive(
|
59 93 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
60 94 | )]
|
61 - | pub struct EventStreamRegularMessage {
|
95 + | pub /* StructureGenerator.kt:201 */ struct EventStreamRegularMessage {
|
96 + | /* StructureGenerator.kt:231 */
|
62 97 | #[allow(missing_docs)] // documentation missing in model
|
63 98 | pub message_content: ::std::option::Option<::std::string::String>,
|
99 + | /* StructureGenerator.kt:201 */
|
64 100 | }
|
101 + | /* StructureGenerator.kt:135 */
|
65 102 | impl EventStreamRegularMessage {
|
103 + | /* StructureGenerator.kt:231 */
|
66 104 | #[allow(missing_docs)] // documentation missing in model
|
105 + | /* StructureGenerator.kt:166 */
|
67 106 | pub fn message_content(&self) -> ::std::option::Option<&str> {
|
107 + | /* StructureGenerator.kt:169 */
|
68 108 | self.message_content.as_deref()
|
109 + | /* StructureGenerator.kt:166 */
|
69 110 | }
|
111 + | /* StructureGenerator.kt:135 */
|
70 112 | }
|
113 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
71 114 | impl crate::constrained::Constrained for crate::model::EventStreamRegularMessage {
|
72 115 | type Unconstrained = crate::model::event_stream_regular_message_internal::Builder;
|
73 116 | }
|
117 + | /* ServerCodegenVisitor.kt:370 */
|
74 118 | impl EventStreamRegularMessage {
|
75 - | /// Creates a new builder-style object to manufacture [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
119 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
120 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
76 121 | pub fn builder() -> crate::model::event_stream_regular_message::Builder {
|
122 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
77 123 | crate::model::event_stream_regular_message::Builder::default()
|
124 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
78 125 | }
|
126 + | /* ServerCodegenVisitor.kt:370 */
|
79 127 | }
|
80 128 |
|
129 + | /* EnumGenerator.kt:154 */
|
81 130 | #[allow(missing_docs)] // documentation missing in model
|
131 + | /* RustType.kt:516 */
|
82 132 | #[derive(
|
83 133 | ::std::clone::Clone,
|
84 134 | ::std::cmp::Eq,
|
85 135 | ::std::cmp::Ord,
|
86 136 | ::std::cmp::PartialEq,
|
87 137 | ::std::cmp::PartialOrd,
|
88 138 | ::std::fmt::Debug,
|
89 139 | ::std::hash::Hash,
|
90 140 | )]
|
91 - | pub enum EnumString {
|
141 + | pub /* EnumGenerator.kt:267 */ enum EnumString {
|
142 + | /* EnumGenerator.kt:154 */
|
92 143 | #[allow(missing_docs)] // documentation missing in model
|
144 + | /* EnumGenerator.kt:143 */
|
93 145 | M256Mega,
|
146 + | /* EnumGenerator.kt:154 */
|
94 147 | #[allow(missing_docs)] // documentation missing in model
|
148 + | /* EnumGenerator.kt:143 */
|
95 149 | T2Micro,
|
150 + | /* EnumGenerator.kt:154 */
|
96 151 | #[allow(missing_docs)] // documentation missing in model
|
152 + | /* EnumGenerator.kt:143 */
|
97 153 | T2Nano,
|
154 + | /* EnumGenerator.kt:267 */
|
98 155 | }
|
99 156 | pub(crate) mod enum_string_internal {
|
100 157 | #[derive(Debug, PartialEq)]
|
101 158 | pub struct ConstraintViolation(pub(crate) ::std::string::String);
|
102 159 |
|
103 160 | impl ::std::fmt::Display for ConstraintViolation {
|
104 161 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
105 162 | write!(
|
106 163 | f,
|
107 164 | r#"Value provided for 'com.amazonaws.constraints#EnumString' failed to satisfy constraint: Member must satisfy enum value set: [t2.nano, t2.micro, m256.mega]"#
|
108 165 | )
|
109 166 | }
|
110 167 | }
|
111 168 |
|
112 169 | impl ::std::error::Error for ConstraintViolation {}
|
113 170 | impl ConstraintViolation {
|
114 171 | pub(crate) fn as_validation_exception_field(
|
115 172 | self,
|
116 173 | path: ::std::string::String,
|
117 174 | ) -> crate::model::ValidationExceptionField {
|
118 175 | crate::model::ValidationExceptionField {
|
119 176 | message: format!(
|
120 177 | r#"Value at '{}' failed to satisfy constraint: Member must satisfy enum value set: [t2.nano, t2.micro, m256.mega]"#,
|
121 178 | &path
|
122 179 | ),
|
123 180 | path,
|
124 181 | }
|
125 182 | }
|
126 183 | }
|
184 + |
|
185 + | /* ServerEnumGenerator.kt:46 */
|
127 186 | }
|
187 + | /* ServerEnumGenerator.kt:85 */
|
128 188 | impl ::std::convert::TryFrom<&str> for EnumString {
|
129 189 | type Error = crate::model::enum_string_internal::ConstraintViolation;
|
130 190 | fn try_from(
|
131 191 | s: &str,
|
132 192 | ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<&str>>::Error> {
|
133 193 | match s {
|
134 194 | "m256.mega" => Ok(EnumString::M256Mega),
|
135 195 | "t2.micro" => Ok(EnumString::T2Micro),
|
136 196 | "t2.nano" => Ok(EnumString::T2Nano),
|
137 197 | _ => Err(crate::model::enum_string_internal::ConstraintViolation(
|
138 198 | s.to_owned(),
|
139 199 | )),
|
140 200 | }
|
141 201 | }
|
142 202 | }
|
143 203 | impl ::std::convert::TryFrom<::std::string::String> for EnumString {
|
144 204 | type Error = crate::model::enum_string_internal::ConstraintViolation;
|
145 205 | fn try_from(
|
146 206 | s: ::std::string::String,
|
147 207 | ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<::std::string::String>>::Error>
|
148 208 | {
|
149 209 | s.as_str().try_into()
|
150 210 | }
|
151 211 | }
|
212 + | /* ServerEnumGenerator.kt:145 */
|
152 213 | impl std::str::FromStr for EnumString {
|
153 214 | type Err = crate::model::enum_string_internal::ConstraintViolation;
|
154 215 | fn from_str(s: &str) -> std::result::Result<Self, <Self as std::str::FromStr>::Err> {
|
155 216 | Self::try_from(s)
|
156 217 | }
|
157 218 | }
|
219 + | /* EnumGenerator.kt:274 */
|
158 220 | impl EnumString {
|
159 221 | /// Returns the `&str` value of the enum member.
|
160 222 | pub fn as_str(&self) -> &str {
|
161 223 | match self {
|
162 224 | EnumString::M256Mega => "m256.mega",
|
163 225 | EnumString::T2Micro => "t2.micro",
|
164 226 | EnumString::T2Nano => "t2.nano",
|
165 227 | }
|
166 228 | }
|
167 229 | /// Returns all the `&str` representations of the enum members.
|
168 230 | pub const fn values() -> &'static [&'static str] {
|
169 231 | &["m256.mega", "t2.micro", "t2.nano"]
|
170 232 | }
|
171 233 | }
|
234 + | /* EnumGenerator.kt:223 */
|
172 235 | impl ::std::convert::AsRef<str> for EnumString {
|
173 236 | fn as_ref(&self) -> &str {
|
174 237 | self.as_str()
|
175 238 | }
|
176 239 | }
|
240 + | /* ConstrainedTraitForEnumGenerator.kt:36 */
|
177 241 | impl crate::constrained::Constrained for EnumString {
|
178 242 | type Unconstrained = ::std::string::String;
|
179 243 | }
|
180 244 |
|
181 245 | impl ::std::convert::From<::std::string::String>
|
182 246 | for crate::constrained::MaybeConstrained<crate::model::EnumString>
|
183 247 | {
|
184 248 | fn from(value: ::std::string::String) -> Self {
|
185 249 | Self::Unconstrained(value)
|
186 250 | }
|
187 251 | }
|
188 252 |
|
253 + | /* ConstrainedMapGenerator.kt:78 */
|
189 254 | #[allow(missing_docs)] // documentation missing in model
|
190 - | ///
|
255 + | /// /* ConstrainedMapGenerator.kt:79 */
|
191 256 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
192 257 | /// [constraint traits]. Use [`ConBMap::try_from`] to construct values of this type.
|
193 258 | ///
|
194 259 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
195 260 | ///
|
261 + | /* RustType.kt:516 */
|
196 262 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
197 - | pub(crate) struct ConBMap(
|
263 + | pub(crate) /* ConstrainedMapGenerator.kt:82 */ struct ConBMap(
|
198 264 | pub(crate) ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
|
199 265 | );
|
266 + | /* ConstrainedMapGenerator.kt:83 */
|
200 267 | impl ConBMap {
|
268 + | /* ConstrainedMapGenerator.kt:95 */
|
201 269 | /// Consumes the value, returning the underlying [`::std::collections::HashMap<::std::string::String, crate::model::LengthString>`].
|
202 270 | pub fn into_inner(
|
203 271 | self,
|
204 272 | ) -> ::std::collections::HashMap<::std::string::String, crate::model::LengthString> {
|
205 273 | self.0
|
206 274 | }
|
275 + | /* ConstrainedMapGenerator.kt:83 */
|
207 276 | }
|
277 + | /* ConstrainedMapGenerator.kt:106 */
|
208 278 | impl
|
209 279 | ::std::convert::TryFrom<
|
210 280 | ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
|
211 281 | > for ConBMap
|
212 282 | {
|
213 283 | type Error = crate::model::con_b_map_internal::ConstraintViolation;
|
214 284 |
|
215 285 | /// Constructs a `ConBMap` from an [`::std::collections::HashMap<::std::string::String, crate::model::LengthString>`], failing when the provided value does not satisfy the modeled constraints.
|
216 286 | fn try_from(
|
217 287 | value: ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
|
218 288 | ) -> ::std::result::Result<Self, Self::Error> {
|
219 289 | let length = value.len();
|
220 290 | if (1..=69).contains(&length) {
|
221 291 | Ok(Self(value))
|
222 292 | } else {
|
223 293 | Err(crate::model::con_b_map_internal::ConstraintViolation::Length(length))
|
224 294 | }
|
225 295 | }
|
226 296 | }
|
227 297 |
|
228 298 | impl ::std::convert::From<ConBMap>
|
229 299 | for ::std::collections::HashMap<::std::string::String, crate::model::LengthString>
|
230 300 | {
|
231 301 | fn from(value: ConBMap) -> Self {
|
232 302 | value.into_inner()
|
233 303 | }
|
234 304 | }
|
305 + | /* ConstrainedMapGenerator.kt:146 */
|
235 306 | impl ::std::convert::From<ConBMap>
|
236 307 | for ::std::collections::HashMap<::std::string::String, ::std::string::String>
|
237 308 | {
|
238 309 | fn from(value: ConBMap) -> Self {
|
239 310 | value
|
240 311 | .into_inner()
|
241 312 | .into_iter()
|
242 313 | .map(|(k, v)| (k, v.into()))
|
243 314 | .collect()
|
244 315 | }
|
245 316 | }
|
317 + | /* ConstrainedMapGenerator.kt:164 */
|
246 318 | impl crate::constrained::Constrained for ConBMap {
|
247 319 | type Unconstrained = crate::unconstrained::con_b_map_unconstrained::ConBMapUnconstrained;
|
248 320 | }
|
249 321 |
|
322 + | /* ConstrainedStringGenerator.kt:82 */
|
250 323 | #[allow(missing_docs)] // documentation missing in model
|
251 - | ///
|
324 + | /// /* ConstrainedStringGenerator.kt:83 */
|
252 325 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
253 326 | /// [constraint traits]. Use [`LengthString::try_from`] to construct values of this type.
|
254 327 | ///
|
255 328 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
256 329 | ///
|
330 + | /* RustType.kt:516 */
|
257 331 | #[derive(
|
258 332 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
259 333 | )]
|
260 - | pub(crate) struct LengthString(pub(crate) ::std::string::String);
|
334 + | pub(crate) /* ConstrainedStringGenerator.kt:86 */ struct LengthString(
|
335 + | pub(crate) ::std::string::String,
|
336 + | );
|
337 + | /* RustType.kt:516 */
|
261 338 | #[allow(dead_code)]
|
339 + | /* ConstrainedStringGenerator.kt:90 */
|
262 340 | impl LengthString {
|
263 341 | /// Extracts a string slice containing the entire underlying `String`.
|
264 342 | pub fn as_str(&self) -> &str {
|
265 343 | &self.0
|
266 344 | }
|
267 345 |
|
268 346 | /// Returns an immutable reference to the underlying [`::std::string::String`].
|
269 347 | pub fn inner(&self) -> &::std::string::String {
|
270 348 | &self.0
|
271 349 | }
|
272 350 |
|
273 351 | /// Consumes the value, returning the underlying [`::std::string::String`].
|
274 352 | pub fn into_inner(self) -> ::std::string::String {
|
275 353 | self.0
|
276 354 | }
|
277 355 | }
|
356 + | /* TraitInfo.kt:41 */
|
278 357 | impl LengthString {
|
279 358 | fn check_length(
|
280 359 | string: &str,
|
281 360 | ) -> ::std::result::Result<(), crate::model::length_string_internal::ConstraintViolation> {
|
282 361 | let length = string.chars().count();
|
283 362 |
|
284 363 | if (2..=69).contains(&length) {
|
285 364 | Ok(())
|
286 365 | } else {
|
287 366 | Err(crate::model::length_string_internal::ConstraintViolation::Length(length))
|
288 367 | }
|
289 368 | }
|
290 369 | }
|
370 + | /* TraitInfo.kt:57 */
|
291 371 | impl ::std::convert::TryFrom<::std::string::String> for LengthString {
|
292 372 | type Error = crate::model::length_string_internal::ConstraintViolation;
|
293 373 |
|
294 374 | /// Constructs a `LengthString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
|
295 375 | fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
|
296 376 | Self::check_length(&value)?;
|
297 377 |
|
298 378 | Ok(Self(value))
|
299 379 | }
|
300 380 | }
|
381 + | /* ConstrainedStringGenerator.kt:112 */
|
301 382 | impl crate::constrained::Constrained for LengthString {
|
302 383 | type Unconstrained = ::std::string::String;
|
303 384 | }
|
304 385 |
|
305 386 | impl ::std::convert::From<::std::string::String>
|
306 387 | for crate::constrained::MaybeConstrained<crate::model::LengthString>
|
307 388 | {
|
308 389 | fn from(value: ::std::string::String) -> Self {
|
309 390 | Self::Unconstrained(value)
|
310 391 | }
|
311 392 | }
|
312 393 |
|
313 394 | impl ::std::fmt::Display for LengthString {
|
314 395 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
315 396 | self.0.fmt(f)
|
316 397 | }
|
317 398 | }
|
318 399 |
|
319 400 | impl ::std::convert::From<LengthString> for ::std::string::String {
|
320 401 | fn from(value: LengthString) -> Self {
|
321 402 | value.into_inner()
|
322 403 | }
|
323 404 | }
|
324 405 |
|
406 + | /* ConstrainedStringGenerator.kt:82 */
|
325 407 | #[allow(missing_docs)] // documentation missing in model
|
326 - | ///
|
408 + | /// /* ConstrainedStringGenerator.kt:83 */
|
327 409 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
328 410 | /// [constraint traits]. Use [`LengthPatternString::try_from`] to construct values of this type.
|
329 411 | ///
|
330 412 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
331 413 | ///
|
414 + | /* RustType.kt:516 */
|
332 415 | #[derive(
|
333 416 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
334 417 | )]
|
335 - | pub(crate) struct LengthPatternString(pub(crate) ::std::string::String);
|
418 + | pub(crate) /* ConstrainedStringGenerator.kt:86 */ struct LengthPatternString(
|
419 + | pub(crate) ::std::string::String,
|
420 + | );
|
421 + | /* RustType.kt:516 */
|
336 422 | #[allow(dead_code)]
|
423 + | /* ConstrainedStringGenerator.kt:90 */
|
337 424 | impl LengthPatternString {
|
338 425 | /// Extracts a string slice containing the entire underlying `String`.
|
339 426 | pub fn as_str(&self) -> &str {
|
340 427 | &self.0
|
341 428 | }
|
342 429 |
|
343 430 | /// Returns an immutable reference to the underlying [`::std::string::String`].
|
344 431 | pub fn inner(&self) -> &::std::string::String {
|
345 432 | &self.0
|
346 433 | }
|
347 434 |
|
348 435 | /// Consumes the value, returning the underlying [`::std::string::String`].
|
349 436 | pub fn into_inner(self) -> ::std::string::String {
|
350 437 | self.0
|
351 438 | }
|
352 439 | }
|
440 + | /* TraitInfo.kt:41 */
|
353 441 | impl LengthPatternString {
|
354 442 | fn check_length(
|
355 443 | string: &str,
|
356 444 | ) -> ::std::result::Result<(), crate::model::length_pattern_string_internal::ConstraintViolation>
|
357 445 | {
|
358 446 | let length = string.chars().count();
|
359 447 |
|
360 448 | if (5..=10).contains(&length) {
|
361 449 | Ok(())
|
362 450 | } else {
|
363 451 | Err(crate::model::length_pattern_string_internal::ConstraintViolation::Length(length))
|
364 452 | }
|
365 453 | }
|
366 454 |
|
367 455 | fn check_pattern(
|
368 456 | string: ::std::string::String,
|
369 457 | ) -> ::std::result::Result<
|
370 458 | ::std::string::String,
|
371 459 | crate::model::length_pattern_string_internal::ConstraintViolation,
|
372 460 | > {
|
373 461 | let regex = Self::compile_regex();
|
374 462 |
|
375 463 | if regex.is_match(&string) {
|
376 464 | Ok(string)
|
377 465 | } else {
|
378 466 | Err(crate::model::length_pattern_string_internal::ConstraintViolation::Pattern(string))
|
379 467 | }
|
380 468 | }
|
381 469 |
|
382 470 | /// Attempts to compile the regex for this constrained type's `@pattern`.
|
383 471 | /// This can fail if the specified regex is not supported by the `::regex` crate.
|
384 472 | pub fn compile_regex() -> &'static ::regex::Regex {
|
385 473 | static REGEX: std::sync::LazyLock<::regex::Regex> = std::sync::LazyLock::new(|| {
|
386 474 | ::regex::Regex::new(r#"[a-f0-5]*"#).expect(r#"The regular expression [a-f0-5]* is not supported by the `regex` crate; feel free to file an issue under https://github.com/smithy-lang/smithy-rs/issues for support"#)
|
387 475 | });
|
388 476 |
|
389 477 | ®EX
|
390 478 | }
|
391 479 | }
|
480 + | /* TraitInfo.kt:57 */
|
392 481 | impl ::std::convert::TryFrom<::std::string::String> for LengthPatternString {
|
393 482 | type Error = crate::model::length_pattern_string_internal::ConstraintViolation;
|
394 483 |
|
395 484 | /// Constructs a `LengthPatternString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
|
396 485 | fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
|
397 486 | Self::check_length(&value)?;
|
398 487 |
|
399 488 | let value = Self::check_pattern(value)?;
|
400 489 |
|
401 490 | Ok(Self(value))
|
402 491 | }
|
403 492 | }
|
493 + | /* ConstrainedStringGenerator.kt:112 */
|
404 494 | impl crate::constrained::Constrained for LengthPatternString {
|
405 495 | type Unconstrained = ::std::string::String;
|
406 496 | }
|
407 497 |
|
408 498 | impl ::std::convert::From<::std::string::String>
|
409 499 | for crate::constrained::MaybeConstrained<crate::model::LengthPatternString>
|
410 500 | {
|
411 501 | fn from(value: ::std::string::String) -> Self {
|
412 502 | Self::Unconstrained(value)
|
413 503 | }
|
414 504 | }
|
415 505 |
|
416 506 | impl ::std::fmt::Display for LengthPatternString {
|
417 507 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
418 508 | self.0.fmt(f)
|
419 509 | }
|
420 510 | }
|
421 511 |
|
422 512 | impl ::std::convert::From<LengthPatternString> for ::std::string::String {
|
423 513 | fn from(value: LengthPatternString) -> Self {
|
424 514 | value.into_inner()
|
425 515 | }
|
426 516 | }
|
427 517 |
|
518 + | /* RustType.kt:516 */
|
428 519 | #[cfg(test)]
|
520 + | /* ConstrainedStringGenerator.kt:205 */
|
429 521 | mod test_length_pattern_string {
|
430 522 | #[test]
|
431 523 | fn regex_compiles() {
|
432 524 | crate::model::LengthPatternString::compile_regex();
|
433 525 | }
|
526 + |
|
527 + | /* ConstrainedStringGenerator.kt:205 */
|
434 528 | }
|
435 529 |
|
530 + | /* ConstrainedStringGenerator.kt:82 */
|
436 531 | #[allow(missing_docs)] // documentation missing in model
|
437 - | ///
|
532 + | /// /* ConstrainedStringGenerator.kt:83 */
|
438 533 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
439 534 | /// [constraint traits]. Use [`PatternString::try_from`] to construct values of this type.
|
440 535 | ///
|
441 536 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
442 537 | ///
|
538 + | /* RustType.kt:516 */
|
443 539 | #[derive(
|
444 540 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
445 541 | )]
|
446 - | pub(crate) struct PatternString(pub(crate) ::std::string::String);
|
542 + | pub(crate) /* ConstrainedStringGenerator.kt:86 */ struct PatternString(
|
543 + | pub(crate) ::std::string::String,
|
544 + | );
|
545 + | /* RustType.kt:516 */
|
447 546 | #[allow(dead_code)]
|
547 + | /* ConstrainedStringGenerator.kt:90 */
|
448 548 | impl PatternString {
|
449 549 | /// Extracts a string slice containing the entire underlying `String`.
|
450 550 | pub fn as_str(&self) -> &str {
|
451 551 | &self.0
|
452 552 | }
|
453 553 |
|
454 554 | /// Returns an immutable reference to the underlying [`::std::string::String`].
|
455 555 | pub fn inner(&self) -> &::std::string::String {
|
456 556 | &self.0
|
457 557 | }
|
458 558 |
|
459 559 | /// Consumes the value, returning the underlying [`::std::string::String`].
|
460 560 | pub fn into_inner(self) -> ::std::string::String {
|
461 561 | self.0
|
462 562 | }
|
463 563 | }
|
564 + | /* TraitInfo.kt:41 */
|
464 565 | impl PatternString {
|
465 566 | fn check_pattern(
|
466 567 | string: ::std::string::String,
|
467 568 | ) -> ::std::result::Result<
|
468 569 | ::std::string::String,
|
469 570 | crate::model::pattern_string_internal::ConstraintViolation,
|
470 571 | > {
|
471 572 | let regex = Self::compile_regex();
|
472 573 |
|
473 574 | if regex.is_match(&string) {
|
474 575 | Ok(string)
|
475 576 | } else {
|
476 577 | Err(crate::model::pattern_string_internal::ConstraintViolation::Pattern(string))
|
477 578 | }
|
478 579 | }
|
479 580 |
|
480 581 | /// Attempts to compile the regex for this constrained type's `@pattern`.
|
481 582 | /// This can fail if the specified regex is not supported by the `::regex` crate.
|
482 583 | pub fn compile_regex() -> &'static ::regex::Regex {
|
483 584 | static REGEX: std::sync::LazyLock<::regex::Regex> = std::sync::LazyLock::new(|| {
|
484 585 | ::regex::Regex::new(r#"[a-d]{5}"#).expect(r#"The regular expression [a-d]{5} is not supported by the `regex` crate; feel free to file an issue under https://github.com/smithy-lang/smithy-rs/issues for support"#)
|
485 586 | });
|
486 587 |
|
487 588 | ®EX
|
488 589 | }
|
489 590 | }
|
591 + | /* TraitInfo.kt:57 */
|
490 592 | impl ::std::convert::TryFrom<::std::string::String> for PatternString {
|
491 593 | type Error = crate::model::pattern_string_internal::ConstraintViolation;
|
492 594 |
|
493 595 | /// Constructs a `PatternString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
|
494 596 | fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
|
495 597 | let value = Self::check_pattern(value)?;
|
496 598 |
|
497 599 | Ok(Self(value))
|
498 600 | }
|
499 601 | }
|
602 + | /* ConstrainedStringGenerator.kt:112 */
|
500 603 | impl crate::constrained::Constrained for PatternString {
|
501 604 | type Unconstrained = ::std::string::String;
|
502 605 | }
|
503 606 |
|
504 607 | impl ::std::convert::From<::std::string::String>
|
505 608 | for crate::constrained::MaybeConstrained<crate::model::PatternString>
|
506 609 | {
|
507 610 | fn from(value: ::std::string::String) -> Self {
|
508 611 | Self::Unconstrained(value)
|
509 612 | }
|
510 613 | }
|
511 614 |
|
512 615 | impl ::std::fmt::Display for PatternString {
|
513 616 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
514 617 | self.0.fmt(f)
|
515 618 | }
|
516 619 | }
|
517 620 |
|
518 621 | impl ::std::convert::From<PatternString> for ::std::string::String {
|
519 622 | fn from(value: PatternString) -> Self {
|
520 623 | value.into_inner()
|
521 624 | }
|
522 625 | }
|
523 626 |
|
627 + | /* RustType.kt:516 */
|
524 628 | #[cfg(test)]
|
629 + | /* ConstrainedStringGenerator.kt:205 */
|
525 630 | mod test_pattern_string {
|
526 631 | #[test]
|
527 632 | fn regex_compiles() {
|
528 633 | crate::model::PatternString::compile_regex();
|
529 634 | }
|
635 + |
|
636 + | /* ConstrainedStringGenerator.kt:205 */
|
530 637 | }
|
531 638 |
|
639 + | /* ConstrainedCollectionGenerator.kt:93 */
|
532 640 | #[allow(missing_docs)] // documentation missing in model
|
533 - | ///
|
641 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
534 642 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
535 643 | /// [constraint traits]. Use [`LengthListOfPatternString::try_from`] to construct values of this type.
|
536 644 | ///
|
537 645 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
538 646 | ///
|
647 + | /* RustType.kt:516 */
|
539 648 | #[derive(
|
540 649 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
541 650 | )]
|
542 - | pub(crate) struct LengthListOfPatternString(
|
651 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct LengthListOfPatternString(
|
543 652 | pub(crate) ::std::vec::Vec<crate::model::PatternString>,
|
544 653 | );
|
654 + | /* ConstrainedCollectionGenerator.kt:104 */
|
545 655 | impl LengthListOfPatternString {
|
656 + | /* ConstrainedCollectionGenerator.kt:116 */
|
546 657 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::PatternString>`].
|
547 658 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::PatternString> {
|
548 659 | self.0
|
549 660 | }
|
550 661 |
|
551 662 | fn check_length(
|
552 663 | length: usize,
|
553 664 | ) -> ::std::result::Result<
|
554 665 | (),
|
555 666 | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
556 667 | > {
|
557 668 | if (12..=39).contains(&length) {
|
558 669 | Ok(())
|
559 670 | } else {
|
560 671 | Err(
|
561 672 | crate::model::length_list_of_pattern_string_internal::ConstraintViolation::Length(
|
562 673 | length,
|
563 674 | ),
|
564 675 | )
|
565 676 | }
|
566 677 | }
|
678 + | /* ConstrainedCollectionGenerator.kt:104 */
|
567 679 | }
|
680 + | /* ConstrainedCollectionGenerator.kt:133 */
|
568 681 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::PatternString>>
|
569 682 | for LengthListOfPatternString
|
570 683 | {
|
571 684 | type Error = crate::model::length_list_of_pattern_string_internal::ConstraintViolation;
|
572 685 |
|
573 686 | /// Constructs a `LengthListOfPatternString` from an [`::std::vec::Vec<crate::model::PatternString>`], failing when the provided value does not satisfy the modeled constraints.
|
574 687 | fn try_from(
|
575 688 | value: ::std::vec::Vec<crate::model::PatternString>,
|
576 689 | ) -> ::std::result::Result<Self, Self::Error> {
|
577 690 | Self::check_length(value.len())?;
|
578 691 |
|
579 692 | Ok(Self(value))
|
580 693 | }
|
581 694 | }
|
582 695 |
|
583 696 | impl ::std::convert::From<LengthListOfPatternString>
|
584 697 | for ::std::vec::Vec<crate::model::PatternString>
|
585 698 | {
|
586 699 | fn from(value: LengthListOfPatternString) -> Self {
|
587 700 | value.into_inner()
|
588 701 | }
|
589 702 | }
|
703 + | /* ConstrainedCollectionGenerator.kt:163 */
|
590 704 | impl ::std::convert::From<LengthListOfPatternString> for ::std::vec::Vec<::std::string::String> {
|
591 705 | fn from(value: LengthListOfPatternString) -> Self {
|
592 706 | value.into_inner().into_iter().map(|v| v.into()).collect()
|
593 707 | }
|
594 708 | }
|
709 + | /* ConstrainedCollectionGenerator.kt:181 */
|
595 710 | impl crate::constrained::Constrained for LengthListOfPatternString {
|
596 711 | type Unconstrained = crate::unconstrained::length_list_of_pattern_string_unconstrained::LengthListOfPatternStringUnconstrained;
|
597 712 | }
|
598 713 |
|
714 + | /* ConstrainedCollectionGenerator.kt:93 */
|
599 715 | #[allow(missing_docs)] // documentation missing in model
|
600 - | ///
|
716 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
601 717 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
602 718 | /// [constraint traits]. Use [`SetOfLengthString::try_from`] to construct values of this type.
|
603 719 | ///
|
604 720 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
605 721 | ///
|
722 + | /* RustType.kt:516 */
|
606 723 | #[derive(
|
607 724 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
608 725 | )]
|
609 - | pub(crate) struct SetOfLengthString(pub(crate) ::std::vec::Vec<crate::model::LengthString>);
|
726 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct SetOfLengthString(
|
727 + | pub(crate) ::std::vec::Vec<crate::model::LengthString>,
|
728 + | );
|
729 + | /* ConstrainedCollectionGenerator.kt:104 */
|
610 730 | impl SetOfLengthString {
|
731 + | /* ConstrainedCollectionGenerator.kt:116 */
|
611 732 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::LengthString>`].
|
612 733 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::LengthString> {
|
613 734 | self.0
|
614 735 | }
|
615 736 |
|
616 737 | fn check_unique_items(
|
617 738 | items: ::std::vec::Vec<crate::model::LengthString>,
|
618 739 | ) -> ::std::result::Result<
|
619 740 | ::std::vec::Vec<crate::model::LengthString>,
|
620 741 | crate::model::set_of_length_string_internal::ConstraintViolation,
|
621 742 | > {
|
622 743 | let mut seen = ::std::collections::HashMap::new();
|
623 744 | let mut duplicate_indices = ::std::vec::Vec::new();
|
624 745 | for (idx, item) in items.iter().enumerate() {
|
625 746 | if let Some(prev_idx) = seen.insert(item, idx) {
|
626 747 | duplicate_indices.push(prev_idx);
|
627 748 | }
|
628 749 | }
|
629 750 |
|
630 751 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
631 752 | for idx in &duplicate_indices {
|
632 753 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
633 754 | last_duplicate_indices.push(prev_idx);
|
634 755 | }
|
635 756 | }
|
636 757 | duplicate_indices.extend(last_duplicate_indices);
|
637 758 |
|
638 759 | if !duplicate_indices.is_empty() {
|
639 760 | debug_assert!(duplicate_indices.len() >= 2);
|
640 761 | Err(
|
641 762 | crate::model::set_of_length_string_internal::ConstraintViolation::UniqueItems {
|
642 763 | duplicate_indices,
|
643 764 | original: items,
|
644 765 | },
|
645 766 | )
|
646 767 | } else {
|
647 768 | Ok(items)
|
648 769 | }
|
649 770 | }
|
771 + | /* ConstrainedCollectionGenerator.kt:104 */
|
650 772 | }
|
773 + | /* ConstrainedCollectionGenerator.kt:133 */
|
651 774 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::LengthString>> for SetOfLengthString {
|
652 775 | type Error = crate::model::set_of_length_string_internal::ConstraintViolation;
|
653 776 |
|
654 777 | /// Constructs a `SetOfLengthString` from an [`::std::vec::Vec<crate::model::LengthString>`], failing when the provided value does not satisfy the modeled constraints.
|
655 778 | fn try_from(
|
656 779 | value: ::std::vec::Vec<crate::model::LengthString>,
|
657 780 | ) -> ::std::result::Result<Self, Self::Error> {
|
658 781 | let value = Self::check_unique_items(value)?;
|
659 782 |
|
660 783 | Ok(Self(value))
|
661 784 | }
|
662 785 | }
|
663 786 |
|
664 787 | impl ::std::convert::From<SetOfLengthString> for ::std::vec::Vec<crate::model::LengthString> {
|
665 788 | fn from(value: SetOfLengthString) -> Self {
|
666 789 | value.into_inner()
|
667 790 | }
|
668 791 | }
|
792 + | /* ConstrainedCollectionGenerator.kt:163 */
|
669 793 | impl ::std::convert::From<SetOfLengthString> for ::std::vec::Vec<::std::string::String> {
|
670 794 | fn from(value: SetOfLengthString) -> Self {
|
671 795 | value.into_inner().into_iter().map(|v| v.into()).collect()
|
672 796 | }
|
673 797 | }
|
798 + | /* ConstrainedCollectionGenerator.kt:181 */
|
674 799 | impl crate::constrained::Constrained for SetOfLengthString {
|
675 800 | type Unconstrained =
|
676 801 | crate::unconstrained::set_of_length_string_unconstrained::SetOfLengthStringUnconstrained;
|
677 802 | }
|
678 803 |
|
804 + | /* StructureGenerator.kt:197 */
|
679 805 | #[allow(missing_docs)] // documentation missing in model
|
806 + | /* RustType.kt:516 */
|
680 807 | #[derive(
|
681 808 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
682 809 | )]
|
683 - | pub struct RecursiveShapesInputOutputNested1 {
|
810 + | pub /* StructureGenerator.kt:201 */ struct RecursiveShapesInputOutputNested1 {
|
811 + | /* StructureGenerator.kt:231 */
|
684 812 | #[allow(missing_docs)] // documentation missing in model
|
685 813 | pub recursive_member: ::std::boxed::Box<crate::model::RecursiveShapesInputOutputNested2>,
|
814 + | /* StructureGenerator.kt:201 */
|
686 815 | }
|
816 + | /* StructureGenerator.kt:135 */
|
687 817 | impl RecursiveShapesInputOutputNested1 {
|
818 + | /* StructureGenerator.kt:231 */
|
688 819 | #[allow(missing_docs)] // documentation missing in model
|
820 + | /* StructureGenerator.kt:166 */
|
689 821 | pub fn recursive_member(&self) -> &crate::model::RecursiveShapesInputOutputNested2 {
|
822 + | /* StructureGenerator.kt:171 */
|
690 823 | use std::ops::Deref;
|
691 824 | self.recursive_member.deref()
|
825 + | /* StructureGenerator.kt:166 */
|
692 826 | }
|
827 + | /* StructureGenerator.kt:135 */
|
693 828 | }
|
829 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
694 830 | impl crate::constrained::Constrained for crate::model::RecursiveShapesInputOutputNested1 {
|
695 831 | type Unconstrained = crate::model::recursive_shapes_input_output_nested1_internal::Builder;
|
696 832 | }
|
833 + | /* ServerCodegenVisitor.kt:370 */
|
697 834 | impl RecursiveShapesInputOutputNested1 {
|
698 - | /// Creates a new builder-style object to manufacture [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
835 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
836 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
699 837 | pub fn builder() -> crate::model::recursive_shapes_input_output_nested1::Builder {
|
838 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
700 839 | crate::model::recursive_shapes_input_output_nested1::Builder::default()
|
840 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
701 841 | }
|
842 + | /* ServerCodegenVisitor.kt:370 */
|
702 843 | }
|
703 844 |
|
845 + | /* StructureGenerator.kt:197 */
|
704 846 | #[allow(missing_docs)] // documentation missing in model
|
847 + | /* RustType.kt:516 */
|
705 848 | #[derive(
|
706 849 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
707 850 | )]
|
708 - | pub struct RecursiveShapesInputOutputNested2 {
|
851 + | pub /* StructureGenerator.kt:201 */ struct RecursiveShapesInputOutputNested2 {
|
852 + | /* StructureGenerator.kt:231 */
|
709 853 | #[allow(missing_docs)] // documentation missing in model
|
710 854 | pub recursive_member: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
855 + | /* StructureGenerator.kt:201 */
|
711 856 | }
|
857 + | /* StructureGenerator.kt:135 */
|
712 858 | impl RecursiveShapesInputOutputNested2 {
|
859 + | /* StructureGenerator.kt:231 */
|
713 860 | #[allow(missing_docs)] // documentation missing in model
|
861 + | /* StructureGenerator.kt:166 */
|
714 862 | pub fn recursive_member(
|
715 863 | &self,
|
716 864 | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
865 + | /* StructureGenerator.kt:170 */
|
717 866 | self.recursive_member.as_ref()
|
867 + | /* StructureGenerator.kt:166 */
|
718 868 | }
|
869 + | /* StructureGenerator.kt:135 */
|
719 870 | }
|
871 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
720 872 | impl crate::constrained::Constrained for crate::model::RecursiveShapesInputOutputNested2 {
|
721 873 | type Unconstrained = crate::model::recursive_shapes_input_output_nested2_internal::Builder;
|
722 874 | }
|
875 + | /* ServerCodegenVisitor.kt:370 */
|
723 876 | impl RecursiveShapesInputOutputNested2 {
|
724 - | /// Creates a new builder-style object to manufacture [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
877 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
878 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
725 879 | pub fn builder() -> crate::model::recursive_shapes_input_output_nested2::Builder {
|
880 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
726 881 | crate::model::recursive_shapes_input_output_nested2::Builder::default()
|
882 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
727 883 | }
|
884 + | /* ServerCodegenVisitor.kt:370 */
|
728 885 | }
|
729 886 |
|
887 + | /* StructureGenerator.kt:197 */
|
730 888 | #[allow(missing_docs)] // documentation missing in model
|
889 + | /* RustType.kt:516 */
|
731 890 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
732 - | pub struct ConA {
|
891 + | pub /* StructureGenerator.kt:201 */ struct ConA {
|
892 + | /* StructureGenerator.kt:231 */
|
733 893 | #[allow(missing_docs)] // documentation missing in model
|
734 894 | pub con_b: crate::model::ConB,
|
895 + | /* StructureGenerator.kt:231 */
|
735 896 | #[allow(missing_docs)] // documentation missing in model
|
736 897 | pub opt_con_b: ::std::option::Option<crate::model::ConB>,
|
898 + | /* StructureGenerator.kt:231 */
|
737 899 | #[allow(missing_docs)] // documentation missing in model
|
738 900 | pub length_string: ::std::option::Option<::std::string::String>,
|
901 + | /* StructureGenerator.kt:231 */
|
739 902 | #[allow(missing_docs)] // documentation missing in model
|
740 903 | pub min_length_string: ::std::option::Option<::std::string::String>,
|
904 + | /* StructureGenerator.kt:231 */
|
741 905 | #[allow(missing_docs)] // documentation missing in model
|
742 906 | pub max_length_string: ::std::option::Option<::std::string::String>,
|
907 + | /* StructureGenerator.kt:231 */
|
743 908 | #[allow(missing_docs)] // documentation missing in model
|
744 909 | pub fixed_length_string: ::std::option::Option<::std::string::String>,
|
910 + | /* StructureGenerator.kt:231 */
|
745 911 | #[allow(missing_docs)] // documentation missing in model
|
746 912 | pub length_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
913 + | /* StructureGenerator.kt:231 */
|
747 914 | #[allow(missing_docs)] // documentation missing in model
|
748 915 | pub min_length_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
916 + | /* StructureGenerator.kt:231 */
|
749 917 | #[allow(missing_docs)] // documentation missing in model
|
750 918 | pub max_length_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
919 + | /* StructureGenerator.kt:231 */
|
751 920 | #[allow(missing_docs)] // documentation missing in model
|
752 921 | pub fixed_length_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
922 + | /* StructureGenerator.kt:231 */
|
753 923 | #[allow(missing_docs)] // documentation missing in model
|
754 924 | pub range_integer: i32,
|
925 + | /* StructureGenerator.kt:231 */
|
755 926 | #[allow(missing_docs)] // documentation missing in model
|
756 927 | pub min_range_integer: i32,
|
928 + | /* StructureGenerator.kt:231 */
|
757 929 | #[allow(missing_docs)] // documentation missing in model
|
758 930 | pub max_range_integer: i32,
|
931 + | /* StructureGenerator.kt:231 */
|
759 932 | #[allow(missing_docs)] // documentation missing in model
|
760 933 | pub fixed_value_integer: i32,
|
934 + | /* StructureGenerator.kt:231 */
|
761 935 | #[allow(missing_docs)] // documentation missing in model
|
762 936 | pub range_short: i16,
|
937 + | /* StructureGenerator.kt:231 */
|
763 938 | #[allow(missing_docs)] // documentation missing in model
|
764 939 | pub min_range_short: i16,
|
940 + | /* StructureGenerator.kt:231 */
|
765 941 | #[allow(missing_docs)] // documentation missing in model
|
766 942 | pub max_range_short: i16,
|
943 + | /* StructureGenerator.kt:231 */
|
767 944 | #[allow(missing_docs)] // documentation missing in model
|
768 945 | pub fixed_value_short: i16,
|
946 + | /* StructureGenerator.kt:231 */
|
769 947 | #[allow(missing_docs)] // documentation missing in model
|
770 948 | pub range_long: i64,
|
949 + | /* StructureGenerator.kt:231 */
|
771 950 | #[allow(missing_docs)] // documentation missing in model
|
772 951 | pub min_range_long: i64,
|
952 + | /* StructureGenerator.kt:231 */
|
773 953 | #[allow(missing_docs)] // documentation missing in model
|
774 954 | pub max_range_long: i64,
|
955 + | /* StructureGenerator.kt:231 */
|
775 956 | #[allow(missing_docs)] // documentation missing in model
|
776 957 | pub fixed_value_long: i64,
|
958 + | /* StructureGenerator.kt:231 */
|
777 959 | #[allow(missing_docs)] // documentation missing in model
|
778 960 | pub range_byte: i8,
|
961 + | /* StructureGenerator.kt:231 */
|
779 962 | #[allow(missing_docs)] // documentation missing in model
|
780 963 | pub min_range_byte: i8,
|
964 + | /* StructureGenerator.kt:231 */
|
781 965 | #[allow(missing_docs)] // documentation missing in model
|
782 966 | pub max_range_byte: i8,
|
967 + | /* StructureGenerator.kt:231 */
|
783 968 | #[allow(missing_docs)] // documentation missing in model
|
784 969 | pub fixed_value_byte: i8,
|
970 + | /* StructureGenerator.kt:231 */
|
785 971 | #[allow(missing_docs)] // documentation missing in model
|
786 972 | pub con_b_list: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>>,
|
973 + | /* StructureGenerator.kt:231 */
|
787 974 | #[allow(missing_docs)] // documentation missing in model
|
788 975 | pub length_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
976 + | /* StructureGenerator.kt:231 */
|
789 977 | #[allow(missing_docs)] // documentation missing in model
|
790 978 | pub sensitive_length_list:
|
791 979 | ::std::option::Option<::std::vec::Vec<crate::model::SensitiveStructure>>,
|
980 + | /* StructureGenerator.kt:231 */
|
792 981 | #[allow(missing_docs)] // documentation missing in model
|
793 982 | pub con_b_set: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
983 + | /* StructureGenerator.kt:231 */
|
794 984 | #[allow(missing_docs)] // documentation missing in model
|
795 985 | pub con_b_map: ::std::option::Option<
|
796 986 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
797 987 | >,
|
988 + | /* StructureGenerator.kt:231 */
|
798 989 | #[allow(missing_docs)] // documentation missing in model
|
799 990 | pub length_map: ::std::option::Option<
|
800 991 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
801 992 | >,
|
993 + | /* StructureGenerator.kt:231 */
|
802 994 | #[allow(missing_docs)] // documentation missing in model
|
803 995 | pub map_of_map_of_list_of_list_of_con_b: ::std::option::Option<
|
804 996 | ::std::collections::HashMap<
|
805 997 | ::std::string::String,
|
806 998 | ::std::collections::HashMap<
|
807 999 | ::std::string::String,
|
808 1000 | ::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>,
|
809 1001 | >,
|
810 1002 | >,
|
811 1003 | >,
|
1004 + | /* StructureGenerator.kt:231 */
|
812 1005 | #[allow(missing_docs)] // documentation missing in model
|
813 1006 | pub sparse_map: ::std::option::Option<
|
814 1007 | ::std::collections::HashMap<
|
815 1008 | ::std::string::String,
|
816 1009 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
817 1010 | >,
|
818 1011 | >,
|
1012 + | /* StructureGenerator.kt:231 */
|
819 1013 | #[allow(missing_docs)] // documentation missing in model
|
820 1014 | pub sparse_list:
|
821 1015 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
1016 + | /* StructureGenerator.kt:231 */
|
822 1017 | #[allow(missing_docs)] // documentation missing in model
|
823 1018 | pub sparse_length_map: ::std::option::Option<
|
824 1019 | ::std::collections::HashMap<
|
825 1020 | ::std::string::String,
|
826 1021 | ::std::option::Option<::std::string::String>,
|
827 1022 | >,
|
828 1023 | >,
|
1024 + | /* StructureGenerator.kt:231 */
|
829 1025 | #[allow(missing_docs)] // documentation missing in model
|
830 1026 | pub sparse_length_list:
|
831 1027 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
832 - | /// A union with constrained members.
|
1028 + | /// /* StructureGenerator.kt:231 */A union with constrained members.
|
833 1029 | pub constrained_union: ::std::option::Option<crate::model::ConstrainedUnion>,
|
1030 + | /* StructureGenerator.kt:231 */
|
834 1031 | #[allow(missing_docs)] // documentation missing in model
|
835 1032 | pub enum_string: ::std::option::Option<crate::model::EnumString>,
|
1033 + | /* StructureGenerator.kt:231 */
|
836 1034 | #[allow(missing_docs)] // documentation missing in model
|
837 1035 | pub list_of_length_string: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1036 + | /* StructureGenerator.kt:231 */
|
838 1037 | #[allow(missing_docs)] // documentation missing in model
|
839 1038 | pub set_of_length_string: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1039 + | /* StructureGenerator.kt:231 */
|
840 1040 | #[allow(missing_docs)] // documentation missing in model
|
841 1041 | pub map_of_length_string: ::std::option::Option<
|
842 1042 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
843 1043 | >,
|
1044 + | /* StructureGenerator.kt:231 */
|
844 1045 | #[allow(missing_docs)] // documentation missing in model
|
845 1046 | pub list_of_length_blob: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>>,
|
1047 + | /* StructureGenerator.kt:231 */
|
846 1048 | #[allow(missing_docs)] // documentation missing in model
|
847 1049 | pub map_of_length_blob: ::std::option::Option<
|
848 1050 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Blob>,
|
849 1051 | >,
|
1052 + | /* StructureGenerator.kt:231 */
|
850 1053 | #[allow(missing_docs)] // documentation missing in model
|
851 1054 | pub list_of_range_integer: ::std::option::Option<::std::vec::Vec<i32>>,
|
1055 + | /* StructureGenerator.kt:231 */
|
852 1056 | #[allow(missing_docs)] // documentation missing in model
|
853 1057 | pub set_of_range_integer: ::std::option::Option<::std::vec::Vec<i32>>,
|
1058 + | /* StructureGenerator.kt:231 */
|
854 1059 | #[allow(missing_docs)] // documentation missing in model
|
855 1060 | pub map_of_range_integer:
|
856 1061 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
1062 + | /* StructureGenerator.kt:231 */
|
857 1063 | #[allow(missing_docs)] // documentation missing in model
|
858 1064 | pub list_of_range_short: ::std::option::Option<::std::vec::Vec<i16>>,
|
1065 + | /* StructureGenerator.kt:231 */
|
859 1066 | #[allow(missing_docs)] // documentation missing in model
|
860 1067 | pub set_of_range_short: ::std::option::Option<::std::vec::Vec<i16>>,
|
1068 + | /* StructureGenerator.kt:231 */
|
861 1069 | #[allow(missing_docs)] // documentation missing in model
|
862 1070 | pub map_of_range_short:
|
863 1071 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i16>>,
|
1072 + | /* StructureGenerator.kt:231 */
|
864 1073 | #[allow(missing_docs)] // documentation missing in model
|
865 1074 | pub list_of_range_long: ::std::option::Option<::std::vec::Vec<i64>>,
|
1075 + | /* StructureGenerator.kt:231 */
|
866 1076 | #[allow(missing_docs)] // documentation missing in model
|
867 1077 | pub set_of_range_long: ::std::option::Option<::std::vec::Vec<i64>>,
|
1078 + | /* StructureGenerator.kt:231 */
|
868 1079 | #[allow(missing_docs)] // documentation missing in model
|
869 1080 | pub map_of_range_long:
|
870 1081 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i64>>,
|
1082 + | /* StructureGenerator.kt:231 */
|
871 1083 | #[allow(missing_docs)] // documentation missing in model
|
872 1084 | pub list_of_range_byte: ::std::option::Option<::std::vec::Vec<i8>>,
|
1085 + | /* StructureGenerator.kt:231 */
|
873 1086 | #[allow(missing_docs)] // documentation missing in model
|
874 1087 | pub set_of_range_byte: ::std::option::Option<::std::vec::Vec<i8>>,
|
1088 + | /* StructureGenerator.kt:231 */
|
875 1089 | #[allow(missing_docs)] // documentation missing in model
|
876 1090 | pub map_of_range_byte:
|
877 1091 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i8>>,
|
1092 + | /* StructureGenerator.kt:231 */
|
878 1093 | #[allow(missing_docs)] // documentation missing in model
|
879 1094 | pub non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
1095 + | /* StructureGenerator.kt:231 */
|
880 1096 | #[allow(missing_docs)] // documentation missing in model
|
881 1097 | pub pattern_string: ::std::option::Option<::std::string::String>,
|
1098 + | /* StructureGenerator.kt:231 */
|
882 1099 | #[allow(missing_docs)] // documentation missing in model
|
883 1100 | pub map_of_pattern_string: ::std::option::Option<
|
884 1101 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
885 1102 | >,
|
1103 + | /* StructureGenerator.kt:231 */
|
886 1104 | #[allow(missing_docs)] // documentation missing in model
|
887 1105 | pub list_of_pattern_string: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1106 + | /* StructureGenerator.kt:231 */
|
888 1107 | #[allow(missing_docs)] // documentation missing in model
|
889 1108 | pub set_of_pattern_string: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1109 + | /* StructureGenerator.kt:231 */
|
890 1110 | #[allow(missing_docs)] // documentation missing in model
|
891 1111 | pub length_length_pattern_string: ::std::option::Option<::std::string::String>,
|
1112 + | /* StructureGenerator.kt:231 */
|
892 1113 | #[allow(missing_docs)] // documentation missing in model
|
893 1114 | pub map_of_length_pattern_string: ::std::option::Option<
|
894 1115 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
895 1116 | >,
|
1117 + | /* StructureGenerator.kt:231 */
|
896 1118 | #[allow(missing_docs)] // documentation missing in model
|
897 1119 | pub list_of_length_pattern_string:
|
898 1120 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1121 + | /* StructureGenerator.kt:231 */
|
899 1122 | #[allow(missing_docs)] // documentation missing in model
|
900 1123 | pub set_of_length_pattern_string: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1124 + | /* StructureGenerator.kt:231 */
|
901 1125 | #[allow(missing_docs)] // documentation missing in model
|
902 1126 | pub length_list_of_pattern_string:
|
903 1127 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1128 + | /* StructureGenerator.kt:231 */
|
904 1129 | #[allow(missing_docs)] // documentation missing in model
|
905 1130 | pub length_set_of_pattern_string: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1131 + | /* StructureGenerator.kt:201 */
|
906 1132 | }
|
1133 + | /* StructureGenerator.kt:135 */
|
907 1134 | impl ConA {
|
1135 + | /* StructureGenerator.kt:231 */
|
908 1136 | #[allow(missing_docs)] // documentation missing in model
|
1137 + | /* StructureGenerator.kt:166 */
|
909 1138 | pub fn con_b(&self) -> &crate::model::ConB {
|
1139 + | /* StructureGenerator.kt:172 */
|
910 1140 | &self.con_b
|
1141 + | /* StructureGenerator.kt:166 */
|
911 1142 | }
|
1143 + | /* StructureGenerator.kt:231 */
|
912 1144 | #[allow(missing_docs)] // documentation missing in model
|
1145 + | /* StructureGenerator.kt:166 */
|
913 1146 | pub fn opt_con_b(&self) -> ::std::option::Option<&crate::model::ConB> {
|
1147 + | /* StructureGenerator.kt:170 */
|
914 1148 | self.opt_con_b.as_ref()
|
1149 + | /* StructureGenerator.kt:166 */
|
915 1150 | }
|
1151 + | /* StructureGenerator.kt:231 */
|
916 1152 | #[allow(missing_docs)] // documentation missing in model
|
1153 + | /* StructureGenerator.kt:166 */
|
917 1154 | pub fn length_string(&self) -> ::std::option::Option<&str> {
|
1155 + | /* StructureGenerator.kt:169 */
|
918 1156 | self.length_string.as_deref()
|
1157 + | /* StructureGenerator.kt:166 */
|
919 1158 | }
|
1159 + | /* StructureGenerator.kt:231 */
|
920 1160 | #[allow(missing_docs)] // documentation missing in model
|
1161 + | /* StructureGenerator.kt:166 */
|
921 1162 | pub fn min_length_string(&self) -> ::std::option::Option<&str> {
|
1163 + | /* StructureGenerator.kt:169 */
|
922 1164 | self.min_length_string.as_deref()
|
1165 + | /* StructureGenerator.kt:166 */
|
923 1166 | }
|
1167 + | /* StructureGenerator.kt:231 */
|
924 1168 | #[allow(missing_docs)] // documentation missing in model
|
1169 + | /* StructureGenerator.kt:166 */
|
925 1170 | pub fn max_length_string(&self) -> ::std::option::Option<&str> {
|
1171 + | /* StructureGenerator.kt:169 */
|
926 1172 | self.max_length_string.as_deref()
|
1173 + | /* StructureGenerator.kt:166 */
|
927 1174 | }
|
1175 + | /* StructureGenerator.kt:231 */
|
928 1176 | #[allow(missing_docs)] // documentation missing in model
|
1177 + | /* StructureGenerator.kt:166 */
|
929 1178 | pub fn fixed_length_string(&self) -> ::std::option::Option<&str> {
|
1179 + | /* StructureGenerator.kt:169 */
|
930 1180 | self.fixed_length_string.as_deref()
|
1181 + | /* StructureGenerator.kt:166 */
|
931 1182 | }
|
1183 + | /* StructureGenerator.kt:231 */
|
932 1184 | #[allow(missing_docs)] // documentation missing in model
|
1185 + | /* StructureGenerator.kt:166 */
|
933 1186 | pub fn length_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
1187 + | /* StructureGenerator.kt:170 */
|
934 1188 | self.length_blob.as_ref()
|
1189 + | /* StructureGenerator.kt:166 */
|
935 1190 | }
|
1191 + | /* StructureGenerator.kt:231 */
|
936 1192 | #[allow(missing_docs)] // documentation missing in model
|
1193 + | /* StructureGenerator.kt:166 */
|
937 1194 | pub fn min_length_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
1195 + | /* StructureGenerator.kt:170 */
|
938 1196 | self.min_length_blob.as_ref()
|
1197 + | /* StructureGenerator.kt:166 */
|
939 1198 | }
|
1199 + | /* StructureGenerator.kt:231 */
|
940 1200 | #[allow(missing_docs)] // documentation missing in model
|
1201 + | /* StructureGenerator.kt:166 */
|
941 1202 | pub fn max_length_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
1203 + | /* StructureGenerator.kt:170 */
|
942 1204 | self.max_length_blob.as_ref()
|
1205 + | /* StructureGenerator.kt:166 */
|
943 1206 | }
|
1207 + | /* StructureGenerator.kt:231 */
|
944 1208 | #[allow(missing_docs)] // documentation missing in model
|
1209 + | /* StructureGenerator.kt:166 */
|
945 1210 | pub fn fixed_length_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
1211 + | /* StructureGenerator.kt:170 */
|
946 1212 | self.fixed_length_blob.as_ref()
|
1213 + | /* StructureGenerator.kt:166 */
|
947 1214 | }
|
1215 + | /* StructureGenerator.kt:231 */
|
948 1216 | #[allow(missing_docs)] // documentation missing in model
|
1217 + | /* StructureGenerator.kt:166 */
|
949 1218 | pub fn range_integer(&self) -> i32 {
|
1219 + | /* StructureGenerator.kt:168 */
|
950 1220 | self.range_integer
|
1221 + | /* StructureGenerator.kt:166 */
|
951 1222 | }
|
1223 + | /* StructureGenerator.kt:231 */
|
952 1224 | #[allow(missing_docs)] // documentation missing in model
|
1225 + | /* StructureGenerator.kt:166 */
|
953 1226 | pub fn min_range_integer(&self) -> i32 {
|
1227 + | /* StructureGenerator.kt:168 */
|
954 1228 | self.min_range_integer
|
1229 + | /* StructureGenerator.kt:166 */
|
955 1230 | }
|
1231 + | /* StructureGenerator.kt:231 */
|
956 1232 | #[allow(missing_docs)] // documentation missing in model
|
1233 + | /* StructureGenerator.kt:166 */
|
957 1234 | pub fn max_range_integer(&self) -> i32 {
|
1235 + | /* StructureGenerator.kt:168 */
|
958 1236 | self.max_range_integer
|
1237 + | /* StructureGenerator.kt:166 */
|
959 1238 | }
|
1239 + | /* StructureGenerator.kt:231 */
|
960 1240 | #[allow(missing_docs)] // documentation missing in model
|
1241 + | /* StructureGenerator.kt:166 */
|
961 1242 | pub fn fixed_value_integer(&self) -> i32 {
|
1243 + | /* StructureGenerator.kt:168 */
|
962 1244 | self.fixed_value_integer
|
1245 + | /* StructureGenerator.kt:166 */
|
963 1246 | }
|
1247 + | /* StructureGenerator.kt:231 */
|
964 1248 | #[allow(missing_docs)] // documentation missing in model
|
1249 + | /* StructureGenerator.kt:166 */
|
965 1250 | pub fn range_short(&self) -> i16 {
|
1251 + | /* StructureGenerator.kt:168 */
|
966 1252 | self.range_short
|
1253 + | /* StructureGenerator.kt:166 */
|
967 1254 | }
|
1255 + | /* StructureGenerator.kt:231 */
|
968 1256 | #[allow(missing_docs)] // documentation missing in model
|
1257 + | /* StructureGenerator.kt:166 */
|
969 1258 | pub fn min_range_short(&self) -> i16 {
|
1259 + | /* StructureGenerator.kt:168 */
|
970 1260 | self.min_range_short
|
1261 + | /* StructureGenerator.kt:166 */
|
971 1262 | }
|
1263 + | /* StructureGenerator.kt:231 */
|
972 1264 | #[allow(missing_docs)] // documentation missing in model
|
1265 + | /* StructureGenerator.kt:166 */
|
973 1266 | pub fn max_range_short(&self) -> i16 {
|
1267 + | /* StructureGenerator.kt:168 */
|
974 1268 | self.max_range_short
|
1269 + | /* StructureGenerator.kt:166 */
|
975 1270 | }
|
1271 + | /* StructureGenerator.kt:231 */
|
976 1272 | #[allow(missing_docs)] // documentation missing in model
|
1273 + | /* StructureGenerator.kt:166 */
|
977 1274 | pub fn fixed_value_short(&self) -> i16 {
|
1275 + | /* StructureGenerator.kt:168 */
|
978 1276 | self.fixed_value_short
|
1277 + | /* StructureGenerator.kt:166 */
|
979 1278 | }
|
1279 + | /* StructureGenerator.kt:231 */
|
980 1280 | #[allow(missing_docs)] // documentation missing in model
|
1281 + | /* StructureGenerator.kt:166 */
|
981 1282 | pub fn range_long(&self) -> i64 {
|
1283 + | /* StructureGenerator.kt:168 */
|
982 1284 | self.range_long
|
1285 + | /* StructureGenerator.kt:166 */
|
983 1286 | }
|
1287 + | /* StructureGenerator.kt:231 */
|
984 1288 | #[allow(missing_docs)] // documentation missing in model
|
1289 + | /* StructureGenerator.kt:166 */
|
985 1290 | pub fn min_range_long(&self) -> i64 {
|
1291 + | /* StructureGenerator.kt:168 */
|
986 1292 | self.min_range_long
|
1293 + | /* StructureGenerator.kt:166 */
|
987 1294 | }
|
1295 + | /* StructureGenerator.kt:231 */
|
988 1296 | #[allow(missing_docs)] // documentation missing in model
|
1297 + | /* StructureGenerator.kt:166 */
|
989 1298 | pub fn max_range_long(&self) -> i64 {
|
1299 + | /* StructureGenerator.kt:168 */
|
990 1300 | self.max_range_long
|
1301 + | /* StructureGenerator.kt:166 */
|
991 1302 | }
|
1303 + | /* StructureGenerator.kt:231 */
|
992 1304 | #[allow(missing_docs)] // documentation missing in model
|
1305 + | /* StructureGenerator.kt:166 */
|
993 1306 | pub fn fixed_value_long(&self) -> i64 {
|
1307 + | /* StructureGenerator.kt:168 */
|
994 1308 | self.fixed_value_long
|
1309 + | /* StructureGenerator.kt:166 */
|
995 1310 | }
|
1311 + | /* StructureGenerator.kt:231 */
|
996 1312 | #[allow(missing_docs)] // documentation missing in model
|
1313 + | /* StructureGenerator.kt:166 */
|
997 1314 | pub fn range_byte(&self) -> i8 {
|
1315 + | /* StructureGenerator.kt:168 */
|
998 1316 | self.range_byte
|
1317 + | /* StructureGenerator.kt:166 */
|
999 1318 | }
|
1319 + | /* StructureGenerator.kt:231 */
|
1000 1320 | #[allow(missing_docs)] // documentation missing in model
|
1321 + | /* StructureGenerator.kt:166 */
|
1001 1322 | pub fn min_range_byte(&self) -> i8 {
|
1323 + | /* StructureGenerator.kt:168 */
|
1002 1324 | self.min_range_byte
|
1325 + | /* StructureGenerator.kt:166 */
|
1003 1326 | }
|
1327 + | /* StructureGenerator.kt:231 */
|
1004 1328 | #[allow(missing_docs)] // documentation missing in model
|
1329 + | /* StructureGenerator.kt:166 */
|
1005 1330 | pub fn max_range_byte(&self) -> i8 {
|
1331 + | /* StructureGenerator.kt:168 */
|
1006 1332 | self.max_range_byte
|
1333 + | /* StructureGenerator.kt:166 */
|
1007 1334 | }
|
1335 + | /* StructureGenerator.kt:231 */
|
1008 1336 | #[allow(missing_docs)] // documentation missing in model
|
1337 + | /* StructureGenerator.kt:166 */
|
1009 1338 | pub fn fixed_value_byte(&self) -> i8 {
|
1339 + | /* StructureGenerator.kt:168 */
|
1010 1340 | self.fixed_value_byte
|
1341 + | /* StructureGenerator.kt:166 */
|
1011 1342 | }
|
1343 + | /* StructureGenerator.kt:231 */
|
1012 1344 | #[allow(missing_docs)] // documentation missing in model
|
1345 + | /* StructureGenerator.kt:166 */
|
1013 1346 | pub fn con_b_list(&self) -> ::std::option::Option<&[::std::vec::Vec<crate::model::ConB>]> {
|
1347 + | /* StructureGenerator.kt:169 */
|
1014 1348 | self.con_b_list.as_deref()
|
1349 + | /* StructureGenerator.kt:166 */
|
1015 1350 | }
|
1351 + | /* StructureGenerator.kt:231 */
|
1016 1352 | #[allow(missing_docs)] // documentation missing in model
|
1353 + | /* StructureGenerator.kt:166 */
|
1017 1354 | pub fn length_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1355 + | /* StructureGenerator.kt:169 */
|
1018 1356 | self.length_list.as_deref()
|
1357 + | /* StructureGenerator.kt:166 */
|
1019 1358 | }
|
1359 + | /* StructureGenerator.kt:231 */
|
1020 1360 | #[allow(missing_docs)] // documentation missing in model
|
1361 + | /* StructureGenerator.kt:166 */
|
1021 1362 | pub fn sensitive_length_list(
|
1022 1363 | &self,
|
1023 1364 | ) -> ::std::option::Option<&[crate::model::SensitiveStructure]> {
|
1365 + | /* StructureGenerator.kt:169 */
|
1024 1366 | self.sensitive_length_list.as_deref()
|
1367 + | /* StructureGenerator.kt:166 */
|
1025 1368 | }
|
1369 + | /* StructureGenerator.kt:231 */
|
1026 1370 | #[allow(missing_docs)] // documentation missing in model
|
1371 + | /* StructureGenerator.kt:166 */
|
1027 1372 | pub fn con_b_set(&self) -> ::std::option::Option<&[::std::vec::Vec<::std::string::String>]> {
|
1373 + | /* StructureGenerator.kt:169 */
|
1028 1374 | self.con_b_set.as_deref()
|
1375 + | /* StructureGenerator.kt:166 */
|
1029 1376 | }
|
1377 + | /* StructureGenerator.kt:231 */
|
1030 1378 | #[allow(missing_docs)] // documentation missing in model
|
1379 + | /* StructureGenerator.kt:166 */
|
1031 1380 | pub fn con_b_map(
|
1032 1381 | &self,
|
1033 1382 | ) -> ::std::option::Option<
|
1034 1383 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1035 1384 | > {
|
1385 + | /* StructureGenerator.kt:170 */
|
1036 1386 | self.con_b_map.as_ref()
|
1387 + | /* StructureGenerator.kt:166 */
|
1037 1388 | }
|
1389 + | /* StructureGenerator.kt:231 */
|
1038 1390 | #[allow(missing_docs)] // documentation missing in model
|
1391 + | /* StructureGenerator.kt:166 */
|
1039 1392 | pub fn length_map(
|
1040 1393 | &self,
|
1041 1394 | ) -> ::std::option::Option<
|
1042 1395 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1043 1396 | > {
|
1397 + | /* StructureGenerator.kt:170 */
|
1044 1398 | self.length_map.as_ref()
|
1399 + | /* StructureGenerator.kt:166 */
|
1045 1400 | }
|
1401 + | /* StructureGenerator.kt:231 */
|
1046 1402 | #[allow(missing_docs)] // documentation missing in model
|
1403 + | /* StructureGenerator.kt:166 */
|
1047 1404 | pub fn map_of_map_of_list_of_list_of_con_b(
|
1048 1405 | &self,
|
1049 1406 | ) -> ::std::option::Option<
|
1050 1407 | &::std::collections::HashMap<
|
1051 1408 | ::std::string::String,
|
1052 1409 | ::std::collections::HashMap<
|
1053 1410 | ::std::string::String,
|
1054 1411 | ::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>,
|
1055 1412 | >,
|
1056 1413 | >,
|
1057 1414 | > {
|
1415 + | /* StructureGenerator.kt:170 */
|
1058 1416 | self.map_of_map_of_list_of_list_of_con_b.as_ref()
|
1417 + | /* StructureGenerator.kt:166 */
|
1059 1418 | }
|
1419 + | /* StructureGenerator.kt:231 */
|
1060 1420 | #[allow(missing_docs)] // documentation missing in model
|
1421 + | /* StructureGenerator.kt:166 */
|
1061 1422 | pub fn sparse_map(
|
1062 1423 | &self,
|
1063 1424 | ) -> ::std::option::Option<
|
1064 1425 | &::std::collections::HashMap<
|
1065 1426 | ::std::string::String,
|
1066 1427 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1067 1428 | >,
|
1068 1429 | > {
|
1430 + | /* StructureGenerator.kt:170 */
|
1069 1431 | self.sparse_map.as_ref()
|
1432 + | /* StructureGenerator.kt:166 */
|
1070 1433 | }
|
1434 + | /* StructureGenerator.kt:231 */
|
1071 1435 | #[allow(missing_docs)] // documentation missing in model
|
1436 + | /* StructureGenerator.kt:166 */
|
1072 1437 | pub fn sparse_list(
|
1073 1438 | &self,
|
1074 1439 | ) -> ::std::option::Option<&[::std::option::Option<::std::string::String>]> {
|
1440 + | /* StructureGenerator.kt:169 */
|
1075 1441 | self.sparse_list.as_deref()
|
1442 + | /* StructureGenerator.kt:166 */
|
1076 1443 | }
|
1444 + | /* StructureGenerator.kt:231 */
|
1077 1445 | #[allow(missing_docs)] // documentation missing in model
|
1446 + | /* StructureGenerator.kt:166 */
|
1078 1447 | pub fn sparse_length_map(
|
1079 1448 | &self,
|
1080 1449 | ) -> ::std::option::Option<
|
1081 1450 | &::std::collections::HashMap<
|
1082 1451 | ::std::string::String,
|
1083 1452 | ::std::option::Option<::std::string::String>,
|
1084 1453 | >,
|
1085 1454 | > {
|
1455 + | /* StructureGenerator.kt:170 */
|
1086 1456 | self.sparse_length_map.as_ref()
|
1457 + | /* StructureGenerator.kt:166 */
|
1087 1458 | }
|
1459 + | /* StructureGenerator.kt:231 */
|
1088 1460 | #[allow(missing_docs)] // documentation missing in model
|
1461 + | /* StructureGenerator.kt:166 */
|
1089 1462 | pub fn sparse_length_list(
|
1090 1463 | &self,
|
1091 1464 | ) -> ::std::option::Option<&[::std::option::Option<::std::string::String>]> {
|
1465 + | /* StructureGenerator.kt:169 */
|
1092 1466 | self.sparse_length_list.as_deref()
|
1467 + | /* StructureGenerator.kt:166 */
|
1093 1468 | }
|
1094 - | /// A union with constrained members.
|
1469 + | /// /* StructureGenerator.kt:231 */A union with constrained members.
|
1470 + | /* StructureGenerator.kt:166 */
|
1095 1471 | pub fn constrained_union(&self) -> ::std::option::Option<&crate::model::ConstrainedUnion> {
|
1472 + | /* StructureGenerator.kt:170 */
|
1096 1473 | self.constrained_union.as_ref()
|
1474 + | /* StructureGenerator.kt:166 */
|
1097 1475 | }
|
1476 + | /* StructureGenerator.kt:231 */
|
1098 1477 | #[allow(missing_docs)] // documentation missing in model
|
1478 + | /* StructureGenerator.kt:166 */
|
1099 1479 | pub fn enum_string(&self) -> ::std::option::Option<&crate::model::EnumString> {
|
1480 + | /* StructureGenerator.kt:170 */
|
1100 1481 | self.enum_string.as_ref()
|
1482 + | /* StructureGenerator.kt:166 */
|
1101 1483 | }
|
1484 + | /* StructureGenerator.kt:231 */
|
1102 1485 | #[allow(missing_docs)] // documentation missing in model
|
1486 + | /* StructureGenerator.kt:166 */
|
1103 1487 | pub fn list_of_length_string(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1488 + | /* StructureGenerator.kt:169 */
|
1104 1489 | self.list_of_length_string.as_deref()
|
1490 + | /* StructureGenerator.kt:166 */
|
1105 1491 | }
|
1492 + | /* StructureGenerator.kt:231 */
|
1106 1493 | #[allow(missing_docs)] // documentation missing in model
|
1494 + | /* StructureGenerator.kt:166 */
|
1107 1495 | pub fn set_of_length_string(
|
1108 1496 | &self,
|
1109 1497 | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1498 + | /* StructureGenerator.kt:170 */
|
1110 1499 | self.set_of_length_string.as_ref()
|
1500 + | /* StructureGenerator.kt:166 */
|
1111 1501 | }
|
1502 + | /* StructureGenerator.kt:231 */
|
1112 1503 | #[allow(missing_docs)] // documentation missing in model
|
1504 + | /* StructureGenerator.kt:166 */
|
1113 1505 | pub fn map_of_length_string(
|
1114 1506 | &self,
|
1115 1507 | ) -> ::std::option::Option<
|
1116 1508 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1117 1509 | > {
|
1510 + | /* StructureGenerator.kt:170 */
|
1118 1511 | self.map_of_length_string.as_ref()
|
1512 + | /* StructureGenerator.kt:166 */
|
1119 1513 | }
|
1514 + | /* StructureGenerator.kt:231 */
|
1120 1515 | #[allow(missing_docs)] // documentation missing in model
|
1516 + | /* StructureGenerator.kt:166 */
|
1121 1517 | pub fn list_of_length_blob(&self) -> ::std::option::Option<&[::aws_smithy_types::Blob]> {
|
1518 + | /* StructureGenerator.kt:169 */
|
1122 1519 | self.list_of_length_blob.as_deref()
|
1520 + | /* StructureGenerator.kt:166 */
|
1123 1521 | }
|
1522 + | /* StructureGenerator.kt:231 */
|
1124 1523 | #[allow(missing_docs)] // documentation missing in model
|
1524 + | /* StructureGenerator.kt:166 */
|
1125 1525 | pub fn map_of_length_blob(
|
1126 1526 | &self,
|
1127 1527 | ) -> ::std::option::Option<
|
1128 1528 | &::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Blob>,
|
1129 1529 | > {
|
1530 + | /* StructureGenerator.kt:170 */
|
1130 1531 | self.map_of_length_blob.as_ref()
|
1532 + | /* StructureGenerator.kt:166 */
|
1131 1533 | }
|
1534 + | /* StructureGenerator.kt:231 */
|
1132 1535 | #[allow(missing_docs)] // documentation missing in model
|
1536 + | /* StructureGenerator.kt:166 */
|
1133 1537 | pub fn list_of_range_integer(&self) -> ::std::option::Option<&[i32]> {
|
1538 + | /* StructureGenerator.kt:169 */
|
1134 1539 | self.list_of_range_integer.as_deref()
|
1540 + | /* StructureGenerator.kt:166 */
|
1135 1541 | }
|
1542 + | /* StructureGenerator.kt:231 */
|
1136 1543 | #[allow(missing_docs)] // documentation missing in model
|
1544 + | /* StructureGenerator.kt:166 */
|
1137 1545 | pub fn set_of_range_integer(&self) -> ::std::option::Option<&[i32]> {
|
1546 + | /* StructureGenerator.kt:169 */
|
1138 1547 | self.set_of_range_integer.as_deref()
|
1548 + | /* StructureGenerator.kt:166 */
|
1139 1549 | }
|
1550 + | /* StructureGenerator.kt:231 */
|
1140 1551 | #[allow(missing_docs)] // documentation missing in model
|
1552 + | /* StructureGenerator.kt:166 */
|
1141 1553 | pub fn map_of_range_integer(
|
1142 1554 | &self,
|
1143 1555 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
|
1556 + | /* StructureGenerator.kt:170 */
|
1144 1557 | self.map_of_range_integer.as_ref()
|
1558 + | /* StructureGenerator.kt:166 */
|
1145 1559 | }
|
1560 + | /* StructureGenerator.kt:231 */
|
1146 1561 | #[allow(missing_docs)] // documentation missing in model
|
1562 + | /* StructureGenerator.kt:166 */
|
1147 1563 | pub fn list_of_range_short(&self) -> ::std::option::Option<&[i16]> {
|
1564 + | /* StructureGenerator.kt:169 */
|
1148 1565 | self.list_of_range_short.as_deref()
|
1566 + | /* StructureGenerator.kt:166 */
|
1149 1567 | }
|
1568 + | /* StructureGenerator.kt:231 */
|
1150 1569 | #[allow(missing_docs)] // documentation missing in model
|
1570 + | /* StructureGenerator.kt:166 */
|
1151 1571 | pub fn set_of_range_short(&self) -> ::std::option::Option<&[i16]> {
|
1572 + | /* StructureGenerator.kt:169 */
|
1152 1573 | self.set_of_range_short.as_deref()
|
1574 + | /* StructureGenerator.kt:166 */
|
1153 1575 | }
|
1576 + | /* StructureGenerator.kt:231 */
|
1154 1577 | #[allow(missing_docs)] // documentation missing in model
|
1578 + | /* StructureGenerator.kt:166 */
|
1155 1579 | pub fn map_of_range_short(
|
1156 1580 | &self,
|
1157 1581 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i16>> {
|
1582 + | /* StructureGenerator.kt:170 */
|
1158 1583 | self.map_of_range_short.as_ref()
|
1584 + | /* StructureGenerator.kt:166 */
|
1159 1585 | }
|
1586 + | /* StructureGenerator.kt:231 */
|
1160 1587 | #[allow(missing_docs)] // documentation missing in model
|
1588 + | /* StructureGenerator.kt:166 */
|
1161 1589 | pub fn list_of_range_long(&self) -> ::std::option::Option<&[i64]> {
|
1590 + | /* StructureGenerator.kt:169 */
|
1162 1591 | self.list_of_range_long.as_deref()
|
1592 + | /* StructureGenerator.kt:166 */
|
1163 1593 | }
|
1594 + | /* StructureGenerator.kt:231 */
|
1164 1595 | #[allow(missing_docs)] // documentation missing in model
|
1596 + | /* StructureGenerator.kt:166 */
|
1165 1597 | pub fn set_of_range_long(&self) -> ::std::option::Option<&[i64]> {
|
1598 + | /* StructureGenerator.kt:169 */
|
1166 1599 | self.set_of_range_long.as_deref()
|
1600 + | /* StructureGenerator.kt:166 */
|
1167 1601 | }
|
1602 + | /* StructureGenerator.kt:231 */
|
1168 1603 | #[allow(missing_docs)] // documentation missing in model
|
1604 + | /* StructureGenerator.kt:166 */
|
1169 1605 | pub fn map_of_range_long(
|
1170 1606 | &self,
|
1171 1607 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i64>> {
|
1608 + | /* StructureGenerator.kt:170 */
|
1172 1609 | self.map_of_range_long.as_ref()
|
1610 + | /* StructureGenerator.kt:166 */
|
1173 1611 | }
|
1612 + | /* StructureGenerator.kt:231 */
|
1174 1613 | #[allow(missing_docs)] // documentation missing in model
|
1614 + | /* StructureGenerator.kt:166 */
|
1175 1615 | pub fn list_of_range_byte(&self) -> ::std::option::Option<&[i8]> {
|
1616 + | /* StructureGenerator.kt:169 */
|
1176 1617 | self.list_of_range_byte.as_deref()
|
1618 + | /* StructureGenerator.kt:166 */
|
1177 1619 | }
|
1620 + | /* StructureGenerator.kt:231 */
|
1178 1621 | #[allow(missing_docs)] // documentation missing in model
|
1622 + | /* StructureGenerator.kt:166 */
|
1179 1623 | pub fn set_of_range_byte(&self) -> ::std::option::Option<&[i8]> {
|
1624 + | /* StructureGenerator.kt:169 */
|
1180 1625 | self.set_of_range_byte.as_deref()
|
1626 + | /* StructureGenerator.kt:166 */
|
1181 1627 | }
|
1628 + | /* StructureGenerator.kt:231 */
|
1182 1629 | #[allow(missing_docs)] // documentation missing in model
|
1630 + | /* StructureGenerator.kt:166 */
|
1183 1631 | pub fn map_of_range_byte(
|
1184 1632 | &self,
|
1185 1633 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i8>> {
|
1634 + | /* StructureGenerator.kt:170 */
|
1186 1635 | self.map_of_range_byte.as_ref()
|
1636 + | /* StructureGenerator.kt:166 */
|
1187 1637 | }
|
1638 + | /* StructureGenerator.kt:231 */
|
1188 1639 | #[allow(missing_docs)] // documentation missing in model
|
1640 + | /* StructureGenerator.kt:166 */
|
1189 1641 | pub fn non_streaming_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
1642 + | /* StructureGenerator.kt:170 */
|
1190 1643 | self.non_streaming_blob.as_ref()
|
1644 + | /* StructureGenerator.kt:166 */
|
1191 1645 | }
|
1646 + | /* StructureGenerator.kt:231 */
|
1192 1647 | #[allow(missing_docs)] // documentation missing in model
|
1648 + | /* StructureGenerator.kt:166 */
|
1193 1649 | pub fn pattern_string(&self) -> ::std::option::Option<&str> {
|
1650 + | /* StructureGenerator.kt:169 */
|
1194 1651 | self.pattern_string.as_deref()
|
1652 + | /* StructureGenerator.kt:166 */
|
1195 1653 | }
|
1654 + | /* StructureGenerator.kt:231 */
|
1196 1655 | #[allow(missing_docs)] // documentation missing in model
|
1656 + | /* StructureGenerator.kt:166 */
|
1197 1657 | pub fn map_of_pattern_string(
|
1198 1658 | &self,
|
1199 1659 | ) -> ::std::option::Option<
|
1200 1660 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1201 1661 | > {
|
1662 + | /* StructureGenerator.kt:170 */
|
1202 1663 | self.map_of_pattern_string.as_ref()
|
1664 + | /* StructureGenerator.kt:166 */
|
1203 1665 | }
|
1666 + | /* StructureGenerator.kt:231 */
|
1204 1667 | #[allow(missing_docs)] // documentation missing in model
|
1668 + | /* StructureGenerator.kt:166 */
|
1205 1669 | pub fn list_of_pattern_string(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1670 + | /* StructureGenerator.kt:169 */
|
1206 1671 | self.list_of_pattern_string.as_deref()
|
1672 + | /* StructureGenerator.kt:166 */
|
1207 1673 | }
|
1674 + | /* StructureGenerator.kt:231 */
|
1208 1675 | #[allow(missing_docs)] // documentation missing in model
|
1676 + | /* StructureGenerator.kt:166 */
|
1209 1677 | pub fn set_of_pattern_string(
|
1210 1678 | &self,
|
1211 1679 | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1680 + | /* StructureGenerator.kt:170 */
|
1212 1681 | self.set_of_pattern_string.as_ref()
|
1682 + | /* StructureGenerator.kt:166 */
|
1213 1683 | }
|
1684 + | /* StructureGenerator.kt:231 */
|
1214 1685 | #[allow(missing_docs)] // documentation missing in model
|
1686 + | /* StructureGenerator.kt:166 */
|
1215 1687 | pub fn length_length_pattern_string(&self) -> ::std::option::Option<&str> {
|
1688 + | /* StructureGenerator.kt:169 */
|
1216 1689 | self.length_length_pattern_string.as_deref()
|
1690 + | /* StructureGenerator.kt:166 */
|
1217 1691 | }
|
1692 + | /* StructureGenerator.kt:231 */
|
1218 1693 | #[allow(missing_docs)] // documentation missing in model
|
1694 + | /* StructureGenerator.kt:166 */
|
1219 1695 | pub fn map_of_length_pattern_string(
|
1220 1696 | &self,
|
1221 1697 | ) -> ::std::option::Option<
|
1222 1698 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1223 1699 | > {
|
1700 + | /* StructureGenerator.kt:170 */
|
1224 1701 | self.map_of_length_pattern_string.as_ref()
|
1702 + | /* StructureGenerator.kt:166 */
|
1225 1703 | }
|
1704 + | /* StructureGenerator.kt:231 */
|
1226 1705 | #[allow(missing_docs)] // documentation missing in model
|
1706 + | /* StructureGenerator.kt:166 */
|
1227 1707 | pub fn list_of_length_pattern_string(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1708 + | /* StructureGenerator.kt:169 */
|
1228 1709 | self.list_of_length_pattern_string.as_deref()
|
1710 + | /* StructureGenerator.kt:166 */
|
1229 1711 | }
|
1712 + | /* StructureGenerator.kt:231 */
|
1230 1713 | #[allow(missing_docs)] // documentation missing in model
|
1714 + | /* StructureGenerator.kt:166 */
|
1231 1715 | pub fn set_of_length_pattern_string(
|
1232 1716 | &self,
|
1233 1717 | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1718 + | /* StructureGenerator.kt:170 */
|
1234 1719 | self.set_of_length_pattern_string.as_ref()
|
1720 + | /* StructureGenerator.kt:166 */
|
1235 1721 | }
|
1722 + | /* StructureGenerator.kt:231 */
|
1236 1723 | #[allow(missing_docs)] // documentation missing in model
|
1724 + | /* StructureGenerator.kt:166 */
|
1237 1725 | pub fn length_list_of_pattern_string(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1726 + | /* StructureGenerator.kt:169 */
|
1238 1727 | self.length_list_of_pattern_string.as_deref()
|
1728 + | /* StructureGenerator.kt:166 */
|
1239 1729 | }
|
1730 + | /* StructureGenerator.kt:231 */
|
1240 1731 | #[allow(missing_docs)] // documentation missing in model
|
1732 + | /* StructureGenerator.kt:166 */
|
1241 1733 | pub fn length_set_of_pattern_string(
|
1242 1734 | &self,
|
1243 1735 | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1736 + | /* StructureGenerator.kt:170 */
|
1244 1737 | self.length_set_of_pattern_string.as_ref()
|
1738 + | /* StructureGenerator.kt:166 */
|
1245 1739 | }
|
1740 + | /* StructureGenerator.kt:135 */
|
1246 1741 | }
|
1742 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1247 1743 | impl crate::constrained::Constrained for crate::model::ConA {
|
1248 1744 | type Unconstrained = crate::model::con_a_internal::Builder;
|
1249 1745 | }
|
1746 + | /* ServerCodegenVisitor.kt:370 */
|
1250 1747 | impl ConA {
|
1251 - | /// Creates a new builder-style object to manufacture [`ConA`](crate::model::ConA).
|
1748 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConA`](crate::model::ConA).
|
1749 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1252 1750 | pub fn builder() -> crate::model::con_a::Builder {
|
1751 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1253 1752 | crate::model::con_a::Builder::default()
|
1753 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1254 1754 | }
|
1755 + | /* ServerCodegenVisitor.kt:370 */
|
1255 1756 | }
|
1256 1757 |
|
1758 + | /* ConstrainedCollectionGenerator.kt:93 */
|
1257 1759 | #[allow(missing_docs)] // documentation missing in model
|
1258 - | ///
|
1760 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
1259 1761 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
1260 1762 | /// [constraint traits]. Use [`LengthSetOfPatternString::try_from`] to construct values of this type.
|
1261 1763 | ///
|
1262 1764 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
1263 1765 | ///
|
1766 + | /* RustType.kt:516 */
|
1264 1767 | #[derive(
|
1265 1768 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1266 1769 | )]
|
1267 - | pub(crate) struct LengthSetOfPatternString(pub(crate) ::std::vec::Vec<crate::model::PatternString>);
|
1770 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct LengthSetOfPatternString(
|
1771 + | pub(crate) ::std::vec::Vec<crate::model::PatternString>,
|
1772 + | );
|
1773 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1268 1774 | impl LengthSetOfPatternString {
|
1775 + | /* ConstrainedCollectionGenerator.kt:116 */
|
1269 1776 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::PatternString>`].
|
1270 1777 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::PatternString> {
|
1271 1778 | self.0
|
1272 1779 | }
|
1273 1780 |
|
1274 1781 | fn check_length(
|
1275 1782 | length: usize,
|
1276 1783 | ) -> ::std::result::Result<
|
1277 1784 | (),
|
1278 1785 | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
1279 1786 | > {
|
1280 1787 | if (5..=9).contains(&length) {
|
1281 1788 | Ok(())
|
1282 1789 | } else {
|
1283 1790 | Err(
|
1284 1791 | crate::model::length_set_of_pattern_string_internal::ConstraintViolation::Length(
|
1285 1792 | length,
|
1286 1793 | ),
|
1287 1794 | )
|
1288 1795 | }
|
1289 1796 | }
|
1290 1797 |
|
1291 1798 | fn check_unique_items(
|
1292 1799 | items: ::std::vec::Vec<crate::model::PatternString>,
|
1293 1800 | ) -> ::std::result::Result<
|
1294 1801 | ::std::vec::Vec<crate::model::PatternString>,
|
1295 1802 | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
1296 1803 | > {
|
1297 1804 | let mut seen = ::std::collections::HashMap::new();
|
1298 1805 | let mut duplicate_indices = ::std::vec::Vec::new();
|
1299 1806 | for (idx, item) in items.iter().enumerate() {
|
1300 1807 | if let Some(prev_idx) = seen.insert(item, idx) {
|
1301 1808 | duplicate_indices.push(prev_idx);
|
1302 1809 | }
|
1303 1810 | }
|
1304 1811 |
|
1305 1812 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
1306 1813 | for idx in &duplicate_indices {
|
1307 1814 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
1308 1815 | last_duplicate_indices.push(prev_idx);
|
1309 1816 | }
|
1310 1817 | }
|
1311 1818 | duplicate_indices.extend(last_duplicate_indices);
|
1312 1819 |
|
1313 1820 | if !duplicate_indices.is_empty() {
|
1314 1821 | debug_assert!(duplicate_indices.len() >= 2);
|
1315 1822 | Err(crate::model::length_set_of_pattern_string_internal::ConstraintViolation::UniqueItems { duplicate_indices, original: items })
|
1316 1823 | } else {
|
1317 1824 | Ok(items)
|
1318 1825 | }
|
1319 1826 | }
|
1827 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1320 1828 | }
|
1829 + | /* ConstrainedCollectionGenerator.kt:133 */
|
1321 1830 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::PatternString>>
|
1322 1831 | for LengthSetOfPatternString
|
1323 1832 | {
|
1324 1833 | type Error = crate::model::length_set_of_pattern_string_internal::ConstraintViolation;
|
1325 1834 |
|
1326 1835 | /// Constructs a `LengthSetOfPatternString` from an [`::std::vec::Vec<crate::model::PatternString>`], failing when the provided value does not satisfy the modeled constraints.
|
1327 1836 | fn try_from(
|
1328 1837 | value: ::std::vec::Vec<crate::model::PatternString>,
|
1329 1838 | ) -> ::std::result::Result<Self, Self::Error> {
|
1330 1839 | Self::check_length(value.len())?;
|
1331 1840 |
|
1332 1841 | let value = Self::check_unique_items(value)?;
|
1333 1842 |
|
1334 1843 | Ok(Self(value))
|
1335 1844 | }
|
1336 1845 | }
|
1337 1846 |
|
1338 1847 | impl ::std::convert::From<LengthSetOfPatternString>
|
1339 1848 | for ::std::vec::Vec<crate::model::PatternString>
|
1340 1849 | {
|
1341 1850 | fn from(value: LengthSetOfPatternString) -> Self {
|
1342 1851 | value.into_inner()
|
1343 1852 | }
|
1344 1853 | }
|
1854 + | /* ConstrainedCollectionGenerator.kt:163 */
|
1345 1855 | impl ::std::convert::From<LengthSetOfPatternString> for ::std::vec::Vec<::std::string::String> {
|
1346 1856 | fn from(value: LengthSetOfPatternString) -> Self {
|
1347 1857 | value.into_inner().into_iter().map(|v| v.into()).collect()
|
1348 1858 | }
|
1349 1859 | }
|
1860 + | /* ConstrainedCollectionGenerator.kt:181 */
|
1350 1861 | impl crate::constrained::Constrained for LengthSetOfPatternString {
|
1351 1862 | type Unconstrained = crate::unconstrained::length_set_of_pattern_string_unconstrained::LengthSetOfPatternStringUnconstrained;
|
1352 1863 | }
|
1353 1864 |
|
1865 + | /* ConstrainedCollectionGenerator.kt:93 */
|
1354 1866 | #[allow(missing_docs)] // documentation missing in model
|
1355 - | ///
|
1867 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
1356 1868 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
1357 1869 | /// [constraint traits]. Use [`SetOfLengthPatternString::try_from`] to construct values of this type.
|
1358 1870 | ///
|
1359 1871 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
1360 1872 | ///
|
1873 + | /* RustType.kt:516 */
|
1361 1874 | #[derive(
|
1362 1875 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1363 1876 | )]
|
1364 - | pub(crate) struct SetOfLengthPatternString(
|
1877 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct SetOfLengthPatternString(
|
1365 1878 | pub(crate) ::std::vec::Vec<crate::model::LengthPatternString>,
|
1366 1879 | );
|
1880 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1367 1881 | impl SetOfLengthPatternString {
|
1882 + | /* ConstrainedCollectionGenerator.kt:116 */
|
1368 1883 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::LengthPatternString>`].
|
1369 1884 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::LengthPatternString> {
|
1370 1885 | self.0
|
1371 1886 | }
|
1372 1887 |
|
1373 1888 | fn check_unique_items(
|
1374 1889 | items: ::std::vec::Vec<crate::model::LengthPatternString>,
|
1375 1890 | ) -> ::std::result::Result<
|
1376 1891 | ::std::vec::Vec<crate::model::LengthPatternString>,
|
1377 1892 | crate::model::set_of_length_pattern_string_internal::ConstraintViolation,
|
1378 1893 | > {
|
1379 1894 | let mut seen = ::std::collections::HashMap::new();
|
1380 1895 | let mut duplicate_indices = ::std::vec::Vec::new();
|
1381 1896 | for (idx, item) in items.iter().enumerate() {
|
1382 1897 | if let Some(prev_idx) = seen.insert(item, idx) {
|
1383 1898 | duplicate_indices.push(prev_idx);
|
1384 1899 | }
|
1385 1900 | }
|
1386 1901 |
|
1387 1902 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
1388 1903 | for idx in &duplicate_indices {
|
1389 1904 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
1390 1905 | last_duplicate_indices.push(prev_idx);
|
1391 1906 | }
|
1392 1907 | }
|
1393 1908 | duplicate_indices.extend(last_duplicate_indices);
|
1394 1909 |
|
1395 1910 | if !duplicate_indices.is_empty() {
|
1396 1911 | debug_assert!(duplicate_indices.len() >= 2);
|
1397 1912 | Err(crate::model::set_of_length_pattern_string_internal::ConstraintViolation::UniqueItems { duplicate_indices, original: items })
|
1398 1913 | } else {
|
1399 1914 | Ok(items)
|
1400 1915 | }
|
1401 1916 | }
|
1917 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1402 1918 | }
|
1919 + | /* ConstrainedCollectionGenerator.kt:133 */
|
1403 1920 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::LengthPatternString>>
|
1404 1921 | for SetOfLengthPatternString
|
1405 1922 | {
|
1406 1923 | type Error = crate::model::set_of_length_pattern_string_internal::ConstraintViolation;
|
1407 1924 |
|
1408 1925 | /// Constructs a `SetOfLengthPatternString` from an [`::std::vec::Vec<crate::model::LengthPatternString>`], failing when the provided value does not satisfy the modeled constraints.
|
1409 1926 | fn try_from(
|
1410 1927 | value: ::std::vec::Vec<crate::model::LengthPatternString>,
|
1411 1928 | ) -> ::std::result::Result<Self, Self::Error> {
|
1412 1929 | let value = Self::check_unique_items(value)?;
|
1413 1930 |
|
1414 1931 | Ok(Self(value))
|
1415 1932 | }
|
1416 1933 | }
|
1417 1934 |
|
1418 1935 | impl ::std::convert::From<SetOfLengthPatternString>
|
1419 1936 | for ::std::vec::Vec<crate::model::LengthPatternString>
|
1420 1937 | {
|
1421 1938 | fn from(value: SetOfLengthPatternString) -> Self {
|
1422 1939 | value.into_inner()
|
1423 1940 | }
|
1424 1941 | }
|
1942 + | /* ConstrainedCollectionGenerator.kt:163 */
|
1425 1943 | impl ::std::convert::From<SetOfLengthPatternString> for ::std::vec::Vec<::std::string::String> {
|
1426 1944 | fn from(value: SetOfLengthPatternString) -> Self {
|
1427 1945 | value.into_inner().into_iter().map(|v| v.into()).collect()
|
1428 1946 | }
|
1429 1947 | }
|
1948 + | /* ConstrainedCollectionGenerator.kt:181 */
|
1430 1949 | impl crate::constrained::Constrained for SetOfLengthPatternString {
|
1431 1950 | type Unconstrained = crate::unconstrained::set_of_length_pattern_string_unconstrained::SetOfLengthPatternStringUnconstrained;
|
1432 1951 | }
|
1433 1952 |
|
1953 + | /* ConstrainedCollectionGenerator.kt:93 */
|
1434 1954 | #[allow(missing_docs)] // documentation missing in model
|
1435 - | ///
|
1955 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
1436 1956 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
1437 1957 | /// [constraint traits]. Use [`SetOfPatternString::try_from`] to construct values of this type.
|
1438 1958 | ///
|
1439 1959 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
1440 1960 | ///
|
1961 + | /* RustType.kt:516 */
|
1441 1962 | #[derive(
|
1442 1963 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1443 1964 | )]
|
1444 - | pub(crate) struct SetOfPatternString(pub(crate) ::std::vec::Vec<crate::model::PatternString>);
|
1965 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct SetOfPatternString(
|
1966 + | pub(crate) ::std::vec::Vec<crate::model::PatternString>,
|
1967 + | );
|
1968 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1445 1969 | impl SetOfPatternString {
|
1970 + | /* ConstrainedCollectionGenerator.kt:116 */
|
1446 1971 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::PatternString>`].
|
1447 1972 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::PatternString> {
|
1448 1973 | self.0
|
1449 1974 | }
|
1450 1975 |
|
1451 1976 | fn check_unique_items(
|
1452 1977 | items: ::std::vec::Vec<crate::model::PatternString>,
|
1453 1978 | ) -> ::std::result::Result<
|
1454 1979 | ::std::vec::Vec<crate::model::PatternString>,
|
1455 1980 | crate::model::set_of_pattern_string_internal::ConstraintViolation,
|
1456 1981 | > {
|
1457 1982 | let mut seen = ::std::collections::HashMap::new();
|
1458 1983 | let mut duplicate_indices = ::std::vec::Vec::new();
|
1459 1984 | for (idx, item) in items.iter().enumerate() {
|
1460 1985 | if let Some(prev_idx) = seen.insert(item, idx) {
|
1461 1986 | duplicate_indices.push(prev_idx);
|
1462 1987 | }
|
1463 1988 | }
|
1464 1989 |
|
1465 1990 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
1466 1991 | for idx in &duplicate_indices {
|
1467 1992 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
1468 1993 | last_duplicate_indices.push(prev_idx);
|
1469 1994 | }
|
1470 1995 | }
|
1471 1996 | duplicate_indices.extend(last_duplicate_indices);
|
1472 1997 |
|
1473 1998 | if !duplicate_indices.is_empty() {
|
1474 1999 | debug_assert!(duplicate_indices.len() >= 2);
|
1475 2000 | Err(
|
1476 2001 | crate::model::set_of_pattern_string_internal::ConstraintViolation::UniqueItems {
|
1477 2002 | duplicate_indices,
|
1478 2003 | original: items,
|
1479 2004 | },
|
1480 2005 | )
|
1481 2006 | } else {
|
1482 2007 | Ok(items)
|
1483 2008 | }
|
1484 2009 | }
|
2010 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1485 2011 | }
|
2012 + | /* ConstrainedCollectionGenerator.kt:133 */
|
1486 2013 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::PatternString>> for SetOfPatternString {
|
1487 2014 | type Error = crate::model::set_of_pattern_string_internal::ConstraintViolation;
|
1488 2015 |
|
1489 2016 | /// Constructs a `SetOfPatternString` from an [`::std::vec::Vec<crate::model::PatternString>`], failing when the provided value does not satisfy the modeled constraints.
|
1490 2017 | fn try_from(
|
1491 2018 | value: ::std::vec::Vec<crate::model::PatternString>,
|
1492 2019 | ) -> ::std::result::Result<Self, Self::Error> {
|
1493 2020 | let value = Self::check_unique_items(value)?;
|
1494 2021 |
|
1495 2022 | Ok(Self(value))
|
1496 2023 | }
|
1497 2024 | }
|
1498 2025 |
|
1499 2026 | impl ::std::convert::From<SetOfPatternString> for ::std::vec::Vec<crate::model::PatternString> {
|
1500 2027 | fn from(value: SetOfPatternString) -> Self {
|
1501 2028 | value.into_inner()
|
1502 2029 | }
|
1503 2030 | }
|
2031 + | /* ConstrainedCollectionGenerator.kt:163 */
|
1504 2032 | impl ::std::convert::From<SetOfPatternString> for ::std::vec::Vec<::std::string::String> {
|
1505 2033 | fn from(value: SetOfPatternString) -> Self {
|
1506 2034 | value.into_inner().into_iter().map(|v| v.into()).collect()
|
1507 2035 | }
|
1508 2036 | }
|
2037 + | /* ConstrainedCollectionGenerator.kt:181 */
|
1509 2038 | impl crate::constrained::Constrained for SetOfPatternString {
|
1510 2039 | type Unconstrained =
|
1511 2040 | crate::unconstrained::set_of_pattern_string_unconstrained::SetOfPatternStringUnconstrained;
|
1512 2041 | }
|
1513 2042 |
|
2043 + | /* ConstrainedNumberGenerator.kt:82 */
|
1514 2044 | #[allow(missing_docs)] // documentation missing in model
|
1515 - | ///
|
2045 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
1516 2046 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
1517 2047 | /// [constraint traits]. Use [`RangeByte::try_from`] to construct values of this type.
|
1518 2048 | ///
|
1519 2049 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
1520 2050 | ///
|
2051 + | /* RustType.kt:516 */
|
1521 2052 | #[derive(
|
1522 2053 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1523 2054 | )]
|
1524 - | pub(crate) struct RangeByte(pub(crate) i8);
|
2055 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct RangeByte(pub(crate) i8);
|
2056 + | /* RustType.kt:516 */
|
1525 2057 | #[allow(dead_code)]
|
2058 + | /* ConstrainedNumberGenerator.kt:91 */
|
1526 2059 | impl RangeByte {
|
1527 2060 | /// Returns an immutable reference to the underlying [`i8`].
|
1528 2061 | pub fn inner(&self) -> &i8 {
|
1529 2062 | &self.0
|
1530 2063 | }
|
1531 2064 |
|
1532 2065 | /// Consumes the value, returning the underlying [`i8`].
|
1533 2066 | pub fn into_inner(self) -> i8 {
|
1534 2067 | self.0
|
1535 2068 | }
|
1536 2069 | }
|
1537 2070 |
|
1538 2071 | impl crate::constrained::Constrained for RangeByte {
|
1539 2072 | type Unconstrained = i8;
|
1540 2073 | }
|
1541 2074 |
|
1542 2075 | impl ::std::convert::From<i8> for crate::constrained::MaybeConstrained<crate::model::RangeByte> {
|
1543 2076 | fn from(value: i8) -> Self {
|
1544 2077 | Self::Unconstrained(value)
|
1545 2078 | }
|
1546 2079 | }
|
1547 2080 |
|
1548 2081 | impl ::std::fmt::Display for RangeByte {
|
1549 2082 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1550 2083 | self.0.fmt(f)
|
1551 2084 | }
|
1552 2085 | }
|
1553 2086 |
|
1554 2087 | impl ::std::convert::From<RangeByte> for i8 {
|
1555 2088 | fn from(value: RangeByte) -> Self {
|
1556 2089 | value.into_inner()
|
1557 2090 | }
|
1558 2091 | }
|
2092 + | /* TraitInfo.kt:41 */
|
1559 2093 | impl RangeByte {
|
1560 2094 | fn check_range(
|
1561 2095 | value: i8,
|
1562 2096 | ) -> ::std::result::Result<(), crate::model::range_byte_internal::ConstraintViolation> {
|
1563 2097 | if (0..=10).contains(&value) {
|
1564 2098 | Ok(())
|
1565 2099 | } else {
|
1566 2100 | Err(crate::model::range_byte_internal::ConstraintViolation::Range(value))
|
1567 2101 | }
|
1568 2102 | }
|
1569 2103 | }
|
2104 + | /* TraitInfo.kt:57 */
|
1570 2105 | impl ::std::convert::TryFrom<i8> for RangeByte {
|
1571 2106 | type Error = crate::model::range_byte_internal::ConstraintViolation;
|
1572 2107 |
|
1573 2108 | /// Constructs a `RangeByte` from an [`i8`], failing when the provided value does not satisfy the modeled constraints.
|
1574 2109 | fn try_from(value: i8) -> ::std::result::Result<Self, Self::Error> {
|
1575 2110 | Self::check_range(value)?;
|
1576 2111 |
|
1577 2112 | Ok(Self(value))
|
1578 2113 | }
|
1579 2114 | }
|
1580 2115 |
|
2116 + | /* ConstrainedCollectionGenerator.kt:93 */
|
1581 2117 | #[allow(missing_docs)] // documentation missing in model
|
1582 - | ///
|
2118 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
1583 2119 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
1584 2120 | /// [constraint traits]. Use [`SetOfRangeByte::try_from`] to construct values of this type.
|
1585 2121 | ///
|
1586 2122 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
1587 2123 | ///
|
2124 + | /* RustType.kt:516 */
|
1588 2125 | #[derive(
|
1589 2126 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1590 2127 | )]
|
1591 - | pub(crate) struct SetOfRangeByte(pub(crate) ::std::vec::Vec<crate::model::RangeByte>);
|
2128 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct SetOfRangeByte(
|
2129 + | pub(crate) ::std::vec::Vec<crate::model::RangeByte>,
|
2130 + | );
|
2131 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1592 2132 | impl SetOfRangeByte {
|
2133 + | /* ConstrainedCollectionGenerator.kt:116 */
|
1593 2134 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::RangeByte>`].
|
1594 2135 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::RangeByte> {
|
1595 2136 | self.0
|
1596 2137 | }
|
1597 2138 |
|
1598 2139 | fn check_unique_items(
|
1599 2140 | items: ::std::vec::Vec<crate::model::RangeByte>,
|
1600 2141 | ) -> ::std::result::Result<
|
1601 2142 | ::std::vec::Vec<crate::model::RangeByte>,
|
1602 2143 | crate::model::set_of_range_byte_internal::ConstraintViolation,
|
1603 2144 | > {
|
1604 2145 | let mut seen = ::std::collections::HashMap::new();
|
1605 2146 | let mut duplicate_indices = ::std::vec::Vec::new();
|
1606 2147 | for (idx, item) in items.iter().enumerate() {
|
1607 2148 | if let Some(prev_idx) = seen.insert(item, idx) {
|
1608 2149 | duplicate_indices.push(prev_idx);
|
1609 2150 | }
|
1610 2151 | }
|
1611 2152 |
|
1612 2153 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
1613 2154 | for idx in &duplicate_indices {
|
1614 2155 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
1615 2156 | last_duplicate_indices.push(prev_idx);
|
1616 2157 | }
|
1617 2158 | }
|
1618 2159 | duplicate_indices.extend(last_duplicate_indices);
|
1619 2160 |
|
1620 2161 | if !duplicate_indices.is_empty() {
|
1621 2162 | debug_assert!(duplicate_indices.len() >= 2);
|
1622 2163 | Err(
|
1623 2164 | crate::model::set_of_range_byte_internal::ConstraintViolation::UniqueItems {
|
1624 2165 | duplicate_indices,
|
1625 2166 | original: items,
|
1626 2167 | },
|
1627 2168 | )
|
1628 2169 | } else {
|
1629 2170 | Ok(items)
|
1630 2171 | }
|
1631 2172 | }
|
2173 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1632 2174 | }
|
2175 + | /* ConstrainedCollectionGenerator.kt:133 */
|
1633 2176 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::RangeByte>> for SetOfRangeByte {
|
1634 2177 | type Error = crate::model::set_of_range_byte_internal::ConstraintViolation;
|
1635 2178 |
|
1636 2179 | /// Constructs a `SetOfRangeByte` from an [`::std::vec::Vec<crate::model::RangeByte>`], failing when the provided value does not satisfy the modeled constraints.
|
1637 2180 | fn try_from(
|
1638 2181 | value: ::std::vec::Vec<crate::model::RangeByte>,
|
1639 2182 | ) -> ::std::result::Result<Self, Self::Error> {
|
1640 2183 | let value = Self::check_unique_items(value)?;
|
1641 2184 |
|
1642 2185 | Ok(Self(value))
|
1643 2186 | }
|
1644 2187 | }
|
1645 2188 |
|
1646 2189 | impl ::std::convert::From<SetOfRangeByte> for ::std::vec::Vec<crate::model::RangeByte> {
|
1647 2190 | fn from(value: SetOfRangeByte) -> Self {
|
1648 2191 | value.into_inner()
|
1649 2192 | }
|
1650 2193 | }
|
2194 + | /* ConstrainedCollectionGenerator.kt:163 */
|
1651 2195 | impl ::std::convert::From<SetOfRangeByte> for ::std::vec::Vec<i8> {
|
1652 2196 | fn from(value: SetOfRangeByte) -> Self {
|
1653 2197 | value.into_inner().into_iter().map(|v| v.into()).collect()
|
1654 2198 | }
|
1655 2199 | }
|
2200 + | /* ConstrainedCollectionGenerator.kt:181 */
|
1656 2201 | impl crate::constrained::Constrained for SetOfRangeByte {
|
1657 2202 | type Unconstrained =
|
1658 2203 | crate::unconstrained::set_of_range_byte_unconstrained::SetOfRangeByteUnconstrained;
|
1659 2204 | }
|
1660 2205 |
|
2206 + | /* ConstrainedNumberGenerator.kt:82 */
|
1661 2207 | #[allow(missing_docs)] // documentation missing in model
|
1662 - | ///
|
2208 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
1663 2209 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
1664 2210 | /// [constraint traits]. Use [`RangeLong::try_from`] to construct values of this type.
|
1665 2211 | ///
|
1666 2212 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
1667 2213 | ///
|
2214 + | /* RustType.kt:516 */
|
1668 2215 | #[derive(
|
1669 2216 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1670 2217 | )]
|
1671 - | pub(crate) struct RangeLong(pub(crate) i64);
|
2218 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct RangeLong(pub(crate) i64);
|
2219 + | /* RustType.kt:516 */
|
1672 2220 | #[allow(dead_code)]
|
2221 + | /* ConstrainedNumberGenerator.kt:91 */
|
1673 2222 | impl RangeLong {
|
1674 2223 | /// Returns an immutable reference to the underlying [`i64`].
|
1675 2224 | pub fn inner(&self) -> &i64 {
|
1676 2225 | &self.0
|
1677 2226 | }
|
1678 2227 |
|
1679 2228 | /// Consumes the value, returning the underlying [`i64`].
|
1680 2229 | pub fn into_inner(self) -> i64 {
|
1681 2230 | self.0
|
1682 2231 | }
|
1683 2232 | }
|
1684 2233 |
|
1685 2234 | impl crate::constrained::Constrained for RangeLong {
|
1686 2235 | type Unconstrained = i64;
|
1687 2236 | }
|
1688 2237 |
|
1689 2238 | impl ::std::convert::From<i64> for crate::constrained::MaybeConstrained<crate::model::RangeLong> {
|
1690 2239 | fn from(value: i64) -> Self {
|
1691 2240 | Self::Unconstrained(value)
|
1692 2241 | }
|
1693 2242 | }
|
1694 2243 |
|
1695 2244 | impl ::std::fmt::Display for RangeLong {
|
1696 2245 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1697 2246 | self.0.fmt(f)
|
1698 2247 | }
|
1699 2248 | }
|
1700 2249 |
|
1701 2250 | impl ::std::convert::From<RangeLong> for i64 {
|
1702 2251 | fn from(value: RangeLong) -> Self {
|
1703 2252 | value.into_inner()
|
1704 2253 | }
|
1705 2254 | }
|
2255 + | /* TraitInfo.kt:41 */
|
1706 2256 | impl RangeLong {
|
1707 2257 | fn check_range(
|
1708 2258 | value: i64,
|
1709 2259 | ) -> ::std::result::Result<(), crate::model::range_long_internal::ConstraintViolation> {
|
1710 2260 | if (0..=10).contains(&value) {
|
1711 2261 | Ok(())
|
1712 2262 | } else {
|
1713 2263 | Err(crate::model::range_long_internal::ConstraintViolation::Range(value))
|
1714 2264 | }
|
1715 2265 | }
|
1716 2266 | }
|
2267 + | /* TraitInfo.kt:57 */
|
1717 2268 | impl ::std::convert::TryFrom<i64> for RangeLong {
|
1718 2269 | type Error = crate::model::range_long_internal::ConstraintViolation;
|
1719 2270 |
|
1720 2271 | /// Constructs a `RangeLong` from an [`i64`], failing when the provided value does not satisfy the modeled constraints.
|
1721 2272 | fn try_from(value: i64) -> ::std::result::Result<Self, Self::Error> {
|
1722 2273 | Self::check_range(value)?;
|
1723 2274 |
|
1724 2275 | Ok(Self(value))
|
1725 2276 | }
|
1726 2277 | }
|
1727 2278 |
|
2279 + | /* ConstrainedCollectionGenerator.kt:93 */
|
1728 2280 | #[allow(missing_docs)] // documentation missing in model
|
1729 - | ///
|
2281 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
1730 2282 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
1731 2283 | /// [constraint traits]. Use [`SetOfRangeLong::try_from`] to construct values of this type.
|
1732 2284 | ///
|
1733 2285 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
1734 2286 | ///
|
2287 + | /* RustType.kt:516 */
|
1735 2288 | #[derive(
|
1736 2289 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1737 2290 | )]
|
1738 - | pub(crate) struct SetOfRangeLong(pub(crate) ::std::vec::Vec<crate::model::RangeLong>);
|
2291 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct SetOfRangeLong(
|
2292 + | pub(crate) ::std::vec::Vec<crate::model::RangeLong>,
|
2293 + | );
|
2294 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1739 2295 | impl SetOfRangeLong {
|
2296 + | /* ConstrainedCollectionGenerator.kt:116 */
|
1740 2297 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::RangeLong>`].
|
1741 2298 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::RangeLong> {
|
1742 2299 | self.0
|
1743 2300 | }
|
1744 2301 |
|
1745 2302 | fn check_unique_items(
|
1746 2303 | items: ::std::vec::Vec<crate::model::RangeLong>,
|
1747 2304 | ) -> ::std::result::Result<
|
1748 2305 | ::std::vec::Vec<crate::model::RangeLong>,
|
1749 2306 | crate::model::set_of_range_long_internal::ConstraintViolation,
|
1750 2307 | > {
|
1751 2308 | let mut seen = ::std::collections::HashMap::new();
|
1752 2309 | let mut duplicate_indices = ::std::vec::Vec::new();
|
1753 2310 | for (idx, item) in items.iter().enumerate() {
|
1754 2311 | if let Some(prev_idx) = seen.insert(item, idx) {
|
1755 2312 | duplicate_indices.push(prev_idx);
|
1756 2313 | }
|
1757 2314 | }
|
1758 2315 |
|
1759 2316 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
1760 2317 | for idx in &duplicate_indices {
|
1761 2318 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
1762 2319 | last_duplicate_indices.push(prev_idx);
|
1763 2320 | }
|
1764 2321 | }
|
1765 2322 | duplicate_indices.extend(last_duplicate_indices);
|
1766 2323 |
|
1767 2324 | if !duplicate_indices.is_empty() {
|
1768 2325 | debug_assert!(duplicate_indices.len() >= 2);
|
1769 2326 | Err(
|
1770 2327 | crate::model::set_of_range_long_internal::ConstraintViolation::UniqueItems {
|
1771 2328 | duplicate_indices,
|
1772 2329 | original: items,
|
1773 2330 | },
|
1774 2331 | )
|
1775 2332 | } else {
|
1776 2333 | Ok(items)
|
1777 2334 | }
|
1778 2335 | }
|
2336 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1779 2337 | }
|
2338 + | /* ConstrainedCollectionGenerator.kt:133 */
|
1780 2339 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::RangeLong>> for SetOfRangeLong {
|
1781 2340 | type Error = crate::model::set_of_range_long_internal::ConstraintViolation;
|
1782 2341 |
|
1783 2342 | /// Constructs a `SetOfRangeLong` from an [`::std::vec::Vec<crate::model::RangeLong>`], failing when the provided value does not satisfy the modeled constraints.
|
1784 2343 | fn try_from(
|
1785 2344 | value: ::std::vec::Vec<crate::model::RangeLong>,
|
1786 2345 | ) -> ::std::result::Result<Self, Self::Error> {
|
1787 2346 | let value = Self::check_unique_items(value)?;
|
1788 2347 |
|
1789 2348 | Ok(Self(value))
|
1790 2349 | }
|
1791 2350 | }
|
1792 2351 |
|
1793 2352 | impl ::std::convert::From<SetOfRangeLong> for ::std::vec::Vec<crate::model::RangeLong> {
|
1794 2353 | fn from(value: SetOfRangeLong) -> Self {
|
1795 2354 | value.into_inner()
|
1796 2355 | }
|
1797 2356 | }
|
2357 + | /* ConstrainedCollectionGenerator.kt:163 */
|
1798 2358 | impl ::std::convert::From<SetOfRangeLong> for ::std::vec::Vec<i64> {
|
1799 2359 | fn from(value: SetOfRangeLong) -> Self {
|
1800 2360 | value.into_inner().into_iter().map(|v| v.into()).collect()
|
1801 2361 | }
|
1802 2362 | }
|
2363 + | /* ConstrainedCollectionGenerator.kt:181 */
|
1803 2364 | impl crate::constrained::Constrained for SetOfRangeLong {
|
1804 2365 | type Unconstrained =
|
1805 2366 | crate::unconstrained::set_of_range_long_unconstrained::SetOfRangeLongUnconstrained;
|
1806 2367 | }
|
1807 2368 |
|
2369 + | /* ConstrainedNumberGenerator.kt:82 */
|
1808 2370 | #[allow(missing_docs)] // documentation missing in model
|
1809 - | ///
|
2371 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
1810 2372 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
1811 2373 | /// [constraint traits]. Use [`RangeShort::try_from`] to construct values of this type.
|
1812 2374 | ///
|
1813 2375 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
1814 2376 | ///
|
2377 + | /* RustType.kt:516 */
|
1815 2378 | #[derive(
|
1816 2379 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1817 2380 | )]
|
1818 - | pub(crate) struct RangeShort(pub(crate) i16);
|
2381 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct RangeShort(pub(crate) i16);
|
2382 + | /* RustType.kt:516 */
|
1819 2383 | #[allow(dead_code)]
|
2384 + | /* ConstrainedNumberGenerator.kt:91 */
|
1820 2385 | impl RangeShort {
|
1821 2386 | /// Returns an immutable reference to the underlying [`i16`].
|
1822 2387 | pub fn inner(&self) -> &i16 {
|
1823 2388 | &self.0
|
1824 2389 | }
|
1825 2390 |
|
1826 2391 | /// Consumes the value, returning the underlying [`i16`].
|
1827 2392 | pub fn into_inner(self) -> i16 {
|
1828 2393 | self.0
|
1829 2394 | }
|
1830 2395 | }
|
1831 2396 |
|
1832 2397 | impl crate::constrained::Constrained for RangeShort {
|
1833 2398 | type Unconstrained = i16;
|
1834 2399 | }
|
1835 2400 |
|
1836 2401 | impl ::std::convert::From<i16> for crate::constrained::MaybeConstrained<crate::model::RangeShort> {
|
1837 2402 | fn from(value: i16) -> Self {
|
1838 2403 | Self::Unconstrained(value)
|
1839 2404 | }
|
1840 2405 | }
|
1841 2406 |
|
1842 2407 | impl ::std::fmt::Display for RangeShort {
|
1843 2408 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1844 2409 | self.0.fmt(f)
|
1845 2410 | }
|
1846 2411 | }
|
1847 2412 |
|
1848 2413 | impl ::std::convert::From<RangeShort> for i16 {
|
1849 2414 | fn from(value: RangeShort) -> Self {
|
1850 2415 | value.into_inner()
|
1851 2416 | }
|
1852 2417 | }
|
2418 + | /* TraitInfo.kt:41 */
|
1853 2419 | impl RangeShort {
|
1854 2420 | fn check_range(
|
1855 2421 | value: i16,
|
1856 2422 | ) -> ::std::result::Result<(), crate::model::range_short_internal::ConstraintViolation> {
|
1857 2423 | if (0..=10).contains(&value) {
|
1858 2424 | Ok(())
|
1859 2425 | } else {
|
1860 2426 | Err(crate::model::range_short_internal::ConstraintViolation::Range(value))
|
1861 2427 | }
|
1862 2428 | }
|
1863 2429 | }
|
2430 + | /* TraitInfo.kt:57 */
|
1864 2431 | impl ::std::convert::TryFrom<i16> for RangeShort {
|
1865 2432 | type Error = crate::model::range_short_internal::ConstraintViolation;
|
1866 2433 |
|
1867 2434 | /// Constructs a `RangeShort` from an [`i16`], failing when the provided value does not satisfy the modeled constraints.
|
1868 2435 | fn try_from(value: i16) -> ::std::result::Result<Self, Self::Error> {
|
1869 2436 | Self::check_range(value)?;
|
1870 2437 |
|
1871 2438 | Ok(Self(value))
|
1872 2439 | }
|
1873 2440 | }
|
1874 2441 |
|
2442 + | /* ConstrainedCollectionGenerator.kt:93 */
|
1875 2443 | #[allow(missing_docs)] // documentation missing in model
|
1876 - | ///
|
2444 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
1877 2445 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
1878 2446 | /// [constraint traits]. Use [`SetOfRangeShort::try_from`] to construct values of this type.
|
1879 2447 | ///
|
1880 2448 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
1881 2449 | ///
|
2450 + | /* RustType.kt:516 */
|
1882 2451 | #[derive(
|
1883 2452 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1884 2453 | )]
|
1885 - | pub(crate) struct SetOfRangeShort(pub(crate) ::std::vec::Vec<crate::model::RangeShort>);
|
2454 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct SetOfRangeShort(
|
2455 + | pub(crate) ::std::vec::Vec<crate::model::RangeShort>,
|
2456 + | );
|
2457 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1886 2458 | impl SetOfRangeShort {
|
2459 + | /* ConstrainedCollectionGenerator.kt:116 */
|
1887 2460 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::RangeShort>`].
|
1888 2461 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::RangeShort> {
|
1889 2462 | self.0
|
1890 2463 | }
|
1891 2464 |
|
1892 2465 | fn check_unique_items(
|
1893 2466 | items: ::std::vec::Vec<crate::model::RangeShort>,
|
1894 2467 | ) -> ::std::result::Result<
|
1895 2468 | ::std::vec::Vec<crate::model::RangeShort>,
|
1896 2469 | crate::model::set_of_range_short_internal::ConstraintViolation,
|
1897 2470 | > {
|
1898 2471 | let mut seen = ::std::collections::HashMap::new();
|
1899 2472 | let mut duplicate_indices = ::std::vec::Vec::new();
|
1900 2473 | for (idx, item) in items.iter().enumerate() {
|
1901 2474 | if let Some(prev_idx) = seen.insert(item, idx) {
|
1902 2475 | duplicate_indices.push(prev_idx);
|
1903 2476 | }
|
1904 2477 | }
|
1905 2478 |
|
1906 2479 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
1907 2480 | for idx in &duplicate_indices {
|
1908 2481 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
1909 2482 | last_duplicate_indices.push(prev_idx);
|
1910 2483 | }
|
1911 2484 | }
|
1912 2485 | duplicate_indices.extend(last_duplicate_indices);
|
1913 2486 |
|
1914 2487 | if !duplicate_indices.is_empty() {
|
1915 2488 | debug_assert!(duplicate_indices.len() >= 2);
|
1916 2489 | Err(
|
1917 2490 | crate::model::set_of_range_short_internal::ConstraintViolation::UniqueItems {
|
1918 2491 | duplicate_indices,
|
1919 2492 | original: items,
|
1920 2493 | },
|
1921 2494 | )
|
1922 2495 | } else {
|
1923 2496 | Ok(items)
|
1924 2497 | }
|
1925 2498 | }
|
2499 + | /* ConstrainedCollectionGenerator.kt:104 */
|
1926 2500 | }
|
2501 + | /* ConstrainedCollectionGenerator.kt:133 */
|
1927 2502 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::RangeShort>> for SetOfRangeShort {
|
1928 2503 | type Error = crate::model::set_of_range_short_internal::ConstraintViolation;
|
1929 2504 |
|
1930 2505 | /// Constructs a `SetOfRangeShort` from an [`::std::vec::Vec<crate::model::RangeShort>`], failing when the provided value does not satisfy the modeled constraints.
|
1931 2506 | fn try_from(
|
1932 2507 | value: ::std::vec::Vec<crate::model::RangeShort>,
|
1933 2508 | ) -> ::std::result::Result<Self, Self::Error> {
|
1934 2509 | let value = Self::check_unique_items(value)?;
|
1935 2510 |
|
1936 2511 | Ok(Self(value))
|
1937 2512 | }
|
1938 2513 | }
|
1939 2514 |
|
1940 2515 | impl ::std::convert::From<SetOfRangeShort> for ::std::vec::Vec<crate::model::RangeShort> {
|
1941 2516 | fn from(value: SetOfRangeShort) -> Self {
|
1942 2517 | value.into_inner()
|
1943 2518 | }
|
1944 2519 | }
|
2520 + | /* ConstrainedCollectionGenerator.kt:163 */
|
1945 2521 | impl ::std::convert::From<SetOfRangeShort> for ::std::vec::Vec<i16> {
|
1946 2522 | fn from(value: SetOfRangeShort) -> Self {
|
1947 2523 | value.into_inner().into_iter().map(|v| v.into()).collect()
|
1948 2524 | }
|
1949 2525 | }
|
2526 + | /* ConstrainedCollectionGenerator.kt:181 */
|
1950 2527 | impl crate::constrained::Constrained for SetOfRangeShort {
|
1951 2528 | type Unconstrained =
|
1952 2529 | crate::unconstrained::set_of_range_short_unconstrained::SetOfRangeShortUnconstrained;
|
1953 2530 | }
|
1954 2531 |
|
2532 + | /* ConstrainedNumberGenerator.kt:82 */
|
1955 2533 | #[allow(missing_docs)] // documentation missing in model
|
1956 - | ///
|
2534 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
1957 2535 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
1958 2536 | /// [constraint traits]. Use [`RangeInteger::try_from`] to construct values of this type.
|
1959 2537 | ///
|
1960 2538 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
1961 2539 | ///
|
2540 + | /* RustType.kt:516 */
|
1962 2541 | #[derive(
|
1963 2542 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1964 2543 | )]
|
1965 - | pub(crate) struct RangeInteger(pub(crate) i32);
|
2544 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct RangeInteger(pub(crate) i32);
|
2545 + | /* RustType.kt:516 */
|
1966 2546 | #[allow(dead_code)]
|
2547 + | /* ConstrainedNumberGenerator.kt:91 */
|
1967 2548 | impl RangeInteger {
|
1968 2549 | /// Returns an immutable reference to the underlying [`i32`].
|
1969 2550 | pub fn inner(&self) -> &i32 {
|
1970 2551 | &self.0
|
1971 2552 | }
|
1972 2553 |
|
1973 2554 | /// Consumes the value, returning the underlying [`i32`].
|
1974 2555 | pub fn into_inner(self) -> i32 {
|
1975 2556 | self.0
|
1976 2557 | }
|
1977 2558 | }
|
1978 2559 |
|
1979 2560 | impl crate::constrained::Constrained for RangeInteger {
|
1980 2561 | type Unconstrained = i32;
|
1981 2562 | }
|
1982 2563 |
|
1983 2564 | impl ::std::convert::From<i32>
|
1984 2565 | for crate::constrained::MaybeConstrained<crate::model::RangeInteger>
|
1985 2566 | {
|
1986 2567 | fn from(value: i32) -> Self {
|
1987 2568 | Self::Unconstrained(value)
|
1988 2569 | }
|
1989 2570 | }
|
1990 2571 |
|
1991 2572 | impl ::std::fmt::Display for RangeInteger {
|
1992 2573 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1993 2574 | self.0.fmt(f)
|
1994 2575 | }
|
1995 2576 | }
|
1996 2577 |
|
1997 2578 | impl ::std::convert::From<RangeInteger> for i32 {
|
1998 2579 | fn from(value: RangeInteger) -> Self {
|
1999 2580 | value.into_inner()
|
2000 2581 | }
|
2001 2582 | }
|
2583 + | /* TraitInfo.kt:41 */
|
2002 2584 | impl RangeInteger {
|
2003 2585 | fn check_range(
|
2004 2586 | value: i32,
|
2005 2587 | ) -> ::std::result::Result<(), crate::model::range_integer_internal::ConstraintViolation> {
|
2006 2588 | if (0..=69).contains(&value) {
|
2007 2589 | Ok(())
|
2008 2590 | } else {
|
2009 2591 | Err(crate::model::range_integer_internal::ConstraintViolation::Range(value))
|
2010 2592 | }
|
2011 2593 | }
|
2012 2594 | }
|
2595 + | /* TraitInfo.kt:57 */
|
2013 2596 | impl ::std::convert::TryFrom<i32> for RangeInteger {
|
2014 2597 | type Error = crate::model::range_integer_internal::ConstraintViolation;
|
2015 2598 |
|
2016 2599 | /// Constructs a `RangeInteger` from an [`i32`], failing when the provided value does not satisfy the modeled constraints.
|
2017 2600 | fn try_from(value: i32) -> ::std::result::Result<Self, Self::Error> {
|
2018 2601 | Self::check_range(value)?;
|
2019 2602 |
|
2020 2603 | Ok(Self(value))
|
2021 2604 | }
|
2022 2605 | }
|
2023 2606 |
|
2607 + | /* ConstrainedCollectionGenerator.kt:93 */
|
2024 2608 | #[allow(missing_docs)] // documentation missing in model
|
2025 - | ///
|
2609 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
2026 2610 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2027 2611 | /// [constraint traits]. Use [`SetOfRangeInteger::try_from`] to construct values of this type.
|
2028 2612 | ///
|
2029 2613 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2030 2614 | ///
|
2615 + | /* RustType.kt:516 */
|
2031 2616 | #[derive(
|
2032 2617 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2033 2618 | )]
|
2034 - | pub(crate) struct SetOfRangeInteger(pub(crate) ::std::vec::Vec<crate::model::RangeInteger>);
|
2619 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct SetOfRangeInteger(
|
2620 + | pub(crate) ::std::vec::Vec<crate::model::RangeInteger>,
|
2621 + | );
|
2622 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2035 2623 | impl SetOfRangeInteger {
|
2624 + | /* ConstrainedCollectionGenerator.kt:116 */
|
2036 2625 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::RangeInteger>`].
|
2037 2626 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::RangeInteger> {
|
2038 2627 | self.0
|
2039 2628 | }
|
2040 2629 |
|
2041 2630 | fn check_unique_items(
|
2042 2631 | items: ::std::vec::Vec<crate::model::RangeInteger>,
|
2043 2632 | ) -> ::std::result::Result<
|
2044 2633 | ::std::vec::Vec<crate::model::RangeInteger>,
|
2045 2634 | crate::model::set_of_range_integer_internal::ConstraintViolation,
|
2046 2635 | > {
|
2047 2636 | let mut seen = ::std::collections::HashMap::new();
|
2048 2637 | let mut duplicate_indices = ::std::vec::Vec::new();
|
2049 2638 | for (idx, item) in items.iter().enumerate() {
|
2050 2639 | if let Some(prev_idx) = seen.insert(item, idx) {
|
2051 2640 | duplicate_indices.push(prev_idx);
|
2052 2641 | }
|
2053 2642 | }
|
2054 2643 |
|
2055 2644 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
2056 2645 | for idx in &duplicate_indices {
|
2057 2646 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
2058 2647 | last_duplicate_indices.push(prev_idx);
|
2059 2648 | }
|
2060 2649 | }
|
2061 2650 | duplicate_indices.extend(last_duplicate_indices);
|
2062 2651 |
|
2063 2652 | if !duplicate_indices.is_empty() {
|
2064 2653 | debug_assert!(duplicate_indices.len() >= 2);
|
2065 2654 | Err(
|
2066 2655 | crate::model::set_of_range_integer_internal::ConstraintViolation::UniqueItems {
|
2067 2656 | duplicate_indices,
|
2068 2657 | original: items,
|
2069 2658 | },
|
2070 2659 | )
|
2071 2660 | } else {
|
2072 2661 | Ok(items)
|
2073 2662 | }
|
2074 2663 | }
|
2664 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2075 2665 | }
|
2666 + | /* ConstrainedCollectionGenerator.kt:133 */
|
2076 2667 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::RangeInteger>> for SetOfRangeInteger {
|
2077 2668 | type Error = crate::model::set_of_range_integer_internal::ConstraintViolation;
|
2078 2669 |
|
2079 2670 | /// Constructs a `SetOfRangeInteger` from an [`::std::vec::Vec<crate::model::RangeInteger>`], failing when the provided value does not satisfy the modeled constraints.
|
2080 2671 | fn try_from(
|
2081 2672 | value: ::std::vec::Vec<crate::model::RangeInteger>,
|
2082 2673 | ) -> ::std::result::Result<Self, Self::Error> {
|
2083 2674 | let value = Self::check_unique_items(value)?;
|
2084 2675 |
|
2085 2676 | Ok(Self(value))
|
2086 2677 | }
|
2087 2678 | }
|
2088 2679 |
|
2089 2680 | impl ::std::convert::From<SetOfRangeInteger> for ::std::vec::Vec<crate::model::RangeInteger> {
|
2090 2681 | fn from(value: SetOfRangeInteger) -> Self {
|
2091 2682 | value.into_inner()
|
2092 2683 | }
|
2093 2684 | }
|
2685 + | /* ConstrainedCollectionGenerator.kt:163 */
|
2094 2686 | impl ::std::convert::From<SetOfRangeInteger> for ::std::vec::Vec<i32> {
|
2095 2687 | fn from(value: SetOfRangeInteger) -> Self {
|
2096 2688 | value.into_inner().into_iter().map(|v| v.into()).collect()
|
2097 2689 | }
|
2098 2690 | }
|
2691 + | /* ConstrainedCollectionGenerator.kt:181 */
|
2099 2692 | impl crate::constrained::Constrained for SetOfRangeInteger {
|
2100 2693 | type Unconstrained =
|
2101 2694 | crate::unconstrained::set_of_range_integer_unconstrained::SetOfRangeIntegerUnconstrained;
|
2102 2695 | }
|
2103 2696 |
|
2697 + | /* ConstrainedBlobGenerator.kt:66 */
|
2104 2698 | #[allow(missing_docs)] // documentation missing in model
|
2105 - | ///
|
2699 + | /// /* ConstrainedBlobGenerator.kt:67 */
|
2106 2700 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2107 2701 | /// [constraint traits]. Use [`LengthBlob::try_from`] to construct values of this type.
|
2108 2702 | ///
|
2109 2703 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2110 2704 | ///
|
2705 + | /* RustType.kt:516 */
|
2111 2706 | #[derive(
|
2112 2707 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2113 2708 | )]
|
2114 - | pub(crate) struct LengthBlob(pub(crate) ::aws_smithy_types::Blob);
|
2709 + | pub(crate) /* ConstrainedBlobGenerator.kt:70 */ struct LengthBlob(
|
2710 + | pub(crate) ::aws_smithy_types::Blob,
|
2711 + | );
|
2712 + | /* ConstrainedBlobGenerator.kt:71 */
|
2115 2713 | impl LengthBlob {
|
2714 + | /* ConstrainedBlobGenerator.kt:82 */
|
2116 2715 | /// Consumes the value, returning the underlying [`::aws_smithy_types::Blob`].
|
2117 2716 | pub fn into_inner(self) -> ::aws_smithy_types::Blob {
|
2118 2717 | self.0
|
2119 2718 | }
|
2719 + | /* ConstrainedBlobGenerator.kt:71 */
|
2120 2720 | }
|
2721 + | /* TraitInfo.kt:41 */
|
2121 2722 | impl LengthBlob {
|
2122 2723 | fn check_length(
|
2123 2724 | blob: &::aws_smithy_types::Blob,
|
2124 2725 | ) -> ::std::result::Result<(), crate::model::length_blob_internal::ConstraintViolation> {
|
2125 2726 | let length = blob.as_ref().len();
|
2126 2727 |
|
2127 2728 | if (2..=70).contains(&length) {
|
2128 2729 | Ok(())
|
2129 2730 | } else {
|
2130 2731 | Err(crate::model::length_blob_internal::ConstraintViolation::Length(length))
|
2131 2732 | }
|
2132 2733 | }
|
2133 2734 | }
|
2735 + | /* TraitInfo.kt:57 */
|
2134 2736 | impl ::std::convert::TryFrom<::aws_smithy_types::Blob> for LengthBlob {
|
2135 2737 | type Error = crate::model::length_blob_internal::ConstraintViolation;
|
2136 2738 |
|
2137 2739 | /// Constructs a `LengthBlob` from an [`::aws_smithy_types::Blob`], failing when the provided value does not satisfy the modeled constraints.
|
2138 2740 | fn try_from(value: ::aws_smithy_types::Blob) -> ::std::result::Result<Self, Self::Error> {
|
2139 2741 | Self::check_length(&value)?;
|
2140 2742 |
|
2141 2743 | Ok(Self(value))
|
2142 2744 | }
|
2143 2745 | }
|
2746 + | /* ConstrainedBlobGenerator.kt:94 */
|
2144 2747 | impl crate::constrained::Constrained for LengthBlob {
|
2145 2748 | type Unconstrained = ::aws_smithy_types::Blob;
|
2146 2749 | }
|
2147 2750 |
|
2148 2751 | impl ::std::convert::From<::aws_smithy_types::Blob>
|
2149 2752 | for crate::constrained::MaybeConstrained<crate::model::LengthBlob>
|
2150 2753 | {
|
2151 2754 | fn from(value: ::aws_smithy_types::Blob) -> Self {
|
2152 2755 | Self::Unconstrained(value)
|
2153 2756 | }
|
2154 2757 | }
|
2155 2758 |
|
2156 2759 | impl ::std::convert::From<LengthBlob> for ::aws_smithy_types::Blob {
|
2157 2760 | fn from(value: LengthBlob) -> Self {
|
2158 2761 | value.into_inner()
|
2159 2762 | }
|
2160 2763 | }
|
2161 2764 |
|
2162 - | /// A union with constrained members.
|
2765 + | /// /* UnionGenerator.kt:67 */A union with constrained members.
|
2766 + | /* RustType.kt:516 */
|
2163 2767 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2164 - | pub enum ConstrainedUnion {
|
2768 + | pub /* UnionGenerator.kt:85 */ enum ConstrainedUnion {
|
2769 + | /* UnionGenerator.kt:90 */
|
2165 2770 | #[allow(missing_docs)] // documentation missing in model
|
2771 + | /* UnionGenerator.kt:190 */
|
2166 2772 | ConBList(::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>),
|
2773 + | /* UnionGenerator.kt:90 */
|
2167 2774 | #[allow(missing_docs)] // documentation missing in model
|
2775 + | /* UnionGenerator.kt:190 */
|
2168 2776 | ConBMap(::std::collections::HashMap<::std::string::String, ::std::string::String>),
|
2777 + | /* UnionGenerator.kt:90 */
|
2169 2778 | #[allow(missing_docs)] // documentation missing in model
|
2779 + | /* UnionGenerator.kt:190 */
|
2170 2780 | ConBSet(::std::vec::Vec<::std::vec::Vec<::std::string::String>>),
|
2781 + | /* UnionGenerator.kt:90 */
|
2171 2782 | #[allow(missing_docs)] // documentation missing in model
|
2783 + | /* UnionGenerator.kt:190 */
|
2172 2784 | ConstrainedStructure(crate::model::ConB),
|
2785 + | /* UnionGenerator.kt:90 */
|
2173 2786 | #[allow(missing_docs)] // documentation missing in model
|
2787 + | /* UnionGenerator.kt:190 */
|
2174 2788 | EnumString(crate::model::EnumString),
|
2789 + | /* UnionGenerator.kt:90 */
|
2175 2790 | #[allow(missing_docs)] // documentation missing in model
|
2791 + | /* UnionGenerator.kt:190 */
|
2176 2792 | LengthString(::std::string::String),
|
2793 + | /* UnionGenerator.kt:85 */
|
2177 2794 | }
|
2795 + | /* UnionGenerator.kt:111 */
|
2178 2796 | impl ConstrainedUnion {
|
2797 + | /* UnionGenerator.kt:217 */
|
2179 2798 | /// Tries to convert the enum instance into [`ConBList`](crate::model::ConstrainedUnion::ConBList), extracting the inner [`Vec`](::std::vec::Vec).
|
2799 + | /* UnionGenerator.kt:222 */
|
2180 2800 | /// Returns `Err(&Self)` if it can't be converted.
|
2801 + | /* UnionGenerator.kt:223 */
|
2181 2802 | pub fn as_con_b_list(
|
2182 2803 | &self,
|
2183 2804 | ) -> ::std::result::Result<&::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>, &Self> {
|
2805 + | /* UnionGenerator.kt:227 */
|
2184 2806 | if let ConstrainedUnion::ConBList(val) = &self {
|
2185 2807 | ::std::result::Result::Ok(val)
|
2186 2808 | } else {
|
2187 2809 | ::std::result::Result::Err(self)
|
2188 2810 | }
|
2811 + | /* UnionGenerator.kt:223 */
|
2189 2812 | }
|
2813 + | /* UnionGenerator.kt:121 */
|
2190 2814 | /// Returns true if this is a [`ConBList`](crate::model::ConstrainedUnion::ConBList).
|
2815 + | /* UnionGenerator.kt:122 */
|
2191 2816 | pub fn is_con_b_list(&self) -> bool {
|
2817 + | /* UnionGenerator.kt:123 */
|
2192 2818 | self.as_con_b_list().is_ok()
|
2819 + | /* UnionGenerator.kt:122 */
|
2193 2820 | }
|
2821 + | /* UnionGenerator.kt:217 */
|
2194 2822 | /// Tries to convert the enum instance into [`ConBMap`](crate::model::ConstrainedUnion::ConBMap), extracting the inner [`HashMap`](::std::collections::HashMap).
|
2823 + | /* UnionGenerator.kt:222 */
|
2195 2824 | /// Returns `Err(&Self)` if it can't be converted.
|
2825 + | /* UnionGenerator.kt:223 */
|
2196 2826 | pub fn as_con_b_map(
|
2197 2827 | &self,
|
2198 2828 | ) -> ::std::result::Result<
|
2199 2829 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2200 2830 | &Self,
|
2201 2831 | > {
|
2832 + | /* UnionGenerator.kt:227 */
|
2202 2833 | if let ConstrainedUnion::ConBMap(val) = &self {
|
2203 2834 | ::std::result::Result::Ok(val)
|
2204 2835 | } else {
|
2205 2836 | ::std::result::Result::Err(self)
|
2206 2837 | }
|
2838 + | /* UnionGenerator.kt:223 */
|
2207 2839 | }
|
2840 + | /* UnionGenerator.kt:121 */
|
2208 2841 | /// Returns true if this is a [`ConBMap`](crate::model::ConstrainedUnion::ConBMap).
|
2842 + | /* UnionGenerator.kt:122 */
|
2209 2843 | pub fn is_con_b_map(&self) -> bool {
|
2844 + | /* UnionGenerator.kt:123 */
|
2210 2845 | self.as_con_b_map().is_ok()
|
2846 + | /* UnionGenerator.kt:122 */
|
2211 2847 | }
|
2848 + | /* UnionGenerator.kt:217 */
|
2212 2849 | /// Tries to convert the enum instance into [`ConBSet`](crate::model::ConstrainedUnion::ConBSet), extracting the inner [`Vec`](::std::vec::Vec).
|
2850 + | /* UnionGenerator.kt:222 */
|
2213 2851 | /// Returns `Err(&Self)` if it can't be converted.
|
2852 + | /* UnionGenerator.kt:223 */
|
2214 2853 | pub fn as_con_b_set(
|
2215 2854 | &self,
|
2216 2855 | ) -> ::std::result::Result<&::std::vec::Vec<::std::vec::Vec<::std::string::String>>, &Self>
|
2217 2856 | {
|
2857 + | /* UnionGenerator.kt:227 */
|
2218 2858 | if let ConstrainedUnion::ConBSet(val) = &self {
|
2219 2859 | ::std::result::Result::Ok(val)
|
2220 2860 | } else {
|
2221 2861 | ::std::result::Result::Err(self)
|
2222 2862 | }
|
2863 + | /* UnionGenerator.kt:223 */
|
2223 2864 | }
|
2865 + | /* UnionGenerator.kt:121 */
|
2224 2866 | /// Returns true if this is a [`ConBSet`](crate::model::ConstrainedUnion::ConBSet).
|
2867 + | /* UnionGenerator.kt:122 */
|
2225 2868 | pub fn is_con_b_set(&self) -> bool {
|
2869 + | /* UnionGenerator.kt:123 */
|
2226 2870 | self.as_con_b_set().is_ok()
|
2871 + | /* UnionGenerator.kt:122 */
|
2227 2872 | }
|
2873 + | /* UnionGenerator.kt:217 */
|
2228 2874 | /// Tries to convert the enum instance into [`ConstrainedStructure`](crate::model::ConstrainedUnion::ConstrainedStructure), extracting the inner [`ConB`](crate::model::ConB).
|
2875 + | /* UnionGenerator.kt:222 */
|
2229 2876 | /// Returns `Err(&Self)` if it can't be converted.
|
2877 + | /* UnionGenerator.kt:223 */
|
2230 2878 | pub fn as_constrained_structure(&self) -> ::std::result::Result<&crate::model::ConB, &Self> {
|
2879 + | /* UnionGenerator.kt:227 */
|
2231 2880 | if let ConstrainedUnion::ConstrainedStructure(val) = &self {
|
2232 2881 | ::std::result::Result::Ok(val)
|
2233 2882 | } else {
|
2234 2883 | ::std::result::Result::Err(self)
|
2235 2884 | }
|
2885 + | /* UnionGenerator.kt:223 */
|
2236 2886 | }
|
2887 + | /* UnionGenerator.kt:121 */
|
2237 2888 | /// Returns true if this is a [`ConstrainedStructure`](crate::model::ConstrainedUnion::ConstrainedStructure).
|
2889 + | /* UnionGenerator.kt:122 */
|
2238 2890 | pub fn is_constrained_structure(&self) -> bool {
|
2891 + | /* UnionGenerator.kt:123 */
|
2239 2892 | self.as_constrained_structure().is_ok()
|
2893 + | /* UnionGenerator.kt:122 */
|
2240 2894 | }
|
2895 + | /* UnionGenerator.kt:217 */
|
2241 2896 | /// Tries to convert the enum instance into [`EnumString`](crate::model::ConstrainedUnion::EnumString), extracting the inner [`EnumString`](crate::model::EnumString).
|
2897 + | /* UnionGenerator.kt:222 */
|
2242 2898 | /// Returns `Err(&Self)` if it can't be converted.
|
2899 + | /* UnionGenerator.kt:223 */
|
2243 2900 | pub fn as_enum_string(&self) -> ::std::result::Result<&crate::model::EnumString, &Self> {
|
2901 + | /* UnionGenerator.kt:227 */
|
2244 2902 | if let ConstrainedUnion::EnumString(val) = &self {
|
2245 2903 | ::std::result::Result::Ok(val)
|
2246 2904 | } else {
|
2247 2905 | ::std::result::Result::Err(self)
|
2248 2906 | }
|
2907 + | /* UnionGenerator.kt:223 */
|
2249 2908 | }
|
2909 + | /* UnionGenerator.kt:121 */
|
2250 2910 | /// Returns true if this is a [`EnumString`](crate::model::ConstrainedUnion::EnumString).
|
2911 + | /* UnionGenerator.kt:122 */
|
2251 2912 | pub fn is_enum_string(&self) -> bool {
|
2913 + | /* UnionGenerator.kt:123 */
|
2252 2914 | self.as_enum_string().is_ok()
|
2915 + | /* UnionGenerator.kt:122 */
|
2253 2916 | }
|
2917 + | /* UnionGenerator.kt:217 */
|
2254 2918 | /// Tries to convert the enum instance into [`LengthString`](crate::model::ConstrainedUnion::LengthString), extracting the inner [`String`](::std::string::String).
|
2919 + | /* UnionGenerator.kt:222 */
|
2255 2920 | /// Returns `Err(&Self)` if it can't be converted.
|
2921 + | /* UnionGenerator.kt:223 */
|
2256 2922 | pub fn as_length_string(&self) -> ::std::result::Result<&::std::string::String, &Self> {
|
2923 + | /* UnionGenerator.kt:227 */
|
2257 2924 | if let ConstrainedUnion::LengthString(val) = &self {
|
2258 2925 | ::std::result::Result::Ok(val)
|
2259 2926 | } else {
|
2260 2927 | ::std::result::Result::Err(self)
|
2261 2928 | }
|
2929 + | /* UnionGenerator.kt:223 */
|
2262 2930 | }
|
2931 + | /* UnionGenerator.kt:121 */
|
2263 2932 | /// Returns true if this is a [`LengthString`](crate::model::ConstrainedUnion::LengthString).
|
2933 + | /* UnionGenerator.kt:122 */
|
2264 2934 | pub fn is_length_string(&self) -> bool {
|
2935 + | /* UnionGenerator.kt:123 */
|
2265 2936 | self.as_length_string().is_ok()
|
2937 + | /* UnionGenerator.kt:122 */
|
2266 2938 | }
|
2939 + | /* UnionGenerator.kt:111 */
|
2267 2940 | }
|
2268 2941 |
|
2942 + | /* ConstrainedCollectionGenerator.kt:93 */
|
2269 2943 | #[allow(missing_docs)] // documentation missing in model
|
2270 - | ///
|
2944 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
2271 2945 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2272 2946 | /// [constraint traits]. Use [`ConBSet::try_from`] to construct values of this type.
|
2273 2947 | ///
|
2274 2948 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2275 2949 | ///
|
2950 + | /* RustType.kt:516 */
|
2276 2951 | #[derive(
|
2277 2952 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2278 2953 | )]
|
2279 - | pub(crate) struct ConBSet(pub(crate) ::std::vec::Vec<crate::model::ConBSetInner>);
|
2954 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct ConBSet(
|
2955 + | pub(crate) ::std::vec::Vec<crate::model::ConBSetInner>,
|
2956 + | );
|
2957 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2280 2958 | impl ConBSet {
|
2959 + | /* ConstrainedCollectionGenerator.kt:116 */
|
2281 2960 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::ConBSetInner>`].
|
2282 2961 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::ConBSetInner> {
|
2283 2962 | self.0
|
2284 2963 | }
|
2285 2964 |
|
2286 2965 | fn check_unique_items(
|
2287 2966 | items: ::std::vec::Vec<crate::model::ConBSetInner>,
|
2288 2967 | ) -> ::std::result::Result<
|
2289 2968 | ::std::vec::Vec<crate::model::ConBSetInner>,
|
2290 2969 | crate::model::con_b_set_internal::ConstraintViolation,
|
2291 2970 | > {
|
2292 2971 | let mut seen = ::std::collections::HashMap::new();
|
2293 2972 | let mut duplicate_indices = ::std::vec::Vec::new();
|
2294 2973 | for (idx, item) in items.iter().enumerate() {
|
2295 2974 | if let Some(prev_idx) = seen.insert(item, idx) {
|
2296 2975 | duplicate_indices.push(prev_idx);
|
2297 2976 | }
|
2298 2977 | }
|
2299 2978 |
|
2300 2979 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
2301 2980 | for idx in &duplicate_indices {
|
2302 2981 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
2303 2982 | last_duplicate_indices.push(prev_idx);
|
2304 2983 | }
|
2305 2984 | }
|
2306 2985 | duplicate_indices.extend(last_duplicate_indices);
|
2307 2986 |
|
2308 2987 | if !duplicate_indices.is_empty() {
|
2309 2988 | debug_assert!(duplicate_indices.len() >= 2);
|
2310 2989 | Err(
|
2311 2990 | crate::model::con_b_set_internal::ConstraintViolation::UniqueItems {
|
2312 2991 | duplicate_indices,
|
2313 2992 | original: items,
|
2314 2993 | },
|
2315 2994 | )
|
2316 2995 | } else {
|
2317 2996 | Ok(items)
|
2318 2997 | }
|
2319 2998 | }
|
2999 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2320 3000 | }
|
3001 + | /* ConstrainedCollectionGenerator.kt:133 */
|
2321 3002 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::ConBSetInner>> for ConBSet {
|
2322 3003 | type Error = crate::model::con_b_set_internal::ConstraintViolation;
|
2323 3004 |
|
2324 3005 | /// Constructs a `ConBSet` from an [`::std::vec::Vec<crate::model::ConBSetInner>`], failing when the provided value does not satisfy the modeled constraints.
|
2325 3006 | fn try_from(
|
2326 3007 | value: ::std::vec::Vec<crate::model::ConBSetInner>,
|
2327 3008 | ) -> ::std::result::Result<Self, Self::Error> {
|
2328 3009 | let value = Self::check_unique_items(value)?;
|
2329 3010 |
|
2330 3011 | Ok(Self(value))
|
2331 3012 | }
|
2332 3013 | }
|
2333 3014 |
|
2334 3015 | impl ::std::convert::From<ConBSet> for ::std::vec::Vec<crate::model::ConBSetInner> {
|
2335 3016 | fn from(value: ConBSet) -> Self {
|
2336 3017 | value.into_inner()
|
2337 3018 | }
|
2338 3019 | }
|
3020 + | /* ConstrainedCollectionGenerator.kt:163 */
|
2339 3021 | impl ::std::convert::From<ConBSet> for ::std::vec::Vec<::std::vec::Vec<::std::string::String>> {
|
2340 3022 | fn from(value: ConBSet) -> Self {
|
2341 3023 | value.into_inner().into_iter().map(|v| v.into()).collect()
|
2342 3024 | }
|
2343 3025 | }
|
3026 + | /* ConstrainedCollectionGenerator.kt:181 */
|
2344 3027 | impl crate::constrained::Constrained for ConBSet {
|
2345 3028 | type Unconstrained = crate::unconstrained::con_b_set_unconstrained::ConBSetUnconstrained;
|
2346 3029 | }
|
2347 3030 |
|
3031 + | /* ConstrainedCollectionGenerator.kt:93 */
|
2348 3032 | #[allow(missing_docs)] // documentation missing in model
|
2349 - | ///
|
3033 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
2350 3034 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2351 3035 | /// [constraint traits]. Use [`ConBSetInner::try_from`] to construct values of this type.
|
2352 3036 | ///
|
2353 3037 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2354 3038 | ///
|
3039 + | /* RustType.kt:516 */
|
2355 3040 | #[derive(
|
2356 3041 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2357 3042 | )]
|
2358 - | pub(crate) struct ConBSetInner(pub(crate) ::std::vec::Vec<::std::string::String>);
|
3043 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct ConBSetInner(
|
3044 + | pub(crate) ::std::vec::Vec<::std::string::String>,
|
3045 + | );
|
3046 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2359 3047 | impl ConBSetInner {
|
3048 + | /* ConstrainedCollectionGenerator.kt:116 */
|
2360 3049 | /// Consumes the value, returning the underlying [`::std::vec::Vec<::std::string::String>`].
|
2361 3050 | pub fn into_inner(self) -> ::std::vec::Vec<::std::string::String> {
|
2362 3051 | self.0
|
2363 3052 | }
|
2364 3053 |
|
2365 3054 | fn check_unique_items(
|
2366 3055 | items: ::std::vec::Vec<::std::string::String>,
|
2367 3056 | ) -> ::std::result::Result<
|
2368 3057 | ::std::vec::Vec<::std::string::String>,
|
2369 3058 | crate::model::con_b_set_inner_internal::ConstraintViolation,
|
2370 3059 | > {
|
2371 3060 | let mut seen = ::std::collections::HashMap::new();
|
2372 3061 | let mut duplicate_indices = ::std::vec::Vec::new();
|
2373 3062 | for (idx, item) in items.iter().enumerate() {
|
2374 3063 | if let Some(prev_idx) = seen.insert(item, idx) {
|
2375 3064 | duplicate_indices.push(prev_idx);
|
2376 3065 | }
|
2377 3066 | }
|
2378 3067 |
|
2379 3068 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
2380 3069 | for idx in &duplicate_indices {
|
2381 3070 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
2382 3071 | last_duplicate_indices.push(prev_idx);
|
2383 3072 | }
|
2384 3073 | }
|
2385 3074 | duplicate_indices.extend(last_duplicate_indices);
|
2386 3075 |
|
2387 3076 | if !duplicate_indices.is_empty() {
|
2388 3077 | debug_assert!(duplicate_indices.len() >= 2);
|
2389 3078 | Err(
|
2390 3079 | crate::model::con_b_set_inner_internal::ConstraintViolation::UniqueItems {
|
2391 3080 | duplicate_indices,
|
2392 3081 | original: items,
|
2393 3082 | },
|
2394 3083 | )
|
2395 3084 | } else {
|
2396 3085 | Ok(items)
|
2397 3086 | }
|
2398 3087 | }
|
3088 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2399 3089 | }
|
3090 + | /* ConstrainedCollectionGenerator.kt:133 */
|
2400 3091 | impl ::std::convert::TryFrom<::std::vec::Vec<::std::string::String>> for ConBSetInner {
|
2401 3092 | type Error = crate::model::con_b_set_inner_internal::ConstraintViolation;
|
2402 3093 |
|
2403 3094 | /// Constructs a `ConBSetInner` from an [`::std::vec::Vec<::std::string::String>`], failing when the provided value does not satisfy the modeled constraints.
|
2404 3095 | fn try_from(
|
2405 3096 | value: ::std::vec::Vec<::std::string::String>,
|
2406 3097 | ) -> ::std::result::Result<Self, Self::Error> {
|
2407 3098 | let value = Self::check_unique_items(value)?;
|
2408 3099 |
|
2409 3100 | Ok(Self(value))
|
2410 3101 | }
|
2411 3102 | }
|
2412 3103 |
|
2413 3104 | impl ::std::convert::From<ConBSetInner> for ::std::vec::Vec<::std::string::String> {
|
2414 3105 | fn from(value: ConBSetInner) -> Self {
|
2415 3106 | value.into_inner()
|
2416 3107 | }
|
2417 3108 | }
|
3109 + | /* ConstrainedCollectionGenerator.kt:181 */
|
2418 3110 | impl crate::constrained::Constrained for ConBSetInner {
|
2419 3111 | type Unconstrained =
|
2420 3112 | crate::unconstrained::con_b_set_inner_unconstrained::ConBSetInnerUnconstrained;
|
2421 3113 | }
|
2422 3114 |
|
3115 + | /* StructureGenerator.kt:197 */
|
2423 3116 | #[allow(missing_docs)] // documentation missing in model
|
3117 + | /* RustType.kt:516 */
|
2424 3118 | #[derive(
|
2425 3119 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2426 3120 | )]
|
2427 - | pub struct ConB {
|
3121 + | pub /* StructureGenerator.kt:201 */ struct ConB {
|
3122 + | /* StructureGenerator.kt:231 */
|
2428 3123 | #[allow(missing_docs)] // documentation missing in model
|
2429 3124 | pub nice: ::std::string::String,
|
3125 + | /* StructureGenerator.kt:231 */
|
2430 3126 | #[allow(missing_docs)] // documentation missing in model
|
2431 3127 | pub int: i32,
|
3128 + | /* StructureGenerator.kt:231 */
|
2432 3129 | #[allow(missing_docs)] // documentation missing in model
|
2433 3130 | pub opt_nice: ::std::option::Option<::std::string::String>,
|
3131 + | /* StructureGenerator.kt:231 */
|
2434 3132 | #[allow(missing_docs)] // documentation missing in model
|
2435 3133 | pub opt_int: ::std::option::Option<i32>,
|
3134 + | /* StructureGenerator.kt:201 */
|
2436 3135 | }
|
3136 + | /* StructureGenerator.kt:135 */
|
2437 3137 | impl ConB {
|
3138 + | /* StructureGenerator.kt:231 */
|
2438 3139 | #[allow(missing_docs)] // documentation missing in model
|
3140 + | /* StructureGenerator.kt:166 */
|
2439 3141 | pub fn nice(&self) -> &str {
|
3142 + | /* StructureGenerator.kt:171 */
|
2440 3143 | use std::ops::Deref;
|
2441 3144 | self.nice.deref()
|
3145 + | /* StructureGenerator.kt:166 */
|
2442 3146 | }
|
3147 + | /* StructureGenerator.kt:231 */
|
2443 3148 | #[allow(missing_docs)] // documentation missing in model
|
3149 + | /* StructureGenerator.kt:166 */
|
2444 3150 | pub fn int(&self) -> i32 {
|
3151 + | /* StructureGenerator.kt:168 */
|
2445 3152 | self.int
|
3153 + | /* StructureGenerator.kt:166 */
|
2446 3154 | }
|
3155 + | /* StructureGenerator.kt:231 */
|
2447 3156 | #[allow(missing_docs)] // documentation missing in model
|
3157 + | /* StructureGenerator.kt:166 */
|
2448 3158 | pub fn opt_nice(&self) -> ::std::option::Option<&str> {
|
3159 + | /* StructureGenerator.kt:169 */
|
2449 3160 | self.opt_nice.as_deref()
|
3161 + | /* StructureGenerator.kt:166 */
|
2450 3162 | }
|
3163 + | /* StructureGenerator.kt:231 */
|
2451 3164 | #[allow(missing_docs)] // documentation missing in model
|
3165 + | /* StructureGenerator.kt:166 */
|
2452 3166 | pub fn opt_int(&self) -> ::std::option::Option<i32> {
|
3167 + | /* StructureGenerator.kt:168 */
|
2453 3168 | self.opt_int
|
3169 + | /* StructureGenerator.kt:166 */
|
2454 3170 | }
|
3171 + | /* StructureGenerator.kt:135 */
|
2455 3172 | }
|
3173 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2456 3174 | impl crate::constrained::Constrained for crate::model::ConB {
|
2457 3175 | type Unconstrained = crate::model::con_b_internal::Builder;
|
2458 3176 | }
|
3177 + | /* ServerCodegenVisitor.kt:370 */
|
2459 3178 | impl ConB {
|
2460 - | /// Creates a new builder-style object to manufacture [`ConB`](crate::model::ConB).
|
3179 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConB`](crate::model::ConB).
|
3180 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2461 3181 | pub fn builder() -> crate::model::con_b::Builder {
|
3182 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2462 3183 | crate::model::con_b::Builder::default()
|
3184 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2463 3185 | }
|
3186 + | /* ServerCodegenVisitor.kt:370 */
|
2464 3187 | }
|
2465 3188 |
|
3189 + | /* ConstrainedCollectionGenerator.kt:93 */
|
2466 3190 | #[allow(missing_docs)] // documentation missing in model
|
2467 - | ///
|
3191 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
2468 3192 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2469 3193 | /// [constraint traits]. Use [`SparseLengthList::try_from`] to construct values of this type.
|
2470 3194 | ///
|
2471 3195 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2472 3196 | ///
|
3197 + | /* RustType.kt:516 */
|
2473 3198 | #[derive(
|
2474 3199 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2475 3200 | )]
|
2476 - | pub(crate) struct SparseLengthList(
|
3201 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct SparseLengthList(
|
2477 3202 | pub(crate) ::std::vec::Vec<::std::option::Option<::std::string::String>>,
|
2478 3203 | );
|
3204 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2479 3205 | impl SparseLengthList {
|
3206 + | /* ConstrainedCollectionGenerator.kt:116 */
|
2480 3207 | /// Consumes the value, returning the underlying [`::std::vec::Vec<::std::option::Option<::std::string::String>>`].
|
2481 3208 | pub fn into_inner(self) -> ::std::vec::Vec<::std::option::Option<::std::string::String>> {
|
2482 3209 | self.0
|
2483 3210 | }
|
2484 3211 |
|
2485 3212 | fn check_length(
|
2486 3213 | length: usize,
|
2487 3214 | ) -> ::std::result::Result<(), crate::model::sparse_length_list_internal::ConstraintViolation>
|
2488 3215 | {
|
2489 3216 | if 69 <= length {
|
2490 3217 | Ok(())
|
2491 3218 | } else {
|
2492 3219 | Err(crate::model::sparse_length_list_internal::ConstraintViolation::Length(length))
|
2493 3220 | }
|
2494 3221 | }
|
3222 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2495 3223 | }
|
3224 + | /* ConstrainedCollectionGenerator.kt:133 */
|
2496 3225 | impl ::std::convert::TryFrom<::std::vec::Vec<::std::option::Option<::std::string::String>>>
|
2497 3226 | for SparseLengthList
|
2498 3227 | {
|
2499 3228 | type Error = crate::model::sparse_length_list_internal::ConstraintViolation;
|
2500 3229 |
|
2501 3230 | /// Constructs a `SparseLengthList` from an [`::std::vec::Vec<::std::option::Option<::std::string::String>>`], failing when the provided value does not satisfy the modeled constraints.
|
2502 3231 | fn try_from(
|
2503 3232 | value: ::std::vec::Vec<::std::option::Option<::std::string::String>>,
|
2504 3233 | ) -> ::std::result::Result<Self, Self::Error> {
|
2505 3234 | Self::check_length(value.len())?;
|
2506 3235 |
|
2507 3236 | Ok(Self(value))
|
2508 3237 | }
|
2509 3238 | }
|
2510 3239 |
|
2511 3240 | impl ::std::convert::From<SparseLengthList>
|
2512 3241 | for ::std::vec::Vec<::std::option::Option<::std::string::String>>
|
2513 3242 | {
|
2514 3243 | fn from(value: SparseLengthList) -> Self {
|
2515 3244 | value.into_inner()
|
2516 3245 | }
|
2517 3246 | }
|
3247 + | /* ConstrainedCollectionGenerator.kt:181 */
|
2518 3248 | impl crate::constrained::Constrained for SparseLengthList {
|
2519 3249 | type Unconstrained =
|
2520 3250 | crate::unconstrained::sparse_length_list_unconstrained::SparseLengthListUnconstrained;
|
2521 3251 | }
|
2522 3252 |
|
3253 + | /* ConstrainedMapGenerator.kt:78 */
|
2523 3254 | #[allow(missing_docs)] // documentation missing in model
|
2524 - | ///
|
3255 + | /// /* ConstrainedMapGenerator.kt:79 */
|
2525 3256 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2526 3257 | /// [constraint traits]. Use [`SparseLengthMap::try_from`] to construct values of this type.
|
2527 3258 | ///
|
2528 3259 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2529 3260 | ///
|
3261 + | /* RustType.kt:516 */
|
2530 3262 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2531 - | pub(crate) struct SparseLengthMap(
|
3263 + | pub(crate) /* ConstrainedMapGenerator.kt:82 */ struct SparseLengthMap(
|
2532 3264 | pub(crate) ::std::collections::HashMap<
|
2533 3265 | ::std::string::String,
|
2534 3266 | ::std::option::Option<::std::string::String>,
|
2535 3267 | >,
|
2536 3268 | );
|
3269 + | /* ConstrainedMapGenerator.kt:83 */
|
2537 3270 | impl SparseLengthMap {
|
3271 + | /* ConstrainedMapGenerator.kt:95 */
|
2538 3272 | /// Consumes the value, returning the underlying [`::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>`].
|
2539 3273 | pub fn into_inner(
|
2540 3274 | self,
|
2541 3275 | ) -> ::std::collections::HashMap<
|
2542 3276 | ::std::string::String,
|
2543 3277 | ::std::option::Option<::std::string::String>,
|
2544 3278 | > {
|
2545 3279 | self.0
|
2546 3280 | }
|
3281 + | /* ConstrainedMapGenerator.kt:83 */
|
2547 3282 | }
|
3283 + | /* ConstrainedMapGenerator.kt:106 */
|
2548 3284 | impl
|
2549 3285 | ::std::convert::TryFrom<
|
2550 3286 | ::std::collections::HashMap<
|
2551 3287 | ::std::string::String,
|
2552 3288 | ::std::option::Option<::std::string::String>,
|
2553 3289 | >,
|
2554 3290 | > for SparseLengthMap
|
2555 3291 | {
|
2556 3292 | type Error = crate::model::sparse_length_map_internal::ConstraintViolation;
|
2557 3293 |
|
2558 3294 | /// Constructs a `SparseLengthMap` from an [`::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>`], failing when the provided value does not satisfy the modeled constraints.
|
2559 3295 | fn try_from(
|
2560 3296 | value: ::std::collections::HashMap<
|
2561 3297 | ::std::string::String,
|
2562 3298 | ::std::option::Option<::std::string::String>,
|
2563 3299 | >,
|
2564 3300 | ) -> ::std::result::Result<Self, Self::Error> {
|
2565 3301 | let length = value.len();
|
2566 3302 | if 69 <= length {
|
2567 3303 | Ok(Self(value))
|
2568 3304 | } else {
|
2569 3305 | Err(crate::model::sparse_length_map_internal::ConstraintViolation::Length(length))
|
2570 3306 | }
|
2571 3307 | }
|
2572 3308 | }
|
2573 3309 |
|
2574 3310 | impl ::std::convert::From<SparseLengthMap>
|
2575 3311 | for ::std::collections::HashMap<
|
2576 3312 | ::std::string::String,
|
2577 3313 | ::std::option::Option<::std::string::String>,
|
2578 3314 | >
|
2579 3315 | {
|
2580 3316 | fn from(value: SparseLengthMap) -> Self {
|
2581 3317 | value.into_inner()
|
2582 3318 | }
|
2583 3319 | }
|
3320 + | /* ConstrainedMapGenerator.kt:164 */
|
2584 3321 | impl crate::constrained::Constrained for SparseLengthMap {
|
2585 3322 | type Unconstrained =
|
2586 3323 | crate::unconstrained::sparse_length_map_unconstrained::SparseLengthMapUnconstrained;
|
2587 3324 | }
|
2588 3325 |
|
3326 + | /* ConstrainedCollectionGenerator.kt:93 */
|
2589 3327 | #[allow(missing_docs)] // documentation missing in model
|
2590 - | ///
|
3328 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
2591 3329 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2592 3330 | /// [constraint traits]. Use [`UniqueItemsList::try_from`] to construct values of this type.
|
2593 3331 | ///
|
2594 3332 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2595 3333 | ///
|
3334 + | /* RustType.kt:516 */
|
2596 3335 | #[derive(
|
2597 3336 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2598 3337 | )]
|
2599 - | pub(crate) struct UniqueItemsList(pub(crate) ::std::vec::Vec<::std::string::String>);
|
3338 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct UniqueItemsList(
|
3339 + | pub(crate) ::std::vec::Vec<::std::string::String>,
|
3340 + | );
|
3341 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2600 3342 | impl UniqueItemsList {
|
3343 + | /* ConstrainedCollectionGenerator.kt:116 */
|
2601 3344 | /// Consumes the value, returning the underlying [`::std::vec::Vec<::std::string::String>`].
|
2602 3345 | pub fn into_inner(self) -> ::std::vec::Vec<::std::string::String> {
|
2603 3346 | self.0
|
2604 3347 | }
|
2605 3348 |
|
2606 3349 | fn check_unique_items(
|
2607 3350 | items: ::std::vec::Vec<::std::string::String>,
|
2608 3351 | ) -> ::std::result::Result<
|
2609 3352 | ::std::vec::Vec<::std::string::String>,
|
2610 3353 | crate::model::unique_items_list_internal::ConstraintViolation,
|
2611 3354 | > {
|
2612 3355 | let mut seen = ::std::collections::HashMap::new();
|
2613 3356 | let mut duplicate_indices = ::std::vec::Vec::new();
|
2614 3357 | for (idx, item) in items.iter().enumerate() {
|
2615 3358 | if let Some(prev_idx) = seen.insert(item, idx) {
|
2616 3359 | duplicate_indices.push(prev_idx);
|
2617 3360 | }
|
2618 3361 | }
|
2619 3362 |
|
2620 3363 | let mut last_duplicate_indices = ::std::vec::Vec::new();
|
2621 3364 | for idx in &duplicate_indices {
|
2622 3365 | if let Some(prev_idx) = seen.remove(&items[*idx]) {
|
2623 3366 | last_duplicate_indices.push(prev_idx);
|
2624 3367 | }
|
2625 3368 | }
|
2626 3369 | duplicate_indices.extend(last_duplicate_indices);
|
2627 3370 |
|
2628 3371 | if !duplicate_indices.is_empty() {
|
2629 3372 | debug_assert!(duplicate_indices.len() >= 2);
|
2630 3373 | Err(
|
2631 3374 | crate::model::unique_items_list_internal::ConstraintViolation::UniqueItems {
|
2632 3375 | duplicate_indices,
|
2633 3376 | original: items,
|
2634 3377 | },
|
2635 3378 | )
|
2636 3379 | } else {
|
2637 3380 | Ok(items)
|
2638 3381 | }
|
2639 3382 | }
|
3383 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2640 3384 | }
|
3385 + | /* ConstrainedCollectionGenerator.kt:133 */
|
2641 3386 | impl ::std::convert::TryFrom<::std::vec::Vec<::std::string::String>> for UniqueItemsList {
|
2642 3387 | type Error = crate::model::unique_items_list_internal::ConstraintViolation;
|
2643 3388 |
|
2644 3389 | /// Constructs a `UniqueItemsList` from an [`::std::vec::Vec<::std::string::String>`], failing when the provided value does not satisfy the modeled constraints.
|
2645 3390 | fn try_from(
|
2646 3391 | value: ::std::vec::Vec<::std::string::String>,
|
2647 3392 | ) -> ::std::result::Result<Self, Self::Error> {
|
2648 3393 | let value = Self::check_unique_items(value)?;
|
2649 3394 |
|
2650 3395 | Ok(Self(value))
|
2651 3396 | }
|
2652 3397 | }
|
2653 3398 |
|
2654 3399 | impl ::std::convert::From<UniqueItemsList> for ::std::vec::Vec<::std::string::String> {
|
2655 3400 | fn from(value: UniqueItemsList) -> Self {
|
2656 3401 | value.into_inner()
|
2657 3402 | }
|
2658 3403 | }
|
3404 + | /* ConstrainedCollectionGenerator.kt:181 */
|
2659 3405 | impl crate::constrained::Constrained for UniqueItemsList {
|
2660 3406 | type Unconstrained =
|
2661 3407 | crate::unconstrained::unique_items_list_unconstrained::UniqueItemsListUnconstrained;
|
2662 3408 | }
|
2663 3409 |
|
3410 + | /* ConstrainedMapGenerator.kt:78 */
|
2664 3411 | #[allow(missing_docs)] // documentation missing in model
|
2665 - | ///
|
3412 + | /// /* ConstrainedMapGenerator.kt:79 */
|
2666 3413 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2667 3414 | /// [constraint traits]. Use [`LengthMap::try_from`] to construct values of this type.
|
2668 3415 | ///
|
2669 3416 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2670 3417 | ///
|
3418 + | /* RustType.kt:516 */
|
2671 3419 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2672 - | pub(crate) struct LengthMap(
|
3420 + | pub(crate) /* ConstrainedMapGenerator.kt:82 */ struct LengthMap(
|
2673 3421 | pub(crate) ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2674 3422 | );
|
3423 + | /* ConstrainedMapGenerator.kt:83 */
|
2675 3424 | impl LengthMap {
|
3425 + | /* ConstrainedMapGenerator.kt:95 */
|
2676 3426 | /// Consumes the value, returning the underlying [`::std::collections::HashMap<::std::string::String, ::std::string::String>`].
|
2677 3427 | pub fn into_inner(
|
2678 3428 | self,
|
2679 3429 | ) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
2680 3430 | self.0
|
2681 3431 | }
|
3432 + | /* ConstrainedMapGenerator.kt:83 */
|
2682 3433 | }
|
3434 + | /* ConstrainedMapGenerator.kt:106 */
|
2683 3435 | impl
|
2684 3436 | ::std::convert::TryFrom<
|
2685 3437 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2686 3438 | > for LengthMap
|
2687 3439 | {
|
2688 3440 | type Error = crate::model::length_map_internal::ConstraintViolation;
|
2689 3441 |
|
2690 3442 | /// Constructs a `LengthMap` from an [`::std::collections::HashMap<::std::string::String, ::std::string::String>`], failing when the provided value does not satisfy the modeled constraints.
|
2691 3443 | fn try_from(
|
2692 3444 | value: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2693 3445 | ) -> ::std::result::Result<Self, Self::Error> {
|
2694 3446 | let length = value.len();
|
2695 3447 | if (1..=69).contains(&length) {
|
2696 3448 | Ok(Self(value))
|
2697 3449 | } else {
|
2698 3450 | Err(crate::model::length_map_internal::ConstraintViolation::Length(length))
|
2699 3451 | }
|
2700 3452 | }
|
2701 3453 | }
|
2702 3454 |
|
2703 3455 | impl ::std::convert::From<LengthMap>
|
2704 3456 | for ::std::collections::HashMap<::std::string::String, ::std::string::String>
|
2705 3457 | {
|
2706 3458 | fn from(value: LengthMap) -> Self {
|
2707 3459 | value.into_inner()
|
2708 3460 | }
|
2709 3461 | }
|
3462 + | /* ConstrainedMapGenerator.kt:164 */
|
2710 3463 | impl crate::constrained::Constrained for LengthMap {
|
2711 3464 | type Unconstrained = crate::unconstrained::length_map_unconstrained::LengthMapUnconstrained;
|
2712 3465 | }
|
2713 3466 |
|
3467 + | /* ConstrainedCollectionGenerator.kt:93 */
|
2714 3468 | #[allow(missing_docs)] // documentation missing in model
|
2715 - | ///
|
3469 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
2716 3470 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2717 3471 | /// [constraint traits]. Use [`SensitiveLengthList::try_from`] to construct values of this type.
|
2718 3472 | ///
|
2719 3473 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2720 3474 | ///
|
3475 + | /* RustType.kt:516 */
|
2721 3476 | #[derive(
|
2722 3477 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2723 3478 | )]
|
2724 - | pub(crate) struct SensitiveLengthList(pub(crate) ::std::vec::Vec<crate::model::SensitiveStructure>);
|
3479 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct SensitiveLengthList(
|
3480 + | pub(crate) ::std::vec::Vec<crate::model::SensitiveStructure>,
|
3481 + | );
|
3482 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2725 3483 | impl SensitiveLengthList {
|
3484 + | /* ConstrainedCollectionGenerator.kt:116 */
|
2726 3485 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::SensitiveStructure>`].
|
2727 3486 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::SensitiveStructure> {
|
2728 3487 | self.0
|
2729 3488 | }
|
2730 3489 |
|
2731 3490 | fn check_length(
|
2732 3491 | length: usize,
|
2733 3492 | ) -> ::std::result::Result<(), crate::model::sensitive_length_list_internal::ConstraintViolation>
|
2734 3493 | {
|
2735 3494 | if length <= 69 {
|
2736 3495 | Ok(())
|
2737 3496 | } else {
|
2738 3497 | Err(crate::model::sensitive_length_list_internal::ConstraintViolation::Length(length))
|
2739 3498 | }
|
2740 3499 | }
|
3500 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2741 3501 | }
|
3502 + | /* ConstrainedCollectionGenerator.kt:133 */
|
2742 3503 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::SensitiveStructure>>
|
2743 3504 | for SensitiveLengthList
|
2744 3505 | {
|
2745 3506 | type Error = crate::model::sensitive_length_list_internal::ConstraintViolation;
|
2746 3507 |
|
2747 3508 | /// Constructs a `SensitiveLengthList` from an [`::std::vec::Vec<crate::model::SensitiveStructure>`], failing when the provided value does not satisfy the modeled constraints.
|
2748 3509 | fn try_from(
|
2749 3510 | value: ::std::vec::Vec<crate::model::SensitiveStructure>,
|
2750 3511 | ) -> ::std::result::Result<Self, Self::Error> {
|
2751 3512 | Self::check_length(value.len())?;
|
2752 3513 |
|
2753 3514 | Ok(Self(value))
|
2754 3515 | }
|
2755 3516 | }
|
2756 3517 |
|
2757 3518 | impl ::std::convert::From<SensitiveLengthList>
|
2758 3519 | for ::std::vec::Vec<crate::model::SensitiveStructure>
|
2759 3520 | {
|
2760 3521 | fn from(value: SensitiveLengthList) -> Self {
|
2761 3522 | value.into_inner()
|
2762 3523 | }
|
2763 3524 | }
|
3525 + | /* ConstrainedCollectionGenerator.kt:181 */
|
2764 3526 | impl crate::constrained::Constrained for SensitiveLengthList {
|
2765 3527 | type Unconstrained =
|
2766 3528 | crate::unconstrained::sensitive_length_list_unconstrained::SensitiveLengthListUnconstrained;
|
2767 3529 | }
|
2768 3530 |
|
3531 + | /* StructureGenerator.kt:197 */
|
2769 3532 | #[allow(missing_docs)] // documentation missing in model
|
3533 + | /* RustType.kt:516 */
|
2770 3534 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::hash::Hash)]
|
2771 - | pub struct SensitiveStructure {}
|
3535 + | pub /* StructureGenerator.kt:201 */ struct SensitiveStructure {/* StructureGenerator.kt:201 */}
|
3536 + | /* StructureGenerator.kt:101 */
|
2772 3537 | impl ::std::fmt::Debug for SensitiveStructure {
|
3538 + | /* StructureGenerator.kt:105 */
|
2773 3539 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
3540 + | /* StructureGenerator.kt:106 */
|
2774 3541 | let mut formatter = f.debug_struct("SensitiveStructure");
|
3542 + | /* StructureGenerator.kt:126 */
|
2775 3543 | formatter.finish()
|
3544 + | /* StructureGenerator.kt:105 */
|
2776 3545 | }
|
3546 + | /* StructureGenerator.kt:101 */
|
2777 3547 | }
|
3548 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2778 3549 | impl crate::constrained::Constrained for crate::model::SensitiveStructure {
|
2779 3550 | type Unconstrained = crate::model::sensitive_structure_internal::Builder;
|
2780 3551 | }
|
3552 + | /* ServerCodegenVisitor.kt:370 */
|
2781 3553 | impl SensitiveStructure {
|
2782 - | /// Creates a new builder-style object to manufacture [`SensitiveStructure`](crate::model::SensitiveStructure).
|
3554 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`SensitiveStructure`](crate::model::SensitiveStructure).
|
3555 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2783 3556 | pub fn builder() -> crate::model::sensitive_structure::Builder {
|
3557 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2784 3558 | crate::model::sensitive_structure::Builder::default()
|
3559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2785 3560 | }
|
3561 + | /* ServerCodegenVisitor.kt:370 */
|
2786 3562 | }
|
2787 3563 |
|
3564 + | /* ConstrainedCollectionGenerator.kt:93 */
|
2788 3565 | #[allow(missing_docs)] // documentation missing in model
|
2789 - | ///
|
3566 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
2790 3567 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2791 3568 | /// [constraint traits]. Use [`LengthList::try_from`] to construct values of this type.
|
2792 3569 | ///
|
2793 3570 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2794 3571 | ///
|
3572 + | /* RustType.kt:516 */
|
2795 3573 | #[derive(
|
2796 3574 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2797 3575 | )]
|
2798 - | pub(crate) struct LengthList(pub(crate) ::std::vec::Vec<::std::string::String>);
|
3576 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct LengthList(
|
3577 + | pub(crate) ::std::vec::Vec<::std::string::String>,
|
3578 + | );
|
3579 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2799 3580 | impl LengthList {
|
3581 + | /* ConstrainedCollectionGenerator.kt:116 */
|
2800 3582 | /// Consumes the value, returning the underlying [`::std::vec::Vec<::std::string::String>`].
|
2801 3583 | pub fn into_inner(self) -> ::std::vec::Vec<::std::string::String> {
|
2802 3584 | self.0
|
2803 3585 | }
|
2804 3586 |
|
2805 3587 | fn check_length(
|
2806 3588 | length: usize,
|
2807 3589 | ) -> ::std::result::Result<(), crate::model::length_list_internal::ConstraintViolation> {
|
2808 3590 | if length <= 69 {
|
2809 3591 | Ok(())
|
2810 3592 | } else {
|
2811 3593 | Err(crate::model::length_list_internal::ConstraintViolation::Length(length))
|
2812 3594 | }
|
2813 3595 | }
|
3596 + | /* ConstrainedCollectionGenerator.kt:104 */
|
2814 3597 | }
|
3598 + | /* ConstrainedCollectionGenerator.kt:133 */
|
2815 3599 | impl ::std::convert::TryFrom<::std::vec::Vec<::std::string::String>> for LengthList {
|
2816 3600 | type Error = crate::model::length_list_internal::ConstraintViolation;
|
2817 3601 |
|
2818 3602 | /// Constructs a `LengthList` from an [`::std::vec::Vec<::std::string::String>`], failing when the provided value does not satisfy the modeled constraints.
|
2819 3603 | fn try_from(
|
2820 3604 | value: ::std::vec::Vec<::std::string::String>,
|
2821 3605 | ) -> ::std::result::Result<Self, Self::Error> {
|
2822 3606 | Self::check_length(value.len())?;
|
2823 3607 |
|
2824 3608 | Ok(Self(value))
|
2825 3609 | }
|
2826 3610 | }
|
2827 3611 |
|
2828 3612 | impl ::std::convert::From<LengthList> for ::std::vec::Vec<::std::string::String> {
|
2829 3613 | fn from(value: LengthList) -> Self {
|
2830 3614 | value.into_inner()
|
2831 3615 | }
|
2832 3616 | }
|
3617 + | /* ConstrainedCollectionGenerator.kt:181 */
|
2833 3618 | impl crate::constrained::Constrained for LengthList {
|
2834 3619 | type Unconstrained = crate::unconstrained::length_list_unconstrained::LengthListUnconstrained;
|
2835 3620 | }
|
2836 3621 |
|
3622 + | /* ConstrainedNumberGenerator.kt:82 */
|
2837 3623 | #[allow(missing_docs)] // documentation missing in model
|
2838 - | ///
|
3624 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
2839 3625 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2840 3626 | /// [constraint traits]. Use [`FixedValueByte::try_from`] to construct values of this type.
|
2841 3627 | ///
|
2842 3628 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2843 3629 | ///
|
3630 + | /* RustType.kt:516 */
|
2844 3631 | #[derive(
|
2845 3632 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2846 3633 | )]
|
2847 - | pub(crate) struct FixedValueByte(pub(crate) i8);
|
3634 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct FixedValueByte(pub(crate) i8);
|
3635 + | /* RustType.kt:516 */
|
2848 3636 | #[allow(dead_code)]
|
3637 + | /* ConstrainedNumberGenerator.kt:91 */
|
2849 3638 | impl FixedValueByte {
|
2850 3639 | /// Returns an immutable reference to the underlying [`i8`].
|
2851 3640 | pub fn inner(&self) -> &i8 {
|
2852 3641 | &self.0
|
2853 3642 | }
|
2854 3643 |
|
2855 3644 | /// Consumes the value, returning the underlying [`i8`].
|
2856 3645 | pub fn into_inner(self) -> i8 {
|
2857 3646 | self.0
|
2858 3647 | }
|
2859 3648 | }
|
2860 3649 |
|
2861 3650 | impl crate::constrained::Constrained for FixedValueByte {
|
2862 3651 | type Unconstrained = i8;
|
2863 3652 | }
|
2864 3653 |
|
2865 3654 | impl ::std::convert::From<i8>
|
2866 3655 | for crate::constrained::MaybeConstrained<crate::model::FixedValueByte>
|
2867 3656 | {
|
2868 3657 | fn from(value: i8) -> Self {
|
2869 3658 | Self::Unconstrained(value)
|
2870 3659 | }
|
2871 3660 | }
|
2872 3661 |
|
2873 3662 | impl ::std::fmt::Display for FixedValueByte {
|
2874 3663 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2875 3664 | self.0.fmt(f)
|
2876 3665 | }
|
2877 3666 | }
|
2878 3667 |
|
2879 3668 | impl ::std::convert::From<FixedValueByte> for i8 {
|
2880 3669 | fn from(value: FixedValueByte) -> Self {
|
2881 3670 | value.into_inner()
|
2882 3671 | }
|
2883 3672 | }
|
3673 + | /* TraitInfo.kt:41 */
|
2884 3674 | impl FixedValueByte {
|
2885 3675 | fn check_range(
|
2886 3676 | value: i8,
|
2887 3677 | ) -> ::std::result::Result<(), crate::model::fixed_value_byte_internal::ConstraintViolation>
|
2888 3678 | {
|
2889 3679 | if (10..=10).contains(&value) {
|
2890 3680 | Ok(())
|
2891 3681 | } else {
|
2892 3682 | Err(crate::model::fixed_value_byte_internal::ConstraintViolation::Range(value))
|
2893 3683 | }
|
2894 3684 | }
|
2895 3685 | }
|
3686 + | /* TraitInfo.kt:57 */
|
2896 3687 | impl ::std::convert::TryFrom<i8> for FixedValueByte {
|
2897 3688 | type Error = crate::model::fixed_value_byte_internal::ConstraintViolation;
|
2898 3689 |
|
2899 3690 | /// Constructs a `FixedValueByte` from an [`i8`], failing when the provided value does not satisfy the modeled constraints.
|
2900 3691 | fn try_from(value: i8) -> ::std::result::Result<Self, Self::Error> {
|
2901 3692 | Self::check_range(value)?;
|
2902 3693 |
|
2903 3694 | Ok(Self(value))
|
2904 3695 | }
|
2905 3696 | }
|
2906 3697 |
|
3698 + | /* ConstrainedNumberGenerator.kt:82 */
|
2907 3699 | #[allow(missing_docs)] // documentation missing in model
|
2908 - | ///
|
3700 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
2909 3701 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2910 3702 | /// [constraint traits]. Use [`MaxRangeByte::try_from`] to construct values of this type.
|
2911 3703 | ///
|
2912 3704 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2913 3705 | ///
|
3706 + | /* RustType.kt:516 */
|
2914 3707 | #[derive(
|
2915 3708 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2916 3709 | )]
|
2917 - | pub(crate) struct MaxRangeByte(pub(crate) i8);
|
3710 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct MaxRangeByte(pub(crate) i8);
|
3711 + | /* RustType.kt:516 */
|
2918 3712 | #[allow(dead_code)]
|
3713 + | /* ConstrainedNumberGenerator.kt:91 */
|
2919 3714 | impl MaxRangeByte {
|
2920 3715 | /// Returns an immutable reference to the underlying [`i8`].
|
2921 3716 | pub fn inner(&self) -> &i8 {
|
2922 3717 | &self.0
|
2923 3718 | }
|
2924 3719 |
|
2925 3720 | /// Consumes the value, returning the underlying [`i8`].
|
2926 3721 | pub fn into_inner(self) -> i8 {
|
2927 3722 | self.0
|
2928 3723 | }
|
2929 3724 | }
|
2930 3725 |
|
2931 3726 | impl crate::constrained::Constrained for MaxRangeByte {
|
2932 3727 | type Unconstrained = i8;
|
2933 3728 | }
|
2934 3729 |
|
2935 3730 | impl ::std::convert::From<i8> for crate::constrained::MaybeConstrained<crate::model::MaxRangeByte> {
|
2936 3731 | fn from(value: i8) -> Self {
|
2937 3732 | Self::Unconstrained(value)
|
2938 3733 | }
|
2939 3734 | }
|
2940 3735 |
|
2941 3736 | impl ::std::fmt::Display for MaxRangeByte {
|
2942 3737 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2943 3738 | self.0.fmt(f)
|
2944 3739 | }
|
2945 3740 | }
|
2946 3741 |
|
2947 3742 | impl ::std::convert::From<MaxRangeByte> for i8 {
|
2948 3743 | fn from(value: MaxRangeByte) -> Self {
|
2949 3744 | value.into_inner()
|
2950 3745 | }
|
2951 3746 | }
|
3747 + | /* TraitInfo.kt:41 */
|
2952 3748 | impl MaxRangeByte {
|
2953 3749 | fn check_range(
|
2954 3750 | value: i8,
|
2955 3751 | ) -> ::std::result::Result<(), crate::model::max_range_byte_internal::ConstraintViolation> {
|
2956 3752 | if value <= 11 {
|
2957 3753 | Ok(())
|
2958 3754 | } else {
|
2959 3755 | Err(crate::model::max_range_byte_internal::ConstraintViolation::Range(value))
|
2960 3756 | }
|
2961 3757 | }
|
2962 3758 | }
|
3759 + | /* TraitInfo.kt:57 */
|
2963 3760 | impl ::std::convert::TryFrom<i8> for MaxRangeByte {
|
2964 3761 | type Error = crate::model::max_range_byte_internal::ConstraintViolation;
|
2965 3762 |
|
2966 3763 | /// Constructs a `MaxRangeByte` from an [`i8`], failing when the provided value does not satisfy the modeled constraints.
|
2967 3764 | fn try_from(value: i8) -> ::std::result::Result<Self, Self::Error> {
|
2968 3765 | Self::check_range(value)?;
|
2969 3766 |
|
2970 3767 | Ok(Self(value))
|
2971 3768 | }
|
2972 3769 | }
|
2973 3770 |
|
3771 + | /* ConstrainedNumberGenerator.kt:82 */
|
2974 3772 | #[allow(missing_docs)] // documentation missing in model
|
2975 - | ///
|
3773 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
2976 3774 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
2977 3775 | /// [constraint traits]. Use [`MinRangeByte::try_from`] to construct values of this type.
|
2978 3776 | ///
|
2979 3777 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
2980 3778 | ///
|
3779 + | /* RustType.kt:516 */
|
2981 3780 | #[derive(
|
2982 3781 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2983 3782 | )]
|
2984 - | pub(crate) struct MinRangeByte(pub(crate) i8);
|
3783 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct MinRangeByte(pub(crate) i8);
|
3784 + | /* RustType.kt:516 */
|
2985 3785 | #[allow(dead_code)]
|
3786 + | /* ConstrainedNumberGenerator.kt:91 */
|
2986 3787 | impl MinRangeByte {
|
2987 3788 | /// Returns an immutable reference to the underlying [`i8`].
|
2988 3789 | pub fn inner(&self) -> &i8 {
|
2989 3790 | &self.0
|
2990 3791 | }
|
2991 3792 |
|
2992 3793 | /// Consumes the value, returning the underlying [`i8`].
|
2993 3794 | pub fn into_inner(self) -> i8 {
|
2994 3795 | self.0
|
2995 3796 | }
|
2996 3797 | }
|
2997 3798 |
|
2998 3799 | impl crate::constrained::Constrained for MinRangeByte {
|
2999 3800 | type Unconstrained = i8;
|
3000 3801 | }
|
3001 3802 |
|
3002 3803 | impl ::std::convert::From<i8> for crate::constrained::MaybeConstrained<crate::model::MinRangeByte> {
|
3003 3804 | fn from(value: i8) -> Self {
|
3004 3805 | Self::Unconstrained(value)
|
3005 3806 | }
|
3006 3807 | }
|
3007 3808 |
|
3008 3809 | impl ::std::fmt::Display for MinRangeByte {
|
3009 3810 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3010 3811 | self.0.fmt(f)
|
3011 3812 | }
|
3012 3813 | }
|
3013 3814 |
|
3014 3815 | impl ::std::convert::From<MinRangeByte> for i8 {
|
3015 3816 | fn from(value: MinRangeByte) -> Self {
|
3016 3817 | value.into_inner()
|
3017 3818 | }
|
3018 3819 | }
|
3820 + | /* TraitInfo.kt:41 */
|
3019 3821 | impl MinRangeByte {
|
3020 3822 | fn check_range(
|
3021 3823 | value: i8,
|
3022 3824 | ) -> ::std::result::Result<(), crate::model::min_range_byte_internal::ConstraintViolation> {
|
3023 3825 | if -10 <= value {
|
3024 3826 | Ok(())
|
3025 3827 | } else {
|
3026 3828 | Err(crate::model::min_range_byte_internal::ConstraintViolation::Range(value))
|
3027 3829 | }
|
3028 3830 | }
|
3029 3831 | }
|
3832 + | /* TraitInfo.kt:57 */
|
3030 3833 | impl ::std::convert::TryFrom<i8> for MinRangeByte {
|
3031 3834 | type Error = crate::model::min_range_byte_internal::ConstraintViolation;
|
3032 3835 |
|
3033 3836 | /// Constructs a `MinRangeByte` from an [`i8`], failing when the provided value does not satisfy the modeled constraints.
|
3034 3837 | fn try_from(value: i8) -> ::std::result::Result<Self, Self::Error> {
|
3035 3838 | Self::check_range(value)?;
|
3036 3839 |
|
3037 3840 | Ok(Self(value))
|
3038 3841 | }
|
3039 3842 | }
|
3040 3843 |
|
3844 + | /* ConstrainedNumberGenerator.kt:82 */
|
3041 3845 | #[allow(missing_docs)] // documentation missing in model
|
3042 - | ///
|
3846 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
3043 3847 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3044 3848 | /// [constraint traits]. Use [`FixedValueLong::try_from`] to construct values of this type.
|
3045 3849 | ///
|
3046 3850 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3047 3851 | ///
|
3852 + | /* RustType.kt:516 */
|
3048 3853 | #[derive(
|
3049 3854 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3050 3855 | )]
|
3051 - | pub(crate) struct FixedValueLong(pub(crate) i64);
|
3856 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct FixedValueLong(pub(crate) i64);
|
3857 + | /* RustType.kt:516 */
|
3052 3858 | #[allow(dead_code)]
|
3859 + | /* ConstrainedNumberGenerator.kt:91 */
|
3053 3860 | impl FixedValueLong {
|
3054 3861 | /// Returns an immutable reference to the underlying [`i64`].
|
3055 3862 | pub fn inner(&self) -> &i64 {
|
3056 3863 | &self.0
|
3057 3864 | }
|
3058 3865 |
|
3059 3866 | /// Consumes the value, returning the underlying [`i64`].
|
3060 3867 | pub fn into_inner(self) -> i64 {
|
3061 3868 | self.0
|
3062 3869 | }
|
3063 3870 | }
|
3064 3871 |
|
3065 3872 | impl crate::constrained::Constrained for FixedValueLong {
|
3066 3873 | type Unconstrained = i64;
|
3067 3874 | }
|
3068 3875 |
|
3069 3876 | impl ::std::convert::From<i64>
|
3070 3877 | for crate::constrained::MaybeConstrained<crate::model::FixedValueLong>
|
3071 3878 | {
|
3072 3879 | fn from(value: i64) -> Self {
|
3073 3880 | Self::Unconstrained(value)
|
3074 3881 | }
|
3075 3882 | }
|
3076 3883 |
|
3077 3884 | impl ::std::fmt::Display for FixedValueLong {
|
3078 3885 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3079 3886 | self.0.fmt(f)
|
3080 3887 | }
|
3081 3888 | }
|
3082 3889 |
|
3083 3890 | impl ::std::convert::From<FixedValueLong> for i64 {
|
3084 3891 | fn from(value: FixedValueLong) -> Self {
|
3085 3892 | value.into_inner()
|
3086 3893 | }
|
3087 3894 | }
|
3895 + | /* TraitInfo.kt:41 */
|
3088 3896 | impl FixedValueLong {
|
3089 3897 | fn check_range(
|
3090 3898 | value: i64,
|
3091 3899 | ) -> ::std::result::Result<(), crate::model::fixed_value_long_internal::ConstraintViolation>
|
3092 3900 | {
|
3093 3901 | if (10..=10).contains(&value) {
|
3094 3902 | Ok(())
|
3095 3903 | } else {
|
3096 3904 | Err(crate::model::fixed_value_long_internal::ConstraintViolation::Range(value))
|
3097 3905 | }
|
3098 3906 | }
|
3099 3907 | }
|
3908 + | /* TraitInfo.kt:57 */
|
3100 3909 | impl ::std::convert::TryFrom<i64> for FixedValueLong {
|
3101 3910 | type Error = crate::model::fixed_value_long_internal::ConstraintViolation;
|
3102 3911 |
|
3103 3912 | /// Constructs a `FixedValueLong` from an [`i64`], failing when the provided value does not satisfy the modeled constraints.
|
3104 3913 | fn try_from(value: i64) -> ::std::result::Result<Self, Self::Error> {
|
3105 3914 | Self::check_range(value)?;
|
3106 3915 |
|
3107 3916 | Ok(Self(value))
|
3108 3917 | }
|
3109 3918 | }
|
3110 3919 |
|
3920 + | /* ConstrainedNumberGenerator.kt:82 */
|
3111 3921 | #[allow(missing_docs)] // documentation missing in model
|
3112 - | ///
|
3922 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
3113 3923 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3114 3924 | /// [constraint traits]. Use [`MaxRangeLong::try_from`] to construct values of this type.
|
3115 3925 | ///
|
3116 3926 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3117 3927 | ///
|
3928 + | /* RustType.kt:516 */
|
3118 3929 | #[derive(
|
3119 3930 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3120 3931 | )]
|
3121 - | pub(crate) struct MaxRangeLong(pub(crate) i64);
|
3932 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct MaxRangeLong(pub(crate) i64);
|
3933 + | /* RustType.kt:516 */
|
3122 3934 | #[allow(dead_code)]
|
3935 + | /* ConstrainedNumberGenerator.kt:91 */
|
3123 3936 | impl MaxRangeLong {
|
3124 3937 | /// Returns an immutable reference to the underlying [`i64`].
|
3125 3938 | pub fn inner(&self) -> &i64 {
|
3126 3939 | &self.0
|
3127 3940 | }
|
3128 3941 |
|
3129 3942 | /// Consumes the value, returning the underlying [`i64`].
|
3130 3943 | pub fn into_inner(self) -> i64 {
|
3131 3944 | self.0
|
3132 3945 | }
|
3133 3946 | }
|
3134 3947 |
|
3135 3948 | impl crate::constrained::Constrained for MaxRangeLong {
|
3136 3949 | type Unconstrained = i64;
|
3137 3950 | }
|
3138 3951 |
|
3139 3952 | impl ::std::convert::From<i64>
|
3140 3953 | for crate::constrained::MaybeConstrained<crate::model::MaxRangeLong>
|
3141 3954 | {
|
3142 3955 | fn from(value: i64) -> Self {
|
3143 3956 | Self::Unconstrained(value)
|
3144 3957 | }
|
3145 3958 | }
|
3146 3959 |
|
3147 3960 | impl ::std::fmt::Display for MaxRangeLong {
|
3148 3961 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3149 3962 | self.0.fmt(f)
|
3150 3963 | }
|
3151 3964 | }
|
3152 3965 |
|
3153 3966 | impl ::std::convert::From<MaxRangeLong> for i64 {
|
3154 3967 | fn from(value: MaxRangeLong) -> Self {
|
3155 3968 | value.into_inner()
|
3156 3969 | }
|
3157 3970 | }
|
3971 + | /* TraitInfo.kt:41 */
|
3158 3972 | impl MaxRangeLong {
|
3159 3973 | fn check_range(
|
3160 3974 | value: i64,
|
3161 3975 | ) -> ::std::result::Result<(), crate::model::max_range_long_internal::ConstraintViolation> {
|
3162 3976 | if value <= 11 {
|
3163 3977 | Ok(())
|
3164 3978 | } else {
|
3165 3979 | Err(crate::model::max_range_long_internal::ConstraintViolation::Range(value))
|
3166 3980 | }
|
3167 3981 | }
|
3168 3982 | }
|
3983 + | /* TraitInfo.kt:57 */
|
3169 3984 | impl ::std::convert::TryFrom<i64> for MaxRangeLong {
|
3170 3985 | type Error = crate::model::max_range_long_internal::ConstraintViolation;
|
3171 3986 |
|
3172 3987 | /// Constructs a `MaxRangeLong` from an [`i64`], failing when the provided value does not satisfy the modeled constraints.
|
3173 3988 | fn try_from(value: i64) -> ::std::result::Result<Self, Self::Error> {
|
3174 3989 | Self::check_range(value)?;
|
3175 3990 |
|
3176 3991 | Ok(Self(value))
|
3177 3992 | }
|
3178 3993 | }
|
3179 3994 |
|
3995 + | /* ConstrainedNumberGenerator.kt:82 */
|
3180 3996 | #[allow(missing_docs)] // documentation missing in model
|
3181 - | ///
|
3997 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
3182 3998 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3183 3999 | /// [constraint traits]. Use [`MinRangeLong::try_from`] to construct values of this type.
|
3184 4000 | ///
|
3185 4001 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3186 4002 | ///
|
4003 + | /* RustType.kt:516 */
|
3187 4004 | #[derive(
|
3188 4005 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3189 4006 | )]
|
3190 - | pub(crate) struct MinRangeLong(pub(crate) i64);
|
4007 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct MinRangeLong(pub(crate) i64);
|
4008 + | /* RustType.kt:516 */
|
3191 4009 | #[allow(dead_code)]
|
4010 + | /* ConstrainedNumberGenerator.kt:91 */
|
3192 4011 | impl MinRangeLong {
|
3193 4012 | /// Returns an immutable reference to the underlying [`i64`].
|
3194 4013 | pub fn inner(&self) -> &i64 {
|
3195 4014 | &self.0
|
3196 4015 | }
|
3197 4016 |
|
3198 4017 | /// Consumes the value, returning the underlying [`i64`].
|
3199 4018 | pub fn into_inner(self) -> i64 {
|
3200 4019 | self.0
|
3201 4020 | }
|
3202 4021 | }
|
3203 4022 |
|
3204 4023 | impl crate::constrained::Constrained for MinRangeLong {
|
3205 4024 | type Unconstrained = i64;
|
3206 4025 | }
|
3207 4026 |
|
3208 4027 | impl ::std::convert::From<i64>
|
3209 4028 | for crate::constrained::MaybeConstrained<crate::model::MinRangeLong>
|
3210 4029 | {
|
3211 4030 | fn from(value: i64) -> Self {
|
3212 4031 | Self::Unconstrained(value)
|
3213 4032 | }
|
3214 4033 | }
|
3215 4034 |
|
3216 4035 | impl ::std::fmt::Display for MinRangeLong {
|
3217 4036 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3218 4037 | self.0.fmt(f)
|
3219 4038 | }
|
3220 4039 | }
|
3221 4040 |
|
3222 4041 | impl ::std::convert::From<MinRangeLong> for i64 {
|
3223 4042 | fn from(value: MinRangeLong) -> Self {
|
3224 4043 | value.into_inner()
|
3225 4044 | }
|
3226 4045 | }
|
4046 + | /* TraitInfo.kt:41 */
|
3227 4047 | impl MinRangeLong {
|
3228 4048 | fn check_range(
|
3229 4049 | value: i64,
|
3230 4050 | ) -> ::std::result::Result<(), crate::model::min_range_long_internal::ConstraintViolation> {
|
3231 4051 | if -10 <= value {
|
3232 4052 | Ok(())
|
3233 4053 | } else {
|
3234 4054 | Err(crate::model::min_range_long_internal::ConstraintViolation::Range(value))
|
3235 4055 | }
|
3236 4056 | }
|
3237 4057 | }
|
4058 + | /* TraitInfo.kt:57 */
|
3238 4059 | impl ::std::convert::TryFrom<i64> for MinRangeLong {
|
3239 4060 | type Error = crate::model::min_range_long_internal::ConstraintViolation;
|
3240 4061 |
|
3241 4062 | /// Constructs a `MinRangeLong` from an [`i64`], failing when the provided value does not satisfy the modeled constraints.
|
3242 4063 | fn try_from(value: i64) -> ::std::result::Result<Self, Self::Error> {
|
3243 4064 | Self::check_range(value)?;
|
3244 4065 |
|
3245 4066 | Ok(Self(value))
|
3246 4067 | }
|
3247 4068 | }
|
3248 4069 |
|
4070 + | /* ConstrainedNumberGenerator.kt:82 */
|
3249 4071 | #[allow(missing_docs)] // documentation missing in model
|
3250 - | ///
|
4072 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
3251 4073 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3252 4074 | /// [constraint traits]. Use [`FixedValueShort::try_from`] to construct values of this type.
|
3253 4075 | ///
|
3254 4076 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3255 4077 | ///
|
4078 + | /* RustType.kt:516 */
|
3256 4079 | #[derive(
|
3257 4080 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3258 4081 | )]
|
3259 - | pub(crate) struct FixedValueShort(pub(crate) i16);
|
4082 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct FixedValueShort(pub(crate) i16);
|
4083 + | /* RustType.kt:516 */
|
3260 4084 | #[allow(dead_code)]
|
4085 + | /* ConstrainedNumberGenerator.kt:91 */
|
3261 4086 | impl FixedValueShort {
|
3262 4087 | /// Returns an immutable reference to the underlying [`i16`].
|
3263 4088 | pub fn inner(&self) -> &i16 {
|
3264 4089 | &self.0
|
3265 4090 | }
|
3266 4091 |
|
3267 4092 | /// Consumes the value, returning the underlying [`i16`].
|
3268 4093 | pub fn into_inner(self) -> i16 {
|
3269 4094 | self.0
|
3270 4095 | }
|
3271 4096 | }
|
3272 4097 |
|
3273 4098 | impl crate::constrained::Constrained for FixedValueShort {
|
3274 4099 | type Unconstrained = i16;
|
3275 4100 | }
|
3276 4101 |
|
3277 4102 | impl ::std::convert::From<i16>
|
3278 4103 | for crate::constrained::MaybeConstrained<crate::model::FixedValueShort>
|
3279 4104 | {
|
3280 4105 | fn from(value: i16) -> Self {
|
3281 4106 | Self::Unconstrained(value)
|
3282 4107 | }
|
3283 4108 | }
|
3284 4109 |
|
3285 4110 | impl ::std::fmt::Display for FixedValueShort {
|
3286 4111 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3287 4112 | self.0.fmt(f)
|
3288 4113 | }
|
3289 4114 | }
|
3290 4115 |
|
3291 4116 | impl ::std::convert::From<FixedValueShort> for i16 {
|
3292 4117 | fn from(value: FixedValueShort) -> Self {
|
3293 4118 | value.into_inner()
|
3294 4119 | }
|
3295 4120 | }
|
4121 + | /* TraitInfo.kt:41 */
|
3296 4122 | impl FixedValueShort {
|
3297 4123 | fn check_range(
|
3298 4124 | value: i16,
|
3299 4125 | ) -> ::std::result::Result<(), crate::model::fixed_value_short_internal::ConstraintViolation>
|
3300 4126 | {
|
3301 4127 | if (10..=10).contains(&value) {
|
3302 4128 | Ok(())
|
3303 4129 | } else {
|
3304 4130 | Err(crate::model::fixed_value_short_internal::ConstraintViolation::Range(value))
|
3305 4131 | }
|
3306 4132 | }
|
3307 4133 | }
|
4134 + | /* TraitInfo.kt:57 */
|
3308 4135 | impl ::std::convert::TryFrom<i16> for FixedValueShort {
|
3309 4136 | type Error = crate::model::fixed_value_short_internal::ConstraintViolation;
|
3310 4137 |
|
3311 4138 | /// Constructs a `FixedValueShort` from an [`i16`], failing when the provided value does not satisfy the modeled constraints.
|
3312 4139 | fn try_from(value: i16) -> ::std::result::Result<Self, Self::Error> {
|
3313 4140 | Self::check_range(value)?;
|
3314 4141 |
|
3315 4142 | Ok(Self(value))
|
3316 4143 | }
|
3317 4144 | }
|
3318 4145 |
|
4146 + | /* ConstrainedNumberGenerator.kt:82 */
|
3319 4147 | #[allow(missing_docs)] // documentation missing in model
|
3320 - | ///
|
4148 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
3321 4149 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3322 4150 | /// [constraint traits]. Use [`MaxRangeShort::try_from`] to construct values of this type.
|
3323 4151 | ///
|
3324 4152 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3325 4153 | ///
|
4154 + | /* RustType.kt:516 */
|
3326 4155 | #[derive(
|
3327 4156 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3328 4157 | )]
|
3329 - | pub(crate) struct MaxRangeShort(pub(crate) i16);
|
4158 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct MaxRangeShort(pub(crate) i16);
|
4159 + | /* RustType.kt:516 */
|
3330 4160 | #[allow(dead_code)]
|
4161 + | /* ConstrainedNumberGenerator.kt:91 */
|
3331 4162 | impl MaxRangeShort {
|
3332 4163 | /// Returns an immutable reference to the underlying [`i16`].
|
3333 4164 | pub fn inner(&self) -> &i16 {
|
3334 4165 | &self.0
|
3335 4166 | }
|
3336 4167 |
|
3337 4168 | /// Consumes the value, returning the underlying [`i16`].
|
3338 4169 | pub fn into_inner(self) -> i16 {
|
3339 4170 | self.0
|
3340 4171 | }
|
3341 4172 | }
|
3342 4173 |
|
3343 4174 | impl crate::constrained::Constrained for MaxRangeShort {
|
3344 4175 | type Unconstrained = i16;
|
3345 4176 | }
|
3346 4177 |
|
3347 4178 | impl ::std::convert::From<i16>
|
3348 4179 | for crate::constrained::MaybeConstrained<crate::model::MaxRangeShort>
|
3349 4180 | {
|
3350 4181 | fn from(value: i16) -> Self {
|
3351 4182 | Self::Unconstrained(value)
|
3352 4183 | }
|
3353 4184 | }
|
3354 4185 |
|
3355 4186 | impl ::std::fmt::Display for MaxRangeShort {
|
3356 4187 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3357 4188 | self.0.fmt(f)
|
3358 4189 | }
|
3359 4190 | }
|
3360 4191 |
|
3361 4192 | impl ::std::convert::From<MaxRangeShort> for i16 {
|
3362 4193 | fn from(value: MaxRangeShort) -> Self {
|
3363 4194 | value.into_inner()
|
3364 4195 | }
|
3365 4196 | }
|
4197 + | /* TraitInfo.kt:41 */
|
3366 4198 | impl MaxRangeShort {
|
3367 4199 | fn check_range(
|
3368 4200 | value: i16,
|
3369 4201 | ) -> ::std::result::Result<(), crate::model::max_range_short_internal::ConstraintViolation>
|
3370 4202 | {
|
3371 4203 | if value <= 11 {
|
3372 4204 | Ok(())
|
3373 4205 | } else {
|
3374 4206 | Err(crate::model::max_range_short_internal::ConstraintViolation::Range(value))
|
3375 4207 | }
|
3376 4208 | }
|
3377 4209 | }
|
4210 + | /* TraitInfo.kt:57 */
|
3378 4211 | impl ::std::convert::TryFrom<i16> for MaxRangeShort {
|
3379 4212 | type Error = crate::model::max_range_short_internal::ConstraintViolation;
|
3380 4213 |
|
3381 4214 | /// Constructs a `MaxRangeShort` from an [`i16`], failing when the provided value does not satisfy the modeled constraints.
|
3382 4215 | fn try_from(value: i16) -> ::std::result::Result<Self, Self::Error> {
|
3383 4216 | Self::check_range(value)?;
|
3384 4217 |
|
3385 4218 | Ok(Self(value))
|
3386 4219 | }
|
3387 4220 | }
|
3388 4221 |
|
4222 + | /* ConstrainedNumberGenerator.kt:82 */
|
3389 4223 | #[allow(missing_docs)] // documentation missing in model
|
3390 - | ///
|
4224 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
3391 4225 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3392 4226 | /// [constraint traits]. Use [`MinRangeShort::try_from`] to construct values of this type.
|
3393 4227 | ///
|
3394 4228 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3395 4229 | ///
|
4230 + | /* RustType.kt:516 */
|
3396 4231 | #[derive(
|
3397 4232 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3398 4233 | )]
|
3399 - | pub(crate) struct MinRangeShort(pub(crate) i16);
|
4234 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct MinRangeShort(pub(crate) i16);
|
4235 + | /* RustType.kt:516 */
|
3400 4236 | #[allow(dead_code)]
|
4237 + | /* ConstrainedNumberGenerator.kt:91 */
|
3401 4238 | impl MinRangeShort {
|
3402 4239 | /// Returns an immutable reference to the underlying [`i16`].
|
3403 4240 | pub fn inner(&self) -> &i16 {
|
3404 4241 | &self.0
|
3405 4242 | }
|
3406 4243 |
|
3407 4244 | /// Consumes the value, returning the underlying [`i16`].
|
3408 4245 | pub fn into_inner(self) -> i16 {
|
3409 4246 | self.0
|
3410 4247 | }
|
3411 4248 | }
|
3412 4249 |
|
3413 4250 | impl crate::constrained::Constrained for MinRangeShort {
|
3414 4251 | type Unconstrained = i16;
|
3415 4252 | }
|
3416 4253 |
|
3417 4254 | impl ::std::convert::From<i16>
|
3418 4255 | for crate::constrained::MaybeConstrained<crate::model::MinRangeShort>
|
3419 4256 | {
|
3420 4257 | fn from(value: i16) -> Self {
|
3421 4258 | Self::Unconstrained(value)
|
3422 4259 | }
|
3423 4260 | }
|
3424 4261 |
|
3425 4262 | impl ::std::fmt::Display for MinRangeShort {
|
3426 4263 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3427 4264 | self.0.fmt(f)
|
3428 4265 | }
|
3429 4266 | }
|
3430 4267 |
|
3431 4268 | impl ::std::convert::From<MinRangeShort> for i16 {
|
3432 4269 | fn from(value: MinRangeShort) -> Self {
|
3433 4270 | value.into_inner()
|
3434 4271 | }
|
3435 4272 | }
|
4273 + | /* TraitInfo.kt:41 */
|
3436 4274 | impl MinRangeShort {
|
3437 4275 | fn check_range(
|
3438 4276 | value: i16,
|
3439 4277 | ) -> ::std::result::Result<(), crate::model::min_range_short_internal::ConstraintViolation>
|
3440 4278 | {
|
3441 4279 | if -10 <= value {
|
3442 4280 | Ok(())
|
3443 4281 | } else {
|
3444 4282 | Err(crate::model::min_range_short_internal::ConstraintViolation::Range(value))
|
3445 4283 | }
|
3446 4284 | }
|
3447 4285 | }
|
4286 + | /* TraitInfo.kt:57 */
|
3448 4287 | impl ::std::convert::TryFrom<i16> for MinRangeShort {
|
3449 4288 | type Error = crate::model::min_range_short_internal::ConstraintViolation;
|
3450 4289 |
|
3451 4290 | /// Constructs a `MinRangeShort` from an [`i16`], failing when the provided value does not satisfy the modeled constraints.
|
3452 4291 | fn try_from(value: i16) -> ::std::result::Result<Self, Self::Error> {
|
3453 4292 | Self::check_range(value)?;
|
3454 4293 |
|
3455 4294 | Ok(Self(value))
|
3456 4295 | }
|
3457 4296 | }
|
3458 4297 |
|
4298 + | /* ConstrainedNumberGenerator.kt:82 */
|
3459 4299 | #[allow(missing_docs)] // documentation missing in model
|
3460 - | ///
|
4300 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
3461 4301 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3462 4302 | /// [constraint traits]. Use [`FixedValueInteger::try_from`] to construct values of this type.
|
3463 4303 | ///
|
3464 4304 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3465 4305 | ///
|
4306 + | /* RustType.kt:516 */
|
3466 4307 | #[derive(
|
3467 4308 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3468 4309 | )]
|
3469 - | pub(crate) struct FixedValueInteger(pub(crate) i32);
|
4310 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct FixedValueInteger(pub(crate) i32);
|
4311 + | /* RustType.kt:516 */
|
3470 4312 | #[allow(dead_code)]
|
4313 + | /* ConstrainedNumberGenerator.kt:91 */
|
3471 4314 | impl FixedValueInteger {
|
3472 4315 | /// Returns an immutable reference to the underlying [`i32`].
|
3473 4316 | pub fn inner(&self) -> &i32 {
|
3474 4317 | &self.0
|
3475 4318 | }
|
3476 4319 |
|
3477 4320 | /// Consumes the value, returning the underlying [`i32`].
|
3478 4321 | pub fn into_inner(self) -> i32 {
|
3479 4322 | self.0
|
3480 4323 | }
|
3481 4324 | }
|
3482 4325 |
|
3483 4326 | impl crate::constrained::Constrained for FixedValueInteger {
|
3484 4327 | type Unconstrained = i32;
|
3485 4328 | }
|
3486 4329 |
|
3487 4330 | impl ::std::convert::From<i32>
|
3488 4331 | for crate::constrained::MaybeConstrained<crate::model::FixedValueInteger>
|
3489 4332 | {
|
3490 4333 | fn from(value: i32) -> Self {
|
3491 4334 | Self::Unconstrained(value)
|
3492 4335 | }
|
3493 4336 | }
|
3494 4337 |
|
3495 4338 | impl ::std::fmt::Display for FixedValueInteger {
|
3496 4339 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3497 4340 | self.0.fmt(f)
|
3498 4341 | }
|
3499 4342 | }
|
3500 4343 |
|
3501 4344 | impl ::std::convert::From<FixedValueInteger> for i32 {
|
3502 4345 | fn from(value: FixedValueInteger) -> Self {
|
3503 4346 | value.into_inner()
|
3504 4347 | }
|
3505 4348 | }
|
4349 + | /* TraitInfo.kt:41 */
|
3506 4350 | impl FixedValueInteger {
|
3507 4351 | fn check_range(
|
3508 4352 | value: i32,
|
3509 4353 | ) -> ::std::result::Result<(), crate::model::fixed_value_integer_internal::ConstraintViolation>
|
3510 4354 | {
|
3511 4355 | if (69..=69).contains(&value) {
|
3512 4356 | Ok(())
|
3513 4357 | } else {
|
3514 4358 | Err(crate::model::fixed_value_integer_internal::ConstraintViolation::Range(value))
|
3515 4359 | }
|
3516 4360 | }
|
3517 4361 | }
|
4362 + | /* TraitInfo.kt:57 */
|
3518 4363 | impl ::std::convert::TryFrom<i32> for FixedValueInteger {
|
3519 4364 | type Error = crate::model::fixed_value_integer_internal::ConstraintViolation;
|
3520 4365 |
|
3521 4366 | /// Constructs a `FixedValueInteger` from an [`i32`], failing when the provided value does not satisfy the modeled constraints.
|
3522 4367 | fn try_from(value: i32) -> ::std::result::Result<Self, Self::Error> {
|
3523 4368 | Self::check_range(value)?;
|
3524 4369 |
|
3525 4370 | Ok(Self(value))
|
3526 4371 | }
|
3527 4372 | }
|
3528 4373 |
|
4374 + | /* ConstrainedNumberGenerator.kt:82 */
|
3529 4375 | #[allow(missing_docs)] // documentation missing in model
|
3530 - | ///
|
4376 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
3531 4377 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3532 4378 | /// [constraint traits]. Use [`MaxRangeInteger::try_from`] to construct values of this type.
|
3533 4379 | ///
|
3534 4380 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3535 4381 | ///
|
4382 + | /* RustType.kt:516 */
|
3536 4383 | #[derive(
|
3537 4384 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3538 4385 | )]
|
3539 - | pub(crate) struct MaxRangeInteger(pub(crate) i32);
|
4386 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct MaxRangeInteger(pub(crate) i32);
|
4387 + | /* RustType.kt:516 */
|
3540 4388 | #[allow(dead_code)]
|
4389 + | /* ConstrainedNumberGenerator.kt:91 */
|
3541 4390 | impl MaxRangeInteger {
|
3542 4391 | /// Returns an immutable reference to the underlying [`i32`].
|
3543 4392 | pub fn inner(&self) -> &i32 {
|
3544 4393 | &self.0
|
3545 4394 | }
|
3546 4395 |
|
3547 4396 | /// Consumes the value, returning the underlying [`i32`].
|
3548 4397 | pub fn into_inner(self) -> i32 {
|
3549 4398 | self.0
|
3550 4399 | }
|
3551 4400 | }
|
3552 4401 |
|
3553 4402 | impl crate::constrained::Constrained for MaxRangeInteger {
|
3554 4403 | type Unconstrained = i32;
|
3555 4404 | }
|
3556 4405 |
|
3557 4406 | impl ::std::convert::From<i32>
|
3558 4407 | for crate::constrained::MaybeConstrained<crate::model::MaxRangeInteger>
|
3559 4408 | {
|
3560 4409 | fn from(value: i32) -> Self {
|
3561 4410 | Self::Unconstrained(value)
|
3562 4411 | }
|
3563 4412 | }
|
3564 4413 |
|
3565 4414 | impl ::std::fmt::Display for MaxRangeInteger {
|
3566 4415 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3567 4416 | self.0.fmt(f)
|
3568 4417 | }
|
3569 4418 | }
|
3570 4419 |
|
3571 4420 | impl ::std::convert::From<MaxRangeInteger> for i32 {
|
3572 4421 | fn from(value: MaxRangeInteger) -> Self {
|
3573 4422 | value.into_inner()
|
3574 4423 | }
|
3575 4424 | }
|
4425 + | /* TraitInfo.kt:41 */
|
3576 4426 | impl MaxRangeInteger {
|
3577 4427 | fn check_range(
|
3578 4428 | value: i32,
|
3579 4429 | ) -> ::std::result::Result<(), crate::model::max_range_integer_internal::ConstraintViolation>
|
3580 4430 | {
|
3581 4431 | if value <= 69 {
|
3582 4432 | Ok(())
|
3583 4433 | } else {
|
3584 4434 | Err(crate::model::max_range_integer_internal::ConstraintViolation::Range(value))
|
3585 4435 | }
|
3586 4436 | }
|
3587 4437 | }
|
4438 + | /* TraitInfo.kt:57 */
|
3588 4439 | impl ::std::convert::TryFrom<i32> for MaxRangeInteger {
|
3589 4440 | type Error = crate::model::max_range_integer_internal::ConstraintViolation;
|
3590 4441 |
|
3591 4442 | /// Constructs a `MaxRangeInteger` from an [`i32`], failing when the provided value does not satisfy the modeled constraints.
|
3592 4443 | fn try_from(value: i32) -> ::std::result::Result<Self, Self::Error> {
|
3593 4444 | Self::check_range(value)?;
|
3594 4445 |
|
3595 4446 | Ok(Self(value))
|
3596 4447 | }
|
3597 4448 | }
|
3598 4449 |
|
4450 + | /* ConstrainedNumberGenerator.kt:82 */
|
3599 4451 | #[allow(missing_docs)] // documentation missing in model
|
3600 - | ///
|
4452 + | /// /* ConstrainedNumberGenerator.kt:83 */
|
3601 4453 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3602 4454 | /// [constraint traits]. Use [`MinRangeInteger::try_from`] to construct values of this type.
|
3603 4455 | ///
|
3604 4456 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3605 4457 | ///
|
4458 + | /* RustType.kt:516 */
|
3606 4459 | #[derive(
|
3607 4460 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3608 4461 | )]
|
3609 - | pub(crate) struct MinRangeInteger(pub(crate) i32);
|
4462 + | pub(crate) /* ConstrainedNumberGenerator.kt:86 */ struct MinRangeInteger(pub(crate) i32);
|
4463 + | /* RustType.kt:516 */
|
3610 4464 | #[allow(dead_code)]
|
4465 + | /* ConstrainedNumberGenerator.kt:91 */
|
3611 4466 | impl MinRangeInteger {
|
3612 4467 | /// Returns an immutable reference to the underlying [`i32`].
|
3613 4468 | pub fn inner(&self) -> &i32 {
|
3614 4469 | &self.0
|
3615 4470 | }
|
3616 4471 |
|
3617 4472 | /// Consumes the value, returning the underlying [`i32`].
|
3618 4473 | pub fn into_inner(self) -> i32 {
|
3619 4474 | self.0
|
3620 4475 | }
|
3621 4476 | }
|
3622 4477 |
|
3623 4478 | impl crate::constrained::Constrained for MinRangeInteger {
|
3624 4479 | type Unconstrained = i32;
|
3625 4480 | }
|
3626 4481 |
|
3627 4482 | impl ::std::convert::From<i32>
|
3628 4483 | for crate::constrained::MaybeConstrained<crate::model::MinRangeInteger>
|
3629 4484 | {
|
3630 4485 | fn from(value: i32) -> Self {
|
3631 4486 | Self::Unconstrained(value)
|
3632 4487 | }
|
3633 4488 | }
|
3634 4489 |
|
3635 4490 | impl ::std::fmt::Display for MinRangeInteger {
|
3636 4491 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3637 4492 | self.0.fmt(f)
|
3638 4493 | }
|
3639 4494 | }
|
3640 4495 |
|
3641 4496 | impl ::std::convert::From<MinRangeInteger> for i32 {
|
3642 4497 | fn from(value: MinRangeInteger) -> Self {
|
3643 4498 | value.into_inner()
|
3644 4499 | }
|
3645 4500 | }
|
4501 + | /* TraitInfo.kt:41 */
|
3646 4502 | impl MinRangeInteger {
|
3647 4503 | fn check_range(
|
3648 4504 | value: i32,
|
3649 4505 | ) -> ::std::result::Result<(), crate::model::min_range_integer_internal::ConstraintViolation>
|
3650 4506 | {
|
3651 4507 | if -10 <= value {
|
3652 4508 | Ok(())
|
3653 4509 | } else {
|
3654 4510 | Err(crate::model::min_range_integer_internal::ConstraintViolation::Range(value))
|
3655 4511 | }
|
3656 4512 | }
|
3657 4513 | }
|
4514 + | /* TraitInfo.kt:57 */
|
3658 4515 | impl ::std::convert::TryFrom<i32> for MinRangeInteger {
|
3659 4516 | type Error = crate::model::min_range_integer_internal::ConstraintViolation;
|
3660 4517 |
|
3661 4518 | /// Constructs a `MinRangeInteger` from an [`i32`], failing when the provided value does not satisfy the modeled constraints.
|
3662 4519 | fn try_from(value: i32) -> ::std::result::Result<Self, Self::Error> {
|
3663 4520 | Self::check_range(value)?;
|
3664 4521 |
|
3665 4522 | Ok(Self(value))
|
3666 4523 | }
|
3667 4524 | }
|
3668 4525 |
|
4526 + | /* ConstrainedBlobGenerator.kt:66 */
|
3669 4527 | #[allow(missing_docs)] // documentation missing in model
|
3670 - | ///
|
4528 + | /// /* ConstrainedBlobGenerator.kt:67 */
|
3671 4529 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3672 4530 | /// [constraint traits]. Use [`FixedLengthBlob::try_from`] to construct values of this type.
|
3673 4531 | ///
|
3674 4532 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3675 4533 | ///
|
4534 + | /* RustType.kt:516 */
|
3676 4535 | #[derive(
|
3677 4536 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3678 4537 | )]
|
3679 - | pub(crate) struct FixedLengthBlob(pub(crate) ::aws_smithy_types::Blob);
|
4538 + | pub(crate) /* ConstrainedBlobGenerator.kt:70 */ struct FixedLengthBlob(
|
4539 + | pub(crate) ::aws_smithy_types::Blob,
|
4540 + | );
|
4541 + | /* ConstrainedBlobGenerator.kt:71 */
|
3680 4542 | impl FixedLengthBlob {
|
4543 + | /* ConstrainedBlobGenerator.kt:82 */
|
3681 4544 | /// Consumes the value, returning the underlying [`::aws_smithy_types::Blob`].
|
3682 4545 | pub fn into_inner(self) -> ::aws_smithy_types::Blob {
|
3683 4546 | self.0
|
3684 4547 | }
|
4548 + | /* ConstrainedBlobGenerator.kt:71 */
|
3685 4549 | }
|
4550 + | /* TraitInfo.kt:41 */
|
3686 4551 | impl FixedLengthBlob {
|
3687 4552 | fn check_length(
|
3688 4553 | blob: &::aws_smithy_types::Blob,
|
3689 4554 | ) -> ::std::result::Result<(), crate::model::fixed_length_blob_internal::ConstraintViolation>
|
3690 4555 | {
|
3691 4556 | let length = blob.as_ref().len();
|
3692 4557 |
|
3693 4558 | if (70..=70).contains(&length) {
|
3694 4559 | Ok(())
|
3695 4560 | } else {
|
3696 4561 | Err(crate::model::fixed_length_blob_internal::ConstraintViolation::Length(length))
|
3697 4562 | }
|
3698 4563 | }
|
3699 4564 | }
|
4565 + | /* TraitInfo.kt:57 */
|
3700 4566 | impl ::std::convert::TryFrom<::aws_smithy_types::Blob> for FixedLengthBlob {
|
3701 4567 | type Error = crate::model::fixed_length_blob_internal::ConstraintViolation;
|
3702 4568 |
|
3703 4569 | /// Constructs a `FixedLengthBlob` from an [`::aws_smithy_types::Blob`], failing when the provided value does not satisfy the modeled constraints.
|
3704 4570 | fn try_from(value: ::aws_smithy_types::Blob) -> ::std::result::Result<Self, Self::Error> {
|
3705 4571 | Self::check_length(&value)?;
|
3706 4572 |
|
3707 4573 | Ok(Self(value))
|
3708 4574 | }
|
3709 4575 | }
|
4576 + | /* ConstrainedBlobGenerator.kt:94 */
|
3710 4577 | impl crate::constrained::Constrained for FixedLengthBlob {
|
3711 4578 | type Unconstrained = ::aws_smithy_types::Blob;
|
3712 4579 | }
|
3713 4580 |
|
3714 4581 | impl ::std::convert::From<::aws_smithy_types::Blob>
|
3715 4582 | for crate::constrained::MaybeConstrained<crate::model::FixedLengthBlob>
|
3716 4583 | {
|
3717 4584 | fn from(value: ::aws_smithy_types::Blob) -> Self {
|
3718 4585 | Self::Unconstrained(value)
|
3719 4586 | }
|
3720 4587 | }
|
3721 4588 |
|
3722 4589 | impl ::std::convert::From<FixedLengthBlob> for ::aws_smithy_types::Blob {
|
3723 4590 | fn from(value: FixedLengthBlob) -> Self {
|
3724 4591 | value.into_inner()
|
3725 4592 | }
|
3726 4593 | }
|
3727 4594 |
|
4595 + | /* ConstrainedBlobGenerator.kt:66 */
|
3728 4596 | #[allow(missing_docs)] // documentation missing in model
|
3729 - | ///
|
4597 + | /// /* ConstrainedBlobGenerator.kt:67 */
|
3730 4598 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3731 4599 | /// [constraint traits]. Use [`MaxLengthBlob::try_from`] to construct values of this type.
|
3732 4600 | ///
|
3733 4601 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3734 4602 | ///
|
4603 + | /* RustType.kt:516 */
|
3735 4604 | #[derive(
|
3736 4605 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3737 4606 | )]
|
3738 - | pub(crate) struct MaxLengthBlob(pub(crate) ::aws_smithy_types::Blob);
|
4607 + | pub(crate) /* ConstrainedBlobGenerator.kt:70 */ struct MaxLengthBlob(
|
4608 + | pub(crate) ::aws_smithy_types::Blob,
|
4609 + | );
|
4610 + | /* ConstrainedBlobGenerator.kt:71 */
|
3739 4611 | impl MaxLengthBlob {
|
4612 + | /* ConstrainedBlobGenerator.kt:82 */
|
3740 4613 | /// Consumes the value, returning the underlying [`::aws_smithy_types::Blob`].
|
3741 4614 | pub fn into_inner(self) -> ::aws_smithy_types::Blob {
|
3742 4615 | self.0
|
3743 4616 | }
|
4617 + | /* ConstrainedBlobGenerator.kt:71 */
|
3744 4618 | }
|
4619 + | /* TraitInfo.kt:41 */
|
3745 4620 | impl MaxLengthBlob {
|
3746 4621 | fn check_length(
|
3747 4622 | blob: &::aws_smithy_types::Blob,
|
3748 4623 | ) -> ::std::result::Result<(), crate::model::max_length_blob_internal::ConstraintViolation>
|
3749 4624 | {
|
3750 4625 | let length = blob.as_ref().len();
|
3751 4626 |
|
3752 4627 | if length <= 70 {
|
3753 4628 | Ok(())
|
3754 4629 | } else {
|
3755 4630 | Err(crate::model::max_length_blob_internal::ConstraintViolation::Length(length))
|
3756 4631 | }
|
3757 4632 | }
|
3758 4633 | }
|
4634 + | /* TraitInfo.kt:57 */
|
3759 4635 | impl ::std::convert::TryFrom<::aws_smithy_types::Blob> for MaxLengthBlob {
|
3760 4636 | type Error = crate::model::max_length_blob_internal::ConstraintViolation;
|
3761 4637 |
|
3762 4638 | /// Constructs a `MaxLengthBlob` from an [`::aws_smithy_types::Blob`], failing when the provided value does not satisfy the modeled constraints.
|
3763 4639 | fn try_from(value: ::aws_smithy_types::Blob) -> ::std::result::Result<Self, Self::Error> {
|
3764 4640 | Self::check_length(&value)?;
|
3765 4641 |
|
3766 4642 | Ok(Self(value))
|
3767 4643 | }
|
3768 4644 | }
|
4645 + | /* ConstrainedBlobGenerator.kt:94 */
|
3769 4646 | impl crate::constrained::Constrained for MaxLengthBlob {
|
3770 4647 | type Unconstrained = ::aws_smithy_types::Blob;
|
3771 4648 | }
|
3772 4649 |
|
3773 4650 | impl ::std::convert::From<::aws_smithy_types::Blob>
|
3774 4651 | for crate::constrained::MaybeConstrained<crate::model::MaxLengthBlob>
|
3775 4652 | {
|
3776 4653 | fn from(value: ::aws_smithy_types::Blob) -> Self {
|
3777 4654 | Self::Unconstrained(value)
|
3778 4655 | }
|
3779 4656 | }
|
3780 4657 |
|
3781 4658 | impl ::std::convert::From<MaxLengthBlob> for ::aws_smithy_types::Blob {
|
3782 4659 | fn from(value: MaxLengthBlob) -> Self {
|
3783 4660 | value.into_inner()
|
3784 4661 | }
|
3785 4662 | }
|
3786 4663 |
|
4664 + | /* ConstrainedBlobGenerator.kt:66 */
|
3787 4665 | #[allow(missing_docs)] // documentation missing in model
|
3788 - | ///
|
4666 + | /// /* ConstrainedBlobGenerator.kt:67 */
|
3789 4667 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3790 4668 | /// [constraint traits]. Use [`MinLengthBlob::try_from`] to construct values of this type.
|
3791 4669 | ///
|
3792 4670 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3793 4671 | ///
|
4672 + | /* RustType.kt:516 */
|
3794 4673 | #[derive(
|
3795 4674 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3796 4675 | )]
|
3797 - | pub(crate) struct MinLengthBlob(pub(crate) ::aws_smithy_types::Blob);
|
4676 + | pub(crate) /* ConstrainedBlobGenerator.kt:70 */ struct MinLengthBlob(
|
4677 + | pub(crate) ::aws_smithy_types::Blob,
|
4678 + | );
|
4679 + | /* ConstrainedBlobGenerator.kt:71 */
|
3798 4680 | impl MinLengthBlob {
|
4681 + | /* ConstrainedBlobGenerator.kt:82 */
|
3799 4682 | /// Consumes the value, returning the underlying [`::aws_smithy_types::Blob`].
|
3800 4683 | pub fn into_inner(self) -> ::aws_smithy_types::Blob {
|
3801 4684 | self.0
|
3802 4685 | }
|
4686 + | /* ConstrainedBlobGenerator.kt:71 */
|
3803 4687 | }
|
4688 + | /* TraitInfo.kt:41 */
|
3804 4689 | impl MinLengthBlob {
|
3805 4690 | fn check_length(
|
3806 4691 | blob: &::aws_smithy_types::Blob,
|
3807 4692 | ) -> ::std::result::Result<(), crate::model::min_length_blob_internal::ConstraintViolation>
|
3808 4693 | {
|
3809 4694 | let length = blob.as_ref().len();
|
3810 4695 |
|
3811 4696 | if 2 <= length {
|
3812 4697 | Ok(())
|
3813 4698 | } else {
|
3814 4699 | Err(crate::model::min_length_blob_internal::ConstraintViolation::Length(length))
|
3815 4700 | }
|
3816 4701 | }
|
3817 4702 | }
|
4703 + | /* TraitInfo.kt:57 */
|
3818 4704 | impl ::std::convert::TryFrom<::aws_smithy_types::Blob> for MinLengthBlob {
|
3819 4705 | type Error = crate::model::min_length_blob_internal::ConstraintViolation;
|
3820 4706 |
|
3821 4707 | /// Constructs a `MinLengthBlob` from an [`::aws_smithy_types::Blob`], failing when the provided value does not satisfy the modeled constraints.
|
3822 4708 | fn try_from(value: ::aws_smithy_types::Blob) -> ::std::result::Result<Self, Self::Error> {
|
3823 4709 | Self::check_length(&value)?;
|
3824 4710 |
|
3825 4711 | Ok(Self(value))
|
3826 4712 | }
|
3827 4713 | }
|
4714 + | /* ConstrainedBlobGenerator.kt:94 */
|
3828 4715 | impl crate::constrained::Constrained for MinLengthBlob {
|
3829 4716 | type Unconstrained = ::aws_smithy_types::Blob;
|
3830 4717 | }
|
3831 4718 |
|
3832 4719 | impl ::std::convert::From<::aws_smithy_types::Blob>
|
3833 4720 | for crate::constrained::MaybeConstrained<crate::model::MinLengthBlob>
|
3834 4721 | {
|
3835 4722 | fn from(value: ::aws_smithy_types::Blob) -> Self {
|
3836 4723 | Self::Unconstrained(value)
|
3837 4724 | }
|
3838 4725 | }
|
3839 4726 |
|
3840 4727 | impl ::std::convert::From<MinLengthBlob> for ::aws_smithy_types::Blob {
|
3841 4728 | fn from(value: MinLengthBlob) -> Self {
|
3842 4729 | value.into_inner()
|
3843 4730 | }
|
3844 4731 | }
|
3845 4732 |
|
4733 + | /* ConstrainedStringGenerator.kt:82 */
|
3846 4734 | #[allow(missing_docs)] // documentation missing in model
|
3847 - | ///
|
4735 + | /// /* ConstrainedStringGenerator.kt:83 */
|
3848 4736 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3849 4737 | /// [constraint traits]. Use [`FixedLengthString::try_from`] to construct values of this type.
|
3850 4738 | ///
|
3851 4739 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3852 4740 | ///
|
4741 + | /* RustType.kt:516 */
|
3853 4742 | #[derive(
|
3854 4743 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3855 4744 | )]
|
3856 - | pub(crate) struct FixedLengthString(pub(crate) ::std::string::String);
|
4745 + | pub(crate) /* ConstrainedStringGenerator.kt:86 */ struct FixedLengthString(
|
4746 + | pub(crate) ::std::string::String,
|
4747 + | );
|
4748 + | /* RustType.kt:516 */
|
3857 4749 | #[allow(dead_code)]
|
4750 + | /* ConstrainedStringGenerator.kt:90 */
|
3858 4751 | impl FixedLengthString {
|
3859 4752 | /// Extracts a string slice containing the entire underlying `String`.
|
3860 4753 | pub fn as_str(&self) -> &str {
|
3861 4754 | &self.0
|
3862 4755 | }
|
3863 4756 |
|
3864 4757 | /// Returns an immutable reference to the underlying [`::std::string::String`].
|
3865 4758 | pub fn inner(&self) -> &::std::string::String {
|
3866 4759 | &self.0
|
3867 4760 | }
|
3868 4761 |
|
3869 4762 | /// Consumes the value, returning the underlying [`::std::string::String`].
|
3870 4763 | pub fn into_inner(self) -> ::std::string::String {
|
3871 4764 | self.0
|
3872 4765 | }
|
3873 4766 | }
|
4767 + | /* TraitInfo.kt:41 */
|
3874 4768 | impl FixedLengthString {
|
3875 4769 | fn check_length(
|
3876 4770 | string: &str,
|
3877 4771 | ) -> ::std::result::Result<(), crate::model::fixed_length_string_internal::ConstraintViolation>
|
3878 4772 | {
|
3879 4773 | let length = string.chars().count();
|
3880 4774 |
|
3881 4775 | if (69..=69).contains(&length) {
|
3882 4776 | Ok(())
|
3883 4777 | } else {
|
3884 4778 | Err(crate::model::fixed_length_string_internal::ConstraintViolation::Length(length))
|
3885 4779 | }
|
3886 4780 | }
|
3887 4781 | }
|
4782 + | /* TraitInfo.kt:57 */
|
3888 4783 | impl ::std::convert::TryFrom<::std::string::String> for FixedLengthString {
|
3889 4784 | type Error = crate::model::fixed_length_string_internal::ConstraintViolation;
|
3890 4785 |
|
3891 4786 | /// Constructs a `FixedLengthString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
|
3892 4787 | fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
|
3893 4788 | Self::check_length(&value)?;
|
3894 4789 |
|
3895 4790 | Ok(Self(value))
|
3896 4791 | }
|
3897 4792 | }
|
4793 + | /* ConstrainedStringGenerator.kt:112 */
|
3898 4794 | impl crate::constrained::Constrained for FixedLengthString {
|
3899 4795 | type Unconstrained = ::std::string::String;
|
3900 4796 | }
|
3901 4797 |
|
3902 4798 | impl ::std::convert::From<::std::string::String>
|
3903 4799 | for crate::constrained::MaybeConstrained<crate::model::FixedLengthString>
|
3904 4800 | {
|
3905 4801 | fn from(value: ::std::string::String) -> Self {
|
3906 4802 | Self::Unconstrained(value)
|
3907 4803 | }
|
3908 4804 | }
|
3909 4805 |
|
3910 4806 | impl ::std::fmt::Display for FixedLengthString {
|
3911 4807 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3912 4808 | self.0.fmt(f)
|
3913 4809 | }
|
3914 4810 | }
|
3915 4811 |
|
3916 4812 | impl ::std::convert::From<FixedLengthString> for ::std::string::String {
|
3917 4813 | fn from(value: FixedLengthString) -> Self {
|
3918 4814 | value.into_inner()
|
3919 4815 | }
|
3920 4816 | }
|
3921 4817 |
|
4818 + | /* ConstrainedStringGenerator.kt:82 */
|
3922 4819 | #[allow(missing_docs)] // documentation missing in model
|
3923 - | ///
|
4820 + | /// /* ConstrainedStringGenerator.kt:83 */
|
3924 4821 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
3925 4822 | /// [constraint traits]. Use [`MaxLengthString::try_from`] to construct values of this type.
|
3926 4823 | ///
|
3927 4824 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
3928 4825 | ///
|
4826 + | /* RustType.kt:516 */
|
3929 4827 | #[derive(
|
3930 4828 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3931 4829 | )]
|
3932 - | pub(crate) struct MaxLengthString(pub(crate) ::std::string::String);
|
4830 + | pub(crate) /* ConstrainedStringGenerator.kt:86 */ struct MaxLengthString(
|
4831 + | pub(crate) ::std::string::String,
|
4832 + | );
|
4833 + | /* RustType.kt:516 */
|
3933 4834 | #[allow(dead_code)]
|
4835 + | /* ConstrainedStringGenerator.kt:90 */
|
3934 4836 | impl MaxLengthString {
|
3935 4837 | /// Extracts a string slice containing the entire underlying `String`.
|
3936 4838 | pub fn as_str(&self) -> &str {
|
3937 4839 | &self.0
|
3938 4840 | }
|
3939 4841 |
|
3940 4842 | /// Returns an immutable reference to the underlying [`::std::string::String`].
|
3941 4843 | pub fn inner(&self) -> &::std::string::String {
|
3942 4844 | &self.0
|
3943 4845 | }
|
3944 4846 |
|
3945 4847 | /// Consumes the value, returning the underlying [`::std::string::String`].
|
3946 4848 | pub fn into_inner(self) -> ::std::string::String {
|
3947 4849 | self.0
|
3948 4850 | }
|
3949 4851 | }
|
4852 + | /* TraitInfo.kt:41 */
|
3950 4853 | impl MaxLengthString {
|
3951 4854 | fn check_length(
|
3952 4855 | string: &str,
|
3953 4856 | ) -> ::std::result::Result<(), crate::model::max_length_string_internal::ConstraintViolation>
|
3954 4857 | {
|
3955 4858 | let length = string.chars().count();
|
3956 4859 |
|
3957 4860 | if length <= 69 {
|
3958 4861 | Ok(())
|
3959 4862 | } else {
|
3960 4863 | Err(crate::model::max_length_string_internal::ConstraintViolation::Length(length))
|
3961 4864 | }
|
3962 4865 | }
|
3963 4866 | }
|
4867 + | /* TraitInfo.kt:57 */
|
3964 4868 | impl ::std::convert::TryFrom<::std::string::String> for MaxLengthString {
|
3965 4869 | type Error = crate::model::max_length_string_internal::ConstraintViolation;
|
3966 4870 |
|
3967 4871 | /// Constructs a `MaxLengthString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
|
3968 4872 | fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
|
3969 4873 | Self::check_length(&value)?;
|
3970 4874 |
|
3971 4875 | Ok(Self(value))
|
3972 4876 | }
|
3973 4877 | }
|
4878 + | /* ConstrainedStringGenerator.kt:112 */
|
3974 4879 | impl crate::constrained::Constrained for MaxLengthString {
|
3975 4880 | type Unconstrained = ::std::string::String;
|
3976 4881 | }
|
3977 4882 |
|
3978 4883 | impl ::std::convert::From<::std::string::String>
|
3979 4884 | for crate::constrained::MaybeConstrained<crate::model::MaxLengthString>
|
3980 4885 | {
|
3981 4886 | fn from(value: ::std::string::String) -> Self {
|
3982 4887 | Self::Unconstrained(value)
|
3983 4888 | }
|
3984 4889 | }
|
3985 4890 |
|
3986 4891 | impl ::std::fmt::Display for MaxLengthString {
|
3987 4892 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3988 4893 | self.0.fmt(f)
|
3989 4894 | }
|
3990 4895 | }
|
3991 4896 |
|
3992 4897 | impl ::std::convert::From<MaxLengthString> for ::std::string::String {
|
3993 4898 | fn from(value: MaxLengthString) -> Self {
|
3994 4899 | value.into_inner()
|
3995 4900 | }
|
3996 4901 | }
|
3997 4902 |
|
4903 + | /* ConstrainedStringGenerator.kt:82 */
|
3998 4904 | #[allow(missing_docs)] // documentation missing in model
|
3999 - | ///
|
4905 + | /// /* ConstrainedStringGenerator.kt:83 */
|
4000 4906 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
4001 4907 | /// [constraint traits]. Use [`MinLengthString::try_from`] to construct values of this type.
|
4002 4908 | ///
|
4003 4909 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
4004 4910 | ///
|
4911 + | /* RustType.kt:516 */
|
4005 4912 | #[derive(
|
4006 4913 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4007 4914 | )]
|
4008 - | pub(crate) struct MinLengthString(pub(crate) ::std::string::String);
|
4915 + | pub(crate) /* ConstrainedStringGenerator.kt:86 */ struct MinLengthString(
|
4916 + | pub(crate) ::std::string::String,
|
4917 + | );
|
4918 + | /* RustType.kt:516 */
|
4009 4919 | #[allow(dead_code)]
|
4920 + | /* ConstrainedStringGenerator.kt:90 */
|
4010 4921 | impl MinLengthString {
|
4011 4922 | /// Extracts a string slice containing the entire underlying `String`.
|
4012 4923 | pub fn as_str(&self) -> &str {
|
4013 4924 | &self.0
|
4014 4925 | }
|
4015 4926 |
|
4016 4927 | /// Returns an immutable reference to the underlying [`::std::string::String`].
|
4017 4928 | pub fn inner(&self) -> &::std::string::String {
|
4018 4929 | &self.0
|
4019 4930 | }
|
4020 4931 |
|
4021 4932 | /// Consumes the value, returning the underlying [`::std::string::String`].
|
4022 4933 | pub fn into_inner(self) -> ::std::string::String {
|
4023 4934 | self.0
|
4024 4935 | }
|
4025 4936 | }
|
4937 + | /* TraitInfo.kt:41 */
|
4026 4938 | impl MinLengthString {
|
4027 4939 | fn check_length(
|
4028 4940 | string: &str,
|
4029 4941 | ) -> ::std::result::Result<(), crate::model::min_length_string_internal::ConstraintViolation>
|
4030 4942 | {
|
4031 4943 | let length = string.chars().count();
|
4032 4944 |
|
4033 4945 | if 2 <= length {
|
4034 4946 | Ok(())
|
4035 4947 | } else {
|
4036 4948 | Err(crate::model::min_length_string_internal::ConstraintViolation::Length(length))
|
4037 4949 | }
|
4038 4950 | }
|
4039 4951 | }
|
4952 + | /* TraitInfo.kt:57 */
|
4040 4953 | impl ::std::convert::TryFrom<::std::string::String> for MinLengthString {
|
4041 4954 | type Error = crate::model::min_length_string_internal::ConstraintViolation;
|
4042 4955 |
|
4043 4956 | /// Constructs a `MinLengthString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
|
4044 4957 | fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
|
4045 4958 | Self::check_length(&value)?;
|
4046 4959 |
|
4047 4960 | Ok(Self(value))
|
4048 4961 | }
|
4049 4962 | }
|
4963 + | /* ConstrainedStringGenerator.kt:112 */
|
4050 4964 | impl crate::constrained::Constrained for MinLengthString {
|
4051 4965 | type Unconstrained = ::std::string::String;
|
4052 4966 | }
|
4053 4967 |
|
4054 4968 | impl ::std::convert::From<::std::string::String>
|
4055 4969 | for crate::constrained::MaybeConstrained<crate::model::MinLengthString>
|
4056 4970 | {
|
4057 4971 | fn from(value: ::std::string::String) -> Self {
|
4058 4972 | Self::Unconstrained(value)
|
4059 4973 | }
|
4060 4974 | }
|
4061 4975 |
|
4062 4976 | impl ::std::fmt::Display for MinLengthString {
|
4063 4977 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4064 4978 | self.0.fmt(f)
|
4065 4979 | }
|
4066 4980 | }
|
4067 4981 |
|
4068 4982 | impl ::std::convert::From<MinLengthString> for ::std::string::String {
|
4069 4983 | fn from(value: MinLengthString) -> Self {
|
4070 4984 | value.into_inner()
|
4071 4985 | }
|
4072 4986 | }
|
4073 4987 |
|
4988 + | /* UnionGenerator.kt:67 */
|
4074 4989 | #[allow(missing_docs)] // documentation missing in model
|
4990 + | /* RustType.kt:516 */
|
4075 4991 | #[derive(
|
4076 4992 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4077 4993 | )]
|
4078 - | pub enum ConstrainedUnionInOutput {
|
4994 + | pub /* UnionGenerator.kt:85 */ enum ConstrainedUnionInOutput {
|
4995 + | /* UnionGenerator.kt:90 */
|
4079 4996 | #[allow(missing_docs)] // documentation missing in model
|
4997 + | /* UnionGenerator.kt:190 */
|
4080 4998 | Structure(crate::model::TransitivelyConstrainedStructureInOutput),
|
4999 + | /* UnionGenerator.kt:85 */
|
4081 5000 | }
|
5001 + | /* UnionGenerator.kt:111 */
|
4082 5002 | impl ConstrainedUnionInOutput {
|
5003 + | /* RustType.kt:516 */
|
4083 5004 | #[allow(irrefutable_let_patterns)]
|
5005 + | /* UnionGenerator.kt:217 */
|
4084 5006 | /// Tries to convert the enum instance into [`Structure`](crate::model::ConstrainedUnionInOutput::Structure), extracting the inner [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
|
5007 + | /* UnionGenerator.kt:222 */
|
4085 5008 | /// Returns `Err(&Self)` if it can't be converted.
|
5009 + | /* UnionGenerator.kt:223 */
|
4086 5010 | pub fn as_structure(
|
4087 5011 | &self,
|
4088 5012 | ) -> ::std::result::Result<&crate::model::TransitivelyConstrainedStructureInOutput, &Self> {
|
5013 + | /* UnionGenerator.kt:227 */
|
4089 5014 | if let ConstrainedUnionInOutput::Structure(val) = &self {
|
4090 5015 | ::std::result::Result::Ok(val)
|
4091 5016 | } else {
|
4092 5017 | ::std::result::Result::Err(self)
|
4093 5018 | }
|
5019 + | /* UnionGenerator.kt:223 */
|
4094 5020 | }
|
5021 + | /* UnionGenerator.kt:121 */
|
4095 5022 | /// Returns true if this is a [`Structure`](crate::model::ConstrainedUnionInOutput::Structure).
|
5023 + | /* UnionGenerator.kt:122 */
|
4096 5024 | pub fn is_structure(&self) -> bool {
|
5025 + | /* UnionGenerator.kt:123 */
|
4097 5026 | self.as_structure().is_ok()
|
5027 + | /* UnionGenerator.kt:122 */
|
4098 5028 | }
|
5029 + | /* UnionGenerator.kt:111 */
|
4099 5030 | }
|
4100 5031 |
|
5032 + | /* StructureGenerator.kt:197 */
|
4101 5033 | #[allow(missing_docs)] // documentation missing in model
|
5034 + | /* RustType.kt:516 */
|
4102 5035 | #[derive(
|
4103 5036 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4104 5037 | )]
|
4105 - | pub struct TransitivelyConstrainedStructureInOutput {
|
5038 + | pub /* StructureGenerator.kt:201 */ struct TransitivelyConstrainedStructureInOutput {
|
5039 + | /* StructureGenerator.kt:231 */
|
4106 5040 | #[allow(missing_docs)] // documentation missing in model
|
4107 5041 | pub length_string: ::std::option::Option<::std::string::String>,
|
5042 + | /* StructureGenerator.kt:201 */
|
4108 5043 | }
|
5044 + | /* StructureGenerator.kt:135 */
|
4109 5045 | impl TransitivelyConstrainedStructureInOutput {
|
5046 + | /* StructureGenerator.kt:231 */
|
4110 5047 | #[allow(missing_docs)] // documentation missing in model
|
5048 + | /* StructureGenerator.kt:166 */
|
4111 5049 | pub fn length_string(&self) -> ::std::option::Option<&str> {
|
5050 + | /* StructureGenerator.kt:169 */
|
4112 5051 | self.length_string.as_deref()
|
5052 + | /* StructureGenerator.kt:166 */
|
4113 5053 | }
|
5054 + | /* StructureGenerator.kt:135 */
|
4114 5055 | }
|
5056 + | /* ServerCodegenVisitor.kt:370 */
|
4115 5057 | impl TransitivelyConstrainedStructureInOutput {
|
4116 - | /// Creates a new builder-style object to manufacture [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
|
5058 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
|
5059 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4117 5060 | pub fn builder() -> crate::model::transitively_constrained_structure_in_output::Builder {
|
5061 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4118 5062 | crate::model::transitively_constrained_structure_in_output::Builder::default()
|
5063 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4119 5064 | }
|
5065 + | /* ServerCodegenVisitor.kt:370 */
|
4120 5066 | }
|
4121 5067 |
|
5068 + | /* ConstrainedMapGenerator.kt:78 */
|
4122 5069 | #[allow(missing_docs)] // documentation missing in model
|
4123 - | ///
|
5070 + | /// /* ConstrainedMapGenerator.kt:79 */
|
4124 5071 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
4125 5072 | /// [constraint traits]. Use [`ConstrainedMapInOutput::try_from`] to construct values of this type.
|
4126 5073 | ///
|
4127 5074 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
4128 5075 | ///
|
5076 + | /* RustType.kt:516 */
|
4129 5077 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4130 - | pub(crate) struct ConstrainedMapInOutput(
|
5078 + | pub(crate) /* ConstrainedMapGenerator.kt:82 */ struct ConstrainedMapInOutput(
|
4131 5079 | pub(crate) ::std::collections::HashMap<
|
4132 5080 | ::std::string::String,
|
4133 5081 | crate::model::TransitivelyConstrainedStructureInOutput,
|
4134 5082 | >,
|
4135 5083 | );
|
5084 + | /* ConstrainedMapGenerator.kt:83 */
|
4136 5085 | impl ConstrainedMapInOutput {
|
5086 + | /* ConstrainedMapGenerator.kt:95 */
|
4137 5087 | /// Consumes the value, returning the underlying [`::std::collections::HashMap<::std::string::String, crate::model::TransitivelyConstrainedStructureInOutput>`].
|
4138 5088 | pub fn into_inner(
|
4139 5089 | self,
|
4140 5090 | ) -> ::std::collections::HashMap<
|
4141 5091 | ::std::string::String,
|
4142 5092 | crate::model::TransitivelyConstrainedStructureInOutput,
|
4143 5093 | > {
|
4144 5094 | self.0
|
4145 5095 | }
|
5096 + | /* ConstrainedMapGenerator.kt:83 */
|
4146 5097 | }
|
5098 + | /* ConstrainedMapGenerator.kt:106 */
|
4147 5099 | impl
|
4148 5100 | ::std::convert::TryFrom<
|
4149 5101 | ::std::collections::HashMap<
|
4150 5102 | ::std::string::String,
|
4151 5103 | crate::model::TransitivelyConstrainedStructureInOutput,
|
4152 5104 | >,
|
4153 5105 | > for ConstrainedMapInOutput
|
4154 5106 | {
|
4155 5107 | type Error = crate::model::constrained_map_in_output_internal::ConstraintViolation;
|
4156 5108 |
|
4157 5109 | /// Constructs a `ConstrainedMapInOutput` from an [`::std::collections::HashMap<::std::string::String, crate::model::TransitivelyConstrainedStructureInOutput>`], failing when the provided value does not satisfy the modeled constraints.
|
4158 5110 | fn try_from(
|
4159 5111 | value: ::std::collections::HashMap<
|
4160 5112 | ::std::string::String,
|
4161 5113 | crate::model::TransitivelyConstrainedStructureInOutput,
|
4162 5114 | >,
|
4163 5115 | ) -> ::std::result::Result<Self, Self::Error> {
|
4164 5116 | let length = value.len();
|
4165 5117 | if 69 <= length {
|
4166 5118 | Ok(Self(value))
|
4167 5119 | } else {
|
4168 5120 | Err(
|
4169 5121 | crate::model::constrained_map_in_output_internal::ConstraintViolation::Length(
|
4170 5122 | length,
|
4171 5123 | ),
|
4172 5124 | )
|
4173 5125 | }
|
4174 5126 | }
|
4175 5127 | }
|
4176 5128 |
|
4177 5129 | impl ::std::convert::From<ConstrainedMapInOutput>
|
4178 5130 | for ::std::collections::HashMap<
|
4179 5131 | ::std::string::String,
|
4180 5132 | crate::model::TransitivelyConstrainedStructureInOutput,
|
4181 5133 | >
|
4182 5134 | {
|
4183 5135 | fn from(value: ConstrainedMapInOutput) -> Self {
|
4184 5136 | value.into_inner()
|
4185 5137 | }
|
4186 5138 | }
|
4187 5139 |
|
5140 + | /* ConstrainedCollectionGenerator.kt:93 */
|
4188 5141 | #[allow(missing_docs)] // documentation missing in model
|
4189 - | ///
|
5142 + | /// /* ConstrainedCollectionGenerator.kt:94 */
|
4190 5143 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
4191 5144 | /// [constraint traits]. Use [`ConstrainedListInOutput::try_from`] to construct values of this type.
|
4192 5145 | ///
|
4193 5146 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
4194 5147 | ///
|
5148 + | /* RustType.kt:516 */
|
4195 5149 | #[derive(
|
4196 5150 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4197 5151 | )]
|
4198 - | pub(crate) struct ConstrainedListInOutput(
|
5152 + | pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct ConstrainedListInOutput(
|
4199 5153 | pub(crate) ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>,
|
4200 5154 | );
|
5155 + | /* ConstrainedCollectionGenerator.kt:104 */
|
4201 5156 | impl ConstrainedListInOutput {
|
5157 + | /* ConstrainedCollectionGenerator.kt:116 */
|
4202 5158 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::ConstrainedUnionInOutput>`].
|
4203 5159 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::ConstrainedUnionInOutput> {
|
4204 5160 | self.0
|
4205 5161 | }
|
4206 5162 |
|
4207 5163 | fn check_length(
|
4208 5164 | length: usize,
|
4209 5165 | ) -> ::std::result::Result<
|
4210 5166 | (),
|
4211 5167 | crate::model::constrained_list_in_output_internal::ConstraintViolation,
|
4212 5168 | > {
|
4213 5169 | if 69 <= length {
|
4214 5170 | Ok(())
|
4215 5171 | } else {
|
4216 5172 | Err(
|
4217 5173 | crate::model::constrained_list_in_output_internal::ConstraintViolation::Length(
|
4218 5174 | length,
|
4219 5175 | ),
|
4220 5176 | )
|
4221 5177 | }
|
4222 5178 | }
|
5179 + | /* ConstrainedCollectionGenerator.kt:104 */
|
4223 5180 | }
|
5181 + | /* ConstrainedCollectionGenerator.kt:133 */
|
4224 5182 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::ConstrainedUnionInOutput>>
|
4225 5183 | for ConstrainedListInOutput
|
4226 5184 | {
|
4227 5185 | type Error = crate::model::constrained_list_in_output_internal::ConstraintViolation;
|
4228 5186 |
|
4229 5187 | /// Constructs a `ConstrainedListInOutput` from an [`::std::vec::Vec<crate::model::ConstrainedUnionInOutput>`], failing when the provided value does not satisfy the modeled constraints.
|
4230 5188 | fn try_from(
|
4231 5189 | value: ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>,
|
4232 5190 | ) -> ::std::result::Result<Self, Self::Error> {
|
4233 5191 | Self::check_length(value.len())?;
|
4234 5192 |
|
4235 5193 | Ok(Self(value))
|
4236 5194 | }
|
4237 5195 | }
|
4238 5196 |
|
4239 5197 | impl ::std::convert::From<ConstrainedListInOutput>
|
4240 5198 | for ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>
|
4241 5199 | {
|
4242 5200 | fn from(value: ConstrainedListInOutput) -> Self {
|
4243 5201 | value.into_inner()
|
4244 5202 | }
|
4245 5203 | }
|
4246 5204 |
|
4247 - | /// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
5205 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
4248 5206 | pub mod validation_exception_field {
|
4249 5207 |
|
5208 + | /* RustType.kt:516 */
|
4250 5209 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4251 - | /// Holds one variant for each of the ways the builder can fail.
|
4252 - |
|
5210 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5211 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4253 5212 | #[allow(clippy::enum_variant_names)]
|
4254 5213 | pub enum ConstraintViolation {
|
4255 - | /// `path` was not provided but it is required when building `ValidationExceptionField`.
|
5214 + | /// /* ServerBuilderConstraintViolations.kt:138 */`path` was not provided but it is required when building `ValidationExceptionField`.
|
5215 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4256 5216 | MissingPath,
|
4257 - | /// `message` was not provided but it is required when building `ValidationExceptionField`.
|
5217 + | /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationExceptionField`.
|
5218 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4258 5219 | MissingMessage,
|
5220 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4259 5221 | }
|
5222 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4260 5223 | impl ::std::fmt::Display for ConstraintViolation {
|
5224 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4261 5225 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5226 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4262 5227 | match self {
|
4263 - | ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
|
4264 - | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
|
4265 - | }
|
5228 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
|
5229 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
|
5230 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
5231 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4266 5232 | }
|
5233 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4267 5234 | }
|
5235 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4268 5236 | impl ::std::error::Error for ConstraintViolation {}
|
5237 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
4269 5238 | impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
|
4270 5239 | type Error = ConstraintViolation;
|
4271 5240 |
|
4272 5241 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4273 5242 | builder.build()
|
4274 5243 | }
|
4275 5244 | }
|
4276 - | /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
5245 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
5246 + | /* RustType.kt:516 */
|
4277 5247 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5248 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4278 5249 | pub struct Builder {
|
5250 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4279 5251 | pub(crate) path: ::std::option::Option<::std::string::String>,
|
5252 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4280 5253 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
5254 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4281 5255 | }
|
5256 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4282 5257 | impl Builder {
|
4283 - | /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
5258 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
5259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4284 5260 | pub fn path(mut self, input: ::std::string::String) -> Self {
|
4285 - | self.path = Some(input);
|
5261 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
5262 + | self.path =
|
5263 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
5264 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
5265 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
5266 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4286 5267 | self
|
5268 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4287 5269 | }
|
4288 - | /// A detailed description of the validation failure.
|
5270 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A detailed description of the validation failure.
|
5271 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4289 5272 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
4290 - | self.message = Some(input);
|
5273 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
5274 + | self.message =
|
5275 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
5276 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
5277 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
5278 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4291 5279 | self
|
5280 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4292 5281 | }
|
4293 - | /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
4294 - | ///
|
5282 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
5283 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
4295 5284 | /// The builder fails to construct a [`ValidationExceptionField`](crate::model::ValidationExceptionField) if you do not provide a value for all non-`Option`al members.
|
4296 5285 | ///
|
5286 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
4297 5287 | pub fn build(self) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
|
4298 5288 | self.build_enforcing_required_and_enum_traits()
|
4299 5289 | }
|
5290 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
4300 5291 | fn build_enforcing_required_and_enum_traits(
|
4301 5292 | self,
|
4302 5293 | ) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
|
4303 - | Ok(crate::model::ValidationExceptionField {
|
4304 - | path: self.path.ok_or(ConstraintViolation::MissingPath)?,
|
4305 - | message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
|
4306 - | })
|
5294 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
5295 + | Ok(
|
5296 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
5297 + | crate::model::ValidationExceptionField {
|
5298 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5299 + | path: self
|
5300 + | .path
|
5301 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
5302 + | .ok_or(ConstraintViolation::MissingPath)?,
|
5303 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5304 + | message: self
|
5305 + | .message
|
5306 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
5307 + | .ok_or(ConstraintViolation::MissingMessage)?,
|
5308 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
5309 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
5310 + | )
|
5311 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
4307 5312 | }
|
5313 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4308 5314 | }
|
5315 + |
|
5316 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4309 5317 | }
|
4310 - | /// See [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
5318 + | /// /* ServerBuilderGenerator.kt:171 */See [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
4311 5319 | pub(crate) mod event_stream_regular_message_internal {
|
4312 5320 |
|
5321 + | /* ServerBuilderGenerator.kt:461 */
|
4313 5322 | impl ::std::convert::From<Builder> for crate::model::EventStreamRegularMessage {
|
4314 5323 | fn from(builder: Builder) -> Self {
|
4315 5324 | builder.build()
|
4316 5325 | }
|
4317 5326 | }
|
4318 - | /// A builder for [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
5327 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
5328 + | /* RustType.kt:516 */
|
4319 5329 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5330 + | /* ServerBuilderGenerator.kt:211 */
|
4320 5331 | pub(crate) struct Builder {
|
5332 + | /* ServerBuilderGenerator.kt:308 */
|
4321 5333 | pub(crate) message_content: ::std::option::Option<::std::string::String>,
|
5334 + | /* ServerBuilderGenerator.kt:211 */
|
4322 5335 | }
|
5336 + | /* ServerBuilderGenerator.kt:215 */
|
4323 5337 | impl Builder {
|
5338 + | /* ServerBuilderGenerator.kt:426 */
|
4324 5339 | #[allow(missing_docs)] // documentation missing in model
|
5340 + | /* ServerBuilderGenerator.kt:428 */
|
4325 5341 | pub(crate) fn set_message_content(
|
4326 5342 | mut self,
|
4327 5343 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
4328 5344 | ) -> Self {
|
5345 + | /* ServerBuilderGenerator.kt:429 */
|
4329 5346 | self.message_content = input.map(|v| v.into());
|
4330 5347 | self
|
5348 + | /* ServerBuilderGenerator.kt:428 */
|
4331 5349 | }
|
4332 - | /// Consumes the builder and constructs a [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
5350 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
5351 + | /* ServerBuilderGenerator.kt:271 */
|
4333 5352 | pub fn build(self) -> crate::model::EventStreamRegularMessage {
|
4334 5353 | self.build_enforcing_all_constraints()
|
4335 5354 | }
|
5355 + | /* ServerBuilderGenerator.kt:283 */
|
4336 5356 | fn build_enforcing_all_constraints(self) -> crate::model::EventStreamRegularMessage {
|
5357 + | /* ServerBuilderGenerator.kt:542 */
|
4337 5358 | crate::model::EventStreamRegularMessage {
|
5359 + | /* ServerBuilderGenerator.kt:546 */
|
4338 5360 | message_content: self.message_content,
|
5361 + | /* ServerBuilderGenerator.kt:542 */
|
4339 5362 | }
|
5363 + | /* ServerBuilderGenerator.kt:283 */
|
4340 5364 | }
|
5365 + | /* ServerBuilderGenerator.kt:215 */
|
4341 5366 | }
|
5367 + |
|
5368 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4342 5369 | }
|
4343 - | /// See [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
5370 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
4344 5371 | pub mod event_stream_regular_message {
|
4345 5372 |
|
5373 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
4346 5374 | impl ::std::convert::From<Builder> for crate::model::EventStreamRegularMessage {
|
4347 5375 | fn from(builder: Builder) -> Self {
|
4348 5376 | builder.build()
|
4349 5377 | }
|
4350 5378 | }
|
4351 - | /// A builder for [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
5379 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
5380 + | /* RustType.kt:516 */
|
4352 5381 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5382 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4353 5383 | pub struct Builder {
|
5384 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4354 5385 | pub(crate) message_content: ::std::option::Option<::std::string::String>,
|
5386 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4355 5387 | }
|
5388 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4356 5389 | impl Builder {
|
5390 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4357 5391 | #[allow(missing_docs)] // documentation missing in model
|
5392 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4358 5393 | pub fn message_content(
|
4359 5394 | mut self,
|
4360 5395 | input: ::std::option::Option<::std::string::String>,
|
4361 5396 | ) -> Self {
|
4362 - | self.message_content = input;
|
5397 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
5398 + | self.message_content =
|
5399 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
5400 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4363 5401 | self
|
5402 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4364 5403 | }
|
4365 - | /// Consumes the builder and constructs a [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
5404 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
|
5405 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
4366 5406 | pub fn build(self) -> crate::model::EventStreamRegularMessage {
|
4367 5407 | self.build_enforcing_required_and_enum_traits()
|
4368 5408 | }
|
5409 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
4369 5410 | fn build_enforcing_required_and_enum_traits(
|
4370 5411 | self,
|
4371 5412 | ) -> crate::model::EventStreamRegularMessage {
|
5413 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
4372 5414 | crate::model::EventStreamRegularMessage {
|
5415 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
4373 5416 | message_content: self.message_content,
|
5417 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
4374 5418 | }
|
5419 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
4375 5420 | }
|
5421 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4376 5422 | }
|
5423 + |
|
5424 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4377 5425 | }
|
4378 5426 | pub(crate) mod map_of_enum_string_internal {
|
4379 5427 |
|
5428 + | /* MapConstraintViolationGenerator.kt:82 */
|
4380 5429 | #[allow(clippy::enum_variant_names)]
|
4381 5430 | #[derive(Debug, PartialEq)]
|
4382 5431 | pub(crate) enum ConstraintViolation {
|
4383 5432 | #[doc(hidden)]
|
4384 5433 | Key(crate::model::enum_string_internal::ConstraintViolation),
|
4385 5434 | #[doc(hidden)]
|
4386 5435 | Value(
|
4387 5436 | crate::model::EnumString,
|
4388 5437 | crate::model::enum_string_internal::ConstraintViolation,
|
4389 5438 | ),
|
4390 5439 | }
|
4391 5440 |
|
4392 5441 | impl ::std::fmt::Display for ConstraintViolation {
|
4393 5442 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4394 5443 | match self {
|
4395 5444 | Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
|
4396 5445 | Self::Value(_, value_constraint_violation) => {
|
4397 5446 | write!(f, "{}", value_constraint_violation)
|
4398 5447 | }
|
4399 5448 | }
|
4400 5449 | }
|
4401 5450 | }
|
4402 5451 |
|
4403 5452 | impl ::std::error::Error for ConstraintViolation {}
|
5453 + | /* MapConstraintViolationGenerator.kt:111 */
|
4404 5454 | impl ConstraintViolation {
|
4405 5455 | pub(crate) fn as_validation_exception_field(
|
4406 5456 | self,
|
4407 5457 | path: ::std::string::String,
|
4408 5458 | ) -> crate::model::ValidationExceptionField {
|
4409 5459 | match self {
|
4410 5460 | Self::Key(key_constraint_violation) => {
|
4411 5461 | key_constraint_violation.as_validation_exception_field(path)
|
4412 5462 | }
|
4413 5463 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
4414 5464 | .as_validation_exception_field(path + "/" + key.as_str()),
|
4415 5465 | }
|
4416 5466 | }
|
4417 5467 | }
|
5468 + |
|
5469 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4418 5470 | }
|
4419 5471 | pub(crate) mod con_b_map_internal {
|
4420 5472 |
|
5473 + | /* MapConstraintViolationGenerator.kt:82 */
|
4421 5474 | #[allow(clippy::enum_variant_names)]
|
4422 5475 | #[derive(Debug, PartialEq)]
|
4423 5476 | pub(crate) enum ConstraintViolation {
|
4424 5477 | Length(usize),
|
4425 5478 |
|
4426 5479 | #[doc(hidden)]
|
4427 5480 | Value(
|
4428 5481 | ::std::string::String,
|
4429 5482 | crate::model::length_string_internal::ConstraintViolation,
|
4430 5483 | ),
|
4431 5484 | }
|
4432 5485 |
|
4433 5486 | impl ::std::fmt::Display for ConstraintViolation {
|
4434 5487 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4435 5488 | match self {
|
4436 5489 | Self::Length(length) => {
|
4437 5490 | write!(f, "Value with length {} provided for 'com.amazonaws.constraints#ConBMap' failed to satisfy constraint: Member must have length between 1 and 69, inclusive", length)
|
4438 5491 | }
|
4439 5492 |
|
4440 5493 | Self::Value(_, value_constraint_violation) => {
|
4441 5494 | write!(f, "{}", value_constraint_violation)
|
4442 5495 | }
|
4443 5496 | }
|
4444 5497 | }
|
4445 5498 | }
|
4446 5499 |
|
4447 5500 | impl ::std::error::Error for ConstraintViolation {}
|
5501 + | /* MapConstraintViolationGenerator.kt:111 */
|
4448 5502 | impl ConstraintViolation {
|
4449 5503 | pub(crate) fn as_validation_exception_field(
|
4450 5504 | self,
|
4451 5505 | path: ::std::string::String,
|
4452 5506 | ) -> crate::model::ValidationExceptionField {
|
4453 5507 | match self {
|
4454 5508 | Self::Length(length) => crate::model::ValidationExceptionField {
|
4455 5509 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 1 and 69, inclusive", length, &path),
|
4456 5510 | path,
|
4457 5511 | },
|
4458 5512 | Self::Value(key, value_constraint_violation) => value_constraint_violation.as_validation_exception_field(path + "/" + key.as_str()),
|
4459 5513 | }
|
4460 5514 | }
|
4461 5515 | }
|
5516 + |
|
5517 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4462 5518 | }
|
4463 5519 | pub(crate) mod length_string_internal {
|
4464 5520 |
|
5521 + | /* ConstrainedStringGenerator.kt:155 */
|
4465 5522 | #[derive(Debug, PartialEq)]
|
4466 5523 | pub enum ConstraintViolation {
|
4467 5524 | /// Error when a string doesn't satisfy its `@length` requirements.
|
4468 5525 | Length(usize),
|
4469 5526 | }
|
4470 5527 |
|
4471 5528 | impl ::std::fmt::Display for ConstraintViolation {
|
4472 5529 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4473 5530 | let message = match self {
|
4474 5531 | Self::Length(length) => {
|
4475 5532 | format!("Value with length {} provided for 'com.amazonaws.constraints#LengthString' failed to satisfy constraint: Member must have length between 2 and 69, inclusive", length)
|
4476 5533 | }
|
4477 5534 | };
|
4478 5535 | write!(f, "{message}")
|
4479 5536 | }
|
4480 5537 | }
|
4481 5538 |
|
4482 5539 | impl ::std::error::Error for ConstraintViolation {}
|
5540 + | /* ConstrainedStringGenerator.kt:180 */
|
4483 5541 | impl ConstraintViolation {
|
4484 5542 | pub(crate) fn as_validation_exception_field(
|
4485 5543 | self,
|
4486 5544 | path: ::std::string::String,
|
4487 5545 | ) -> crate::model::ValidationExceptionField {
|
4488 5546 | match self {
|
4489 5547 | Self::Length(length) => crate::model::ValidationExceptionField {
|
4490 5548 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 2 and 69, inclusive", length, &path),
|
4491 5549 | path,
|
4492 5550 | },
|
4493 5551 | }
|
4494 5552 | }
|
4495 5553 | }
|
5554 + |
|
5555 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4496 5556 | }
|
4497 5557 | pub(crate) mod map_of_list_of_length_pattern_string_internal {
|
4498 5558 |
|
5559 + | /* MapConstraintViolationGenerator.kt:82 */
|
4499 5560 | #[allow(clippy::enum_variant_names)]
|
4500 5561 | #[derive(Debug, PartialEq)]
|
4501 5562 | pub(crate) enum ConstraintViolation {
|
4502 5563 | #[doc(hidden)]
|
4503 5564 | Key(crate::model::length_pattern_string_internal::ConstraintViolation),
|
4504 5565 | #[doc(hidden)]
|
4505 5566 | Value(
|
4506 5567 | crate::model::LengthPatternString,
|
4507 5568 | crate::model::list_of_length_pattern_string_internal::ConstraintViolation,
|
4508 5569 | ),
|
4509 5570 | }
|
4510 5571 |
|
4511 5572 | impl ::std::fmt::Display for ConstraintViolation {
|
4512 5573 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4513 5574 | match self {
|
4514 5575 | Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
|
4515 5576 | Self::Value(_, value_constraint_violation) => {
|
4516 5577 | write!(f, "{}", value_constraint_violation)
|
4517 5578 | }
|
4518 5579 | }
|
4519 5580 | }
|
4520 5581 | }
|
4521 5582 |
|
4522 5583 | impl ::std::error::Error for ConstraintViolation {}
|
5584 + | /* MapConstraintViolationGenerator.kt:111 */
|
4523 5585 | impl ConstraintViolation {
|
4524 5586 | pub(crate) fn as_validation_exception_field(
|
4525 5587 | self,
|
4526 5588 | path: ::std::string::String,
|
4527 5589 | ) -> crate::model::ValidationExceptionField {
|
4528 5590 | match self {
|
4529 5591 | Self::Key(key_constraint_violation) => {
|
4530 5592 | key_constraint_violation.as_validation_exception_field(path)
|
4531 5593 | }
|
4532 5594 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
4533 5595 | .as_validation_exception_field(path + "/" + key.as_str()),
|
4534 5596 | }
|
4535 5597 | }
|
4536 5598 | }
|
5599 + |
|
5600 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4537 5601 | }
|
4538 5602 | pub(crate) mod list_of_length_pattern_string_internal {
|
4539 5603 |
|
5604 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
4540 5605 | #[allow(clippy::enum_variant_names)]
|
4541 5606 | #[derive(Debug, PartialEq)]
|
4542 5607 | pub(crate) enum ConstraintViolation {
|
4543 5608 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
4544 5609 | /// The first component of the tuple is the index in the collection where the
|
4545 5610 | /// first constraint violation was found.
|
4546 5611 | #[doc(hidden)]
|
4547 5612 | Member(
|
4548 5613 | usize,
|
4549 5614 | crate::model::length_pattern_string_internal::ConstraintViolation,
|
4550 5615 | ),
|
4551 5616 | }
|
4552 5617 |
|
4553 5618 | impl ::std::fmt::Display for ConstraintViolation {
|
4554 5619 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4555 5620 | let message = match self {
|
4556 5621 | Self::Member(index, failing_member) => format!(
|
4557 5622 | "Value at index {index} failed to satisfy constraint. {}",
|
4558 5623 | failing_member
|
4559 5624 | ),
|
4560 5625 | };
|
4561 5626 | write!(f, "{message}")
|
4562 5627 | }
|
4563 5628 | }
|
4564 5629 |
|
4565 5630 | impl ::std::error::Error for ConstraintViolation {}
|
5631 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
4566 5632 | impl ConstraintViolation {
|
4567 5633 | pub(crate) fn as_validation_exception_field(
|
4568 5634 | self,
|
4569 5635 | path: ::std::string::String,
|
4570 5636 | ) -> crate::model::ValidationExceptionField {
|
4571 5637 | match self {
|
4572 5638 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
4573 5639 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
4574 5640 | }
|
4575 5641 | }
|
4576 5642 | }
|
5643 + |
|
5644 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4577 5645 | }
|
4578 5646 | pub(crate) mod length_pattern_string_internal {
|
4579 5647 |
|
5648 + | /* ConstrainedStringGenerator.kt:155 */
|
4580 5649 | #[derive(Debug, PartialEq)]
|
4581 5650 | pub enum ConstraintViolation {
|
4582 5651 | /// Error when a string doesn't satisfy its `@length` requirements.
|
4583 5652 | Length(usize),
|
4584 5653 | /// Error when a string doesn't satisfy its `@pattern`.
|
4585 5654 | /// Contains the String that failed the pattern.
|
4586 5655 | Pattern(String),
|
4587 5656 | }
|
4588 5657 |
|
4589 5658 | impl ::std::fmt::Display for ConstraintViolation {
|
4590 5659 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4591 5660 | let message = match self {
|
4592 5661 | Self::Length(length) => {
|
4593 5662 | format!("Value with length {} provided for 'com.amazonaws.constraints#LengthPatternString' failed to satisfy constraint: Member must have length between 5 and 10, inclusive", length)
|
4594 5663 | }
|
4595 5664 | Self::Pattern(_) => {
|
4596 5665 | format!(
|
4597 5666 | r#"Value provided for `com.amazonaws.constraints#LengthPatternString` failed to satisfy the constraint: Member must match the regular expression pattern: {}"#,
|
4598 5667 | r#"[a-f0-5]*"#
|
4599 5668 | )
|
4600 5669 | }
|
4601 5670 | };
|
4602 5671 | write!(f, "{message}")
|
4603 5672 | }
|
4604 5673 | }
|
4605 5674 |
|
4606 5675 | impl ::std::error::Error for ConstraintViolation {}
|
5676 + | /* ConstrainedStringGenerator.kt:180 */
|
4607 5677 | impl ConstraintViolation {
|
4608 5678 | pub(crate) fn as_validation_exception_field(
|
4609 5679 | self,
|
4610 5680 | path: ::std::string::String,
|
4611 5681 | ) -> crate::model::ValidationExceptionField {
|
4612 5682 | match self {
|
4613 5683 | Self::Length(length) => crate::model::ValidationExceptionField {
|
4614 5684 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 5 and 10, inclusive", length, &path),
|
4615 5685 | path,
|
4616 5686 | },
|
4617 5687 |
|
4618 5688 | #[allow(unused_variables)]
|
4619 5689 | Self::Pattern(_) => crate::model::ValidationExceptionField {
|
4620 5690 | message: format!("Value at '{}' failed to satisfy constraint: Member must satisfy regular expression pattern: {}", &path, r#"[a-f0-5]*"#),
|
4621 5691 | path
|
4622 5692 | },
|
4623 5693 | }
|
4624 5694 | }
|
4625 5695 | }
|
5696 + |
|
5697 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4626 5698 | }
|
4627 5699 | pub(crate) mod map_of_length_pattern_string_internal {
|
4628 5700 |
|
5701 + | /* MapConstraintViolationGenerator.kt:82 */
|
4629 5702 | #[allow(clippy::enum_variant_names)]
|
4630 5703 | #[derive(Debug, PartialEq)]
|
4631 5704 | pub(crate) enum ConstraintViolation {
|
4632 5705 | #[doc(hidden)]
|
4633 5706 | Key(crate::model::length_pattern_string_internal::ConstraintViolation),
|
4634 5707 | #[doc(hidden)]
|
4635 5708 | Value(
|
4636 5709 | crate::model::LengthPatternString,
|
4637 5710 | crate::model::length_pattern_string_internal::ConstraintViolation,
|
4638 5711 | ),
|
4639 5712 | }
|
4640 5713 |
|
4641 5714 | impl ::std::fmt::Display for ConstraintViolation {
|
4642 5715 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4643 5716 | match self {
|
4644 5717 | Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
|
4645 5718 | Self::Value(_, value_constraint_violation) => {
|
4646 5719 | write!(f, "{}", value_constraint_violation)
|
4647 5720 | }
|
4648 5721 | }
|
4649 5722 | }
|
4650 5723 | }
|
4651 5724 |
|
4652 5725 | impl ::std::error::Error for ConstraintViolation {}
|
5726 + | /* MapConstraintViolationGenerator.kt:111 */
|
4653 5727 | impl ConstraintViolation {
|
4654 5728 | pub(crate) fn as_validation_exception_field(
|
4655 5729 | self,
|
4656 5730 | path: ::std::string::String,
|
4657 5731 | ) -> crate::model::ValidationExceptionField {
|
4658 5732 | match self {
|
4659 5733 | Self::Key(key_constraint_violation) => {
|
4660 5734 | key_constraint_violation.as_validation_exception_field(path)
|
4661 5735 | }
|
4662 5736 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
4663 5737 | .as_validation_exception_field(path + "/" + key.as_str()),
|
4664 5738 | }
|
4665 5739 | }
|
4666 5740 | }
|
5741 + |
|
5742 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4667 5743 | }
|
4668 5744 | pub(crate) mod map_of_list_of_pattern_string_internal {
|
4669 5745 |
|
5746 + | /* MapConstraintViolationGenerator.kt:82 */
|
4670 5747 | #[allow(clippy::enum_variant_names)]
|
4671 5748 | #[derive(Debug, PartialEq)]
|
4672 5749 | pub(crate) enum ConstraintViolation {
|
4673 5750 | #[doc(hidden)]
|
4674 5751 | Key(crate::model::pattern_string_internal::ConstraintViolation),
|
4675 5752 | #[doc(hidden)]
|
4676 5753 | Value(
|
4677 5754 | crate::model::PatternString,
|
4678 5755 | crate::model::list_of_pattern_string_internal::ConstraintViolation,
|
4679 5756 | ),
|
4680 5757 | }
|
4681 5758 |
|
4682 5759 | impl ::std::fmt::Display for ConstraintViolation {
|
4683 5760 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4684 5761 | match self {
|
4685 5762 | Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
|
4686 5763 | Self::Value(_, value_constraint_violation) => {
|
4687 5764 | write!(f, "{}", value_constraint_violation)
|
4688 5765 | }
|
4689 5766 | }
|
4690 5767 | }
|
4691 5768 | }
|
4692 5769 |
|
4693 5770 | impl ::std::error::Error for ConstraintViolation {}
|
5771 + | /* MapConstraintViolationGenerator.kt:111 */
|
4694 5772 | impl ConstraintViolation {
|
4695 5773 | pub(crate) fn as_validation_exception_field(
|
4696 5774 | self,
|
4697 5775 | path: ::std::string::String,
|
4698 5776 | ) -> crate::model::ValidationExceptionField {
|
4699 5777 | match self {
|
4700 5778 | Self::Key(key_constraint_violation) => {
|
4701 5779 | key_constraint_violation.as_validation_exception_field(path)
|
4702 5780 | }
|
4703 5781 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
4704 5782 | .as_validation_exception_field(path + "/" + key.as_str()),
|
4705 5783 | }
|
4706 5784 | }
|
4707 5785 | }
|
5786 + |
|
5787 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4708 5788 | }
|
4709 5789 | pub(crate) mod list_of_pattern_string_internal {
|
4710 5790 |
|
5791 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
4711 5792 | #[allow(clippy::enum_variant_names)]
|
4712 5793 | #[derive(Debug, PartialEq)]
|
4713 5794 | pub(crate) enum ConstraintViolation {
|
4714 5795 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
4715 5796 | /// The first component of the tuple is the index in the collection where the
|
4716 5797 | /// first constraint violation was found.
|
4717 5798 | #[doc(hidden)]
|
4718 5799 | Member(
|
4719 5800 | usize,
|
4720 5801 | crate::model::pattern_string_internal::ConstraintViolation,
|
4721 5802 | ),
|
4722 5803 | }
|
4723 5804 |
|
4724 5805 | impl ::std::fmt::Display for ConstraintViolation {
|
4725 5806 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4726 5807 | let message = match self {
|
4727 5808 | Self::Member(index, failing_member) => format!(
|
4728 5809 | "Value at index {index} failed to satisfy constraint. {}",
|
4729 5810 | failing_member
|
4730 5811 | ),
|
4731 5812 | };
|
4732 5813 | write!(f, "{message}")
|
4733 5814 | }
|
4734 5815 | }
|
4735 5816 |
|
4736 5817 | impl ::std::error::Error for ConstraintViolation {}
|
5818 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
4737 5819 | impl ConstraintViolation {
|
4738 5820 | pub(crate) fn as_validation_exception_field(
|
4739 5821 | self,
|
4740 5822 | path: ::std::string::String,
|
4741 5823 | ) -> crate::model::ValidationExceptionField {
|
4742 5824 | match self {
|
4743 5825 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
4744 5826 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
4745 5827 | }
|
4746 5828 | }
|
4747 5829 | }
|
5830 + |
|
5831 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4748 5832 | }
|
4749 5833 | pub(crate) mod pattern_string_internal {
|
4750 5834 |
|
5835 + | /* ConstrainedStringGenerator.kt:155 */
|
4751 5836 | #[derive(Debug, PartialEq)]
|
4752 5837 | pub enum ConstraintViolation {
|
4753 5838 | /// Error when a string doesn't satisfy its `@pattern`.
|
4754 5839 | /// Contains the String that failed the pattern.
|
4755 5840 | Pattern(String),
|
4756 5841 | }
|
4757 5842 |
|
4758 5843 | impl ::std::fmt::Display for ConstraintViolation {
|
4759 5844 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4760 5845 | let message = match self {
|
4761 5846 | Self::Pattern(_) => {
|
4762 5847 | format!(
|
4763 5848 | r#"Value provided for `com.amazonaws.constraints#PatternString` failed to satisfy the constraint: Member must match the regular expression pattern: {}"#,
|
4764 5849 | r#"[a-d]{5}"#
|
4765 5850 | )
|
4766 5851 | }
|
4767 5852 | };
|
4768 5853 | write!(f, "{message}")
|
4769 5854 | }
|
4770 5855 | }
|
4771 5856 |
|
4772 5857 | impl ::std::error::Error for ConstraintViolation {}
|
5858 + | /* ConstrainedStringGenerator.kt:180 */
|
4773 5859 | impl ConstraintViolation {
|
4774 5860 | pub(crate) fn as_validation_exception_field(
|
4775 5861 | self,
|
4776 5862 | path: ::std::string::String,
|
4777 5863 | ) -> crate::model::ValidationExceptionField {
|
4778 5864 | match self {
|
4779 5865 | #[allow(unused_variables)]
|
4780 5866 | Self::Pattern(_) => crate::model::ValidationExceptionField {
|
4781 5867 | message: format!("Value at '{}' failed to satisfy constraint: Member must satisfy regular expression pattern: {}", &path, r#"[a-d]{5}"#),
|
4782 5868 | path
|
4783 5869 | },
|
4784 5870 | }
|
4785 5871 | }
|
4786 5872 | }
|
5873 + |
|
5874 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4787 5875 | }
|
4788 5876 | pub(crate) mod map_of_pattern_string_internal {
|
4789 5877 |
|
5878 + | /* MapConstraintViolationGenerator.kt:82 */
|
4790 5879 | #[allow(clippy::enum_variant_names)]
|
4791 5880 | #[derive(Debug, PartialEq)]
|
4792 5881 | pub(crate) enum ConstraintViolation {
|
4793 5882 | #[doc(hidden)]
|
4794 5883 | Key(crate::model::pattern_string_internal::ConstraintViolation),
|
4795 5884 | #[doc(hidden)]
|
4796 5885 | Value(
|
4797 5886 | crate::model::PatternString,
|
4798 5887 | crate::model::pattern_string_internal::ConstraintViolation,
|
4799 5888 | ),
|
4800 5889 | }
|
4801 5890 |
|
4802 5891 | impl ::std::fmt::Display for ConstraintViolation {
|
4803 5892 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4804 5893 | match self {
|
4805 5894 | Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
|
4806 5895 | Self::Value(_, value_constraint_violation) => {
|
4807 5896 | write!(f, "{}", value_constraint_violation)
|
4808 5897 | }
|
4809 5898 | }
|
4810 5899 | }
|
4811 5900 | }
|
4812 5901 |
|
4813 5902 | impl ::std::error::Error for ConstraintViolation {}
|
5903 + | /* MapConstraintViolationGenerator.kt:111 */
|
4814 5904 | impl ConstraintViolation {
|
4815 5905 | pub(crate) fn as_validation_exception_field(
|
4816 5906 | self,
|
4817 5907 | path: ::std::string::String,
|
4818 5908 | ) -> crate::model::ValidationExceptionField {
|
4819 5909 | match self {
|
4820 5910 | Self::Key(key_constraint_violation) => {
|
4821 5911 | key_constraint_violation.as_validation_exception_field(path)
|
4822 5912 | }
|
4823 5913 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
4824 5914 | .as_validation_exception_field(path + "/" + key.as_str()),
|
4825 5915 | }
|
4826 5916 | }
|
4827 5917 | }
|
5918 + |
|
5919 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4828 5920 | }
|
4829 5921 | pub(crate) mod map_of_list_of_enum_string_internal {
|
4830 5922 |
|
5923 + | /* MapConstraintViolationGenerator.kt:82 */
|
4831 5924 | #[allow(clippy::enum_variant_names)]
|
4832 5925 | #[derive(Debug, PartialEq)]
|
4833 5926 | pub(crate) enum ConstraintViolation {
|
4834 5927 | #[doc(hidden)]
|
4835 5928 | Key(crate::model::enum_string_internal::ConstraintViolation),
|
4836 5929 | #[doc(hidden)]
|
4837 5930 | Value(
|
4838 5931 | crate::model::EnumString,
|
4839 5932 | crate::model::list_of_enum_string_internal::ConstraintViolation,
|
4840 5933 | ),
|
4841 5934 | }
|
4842 5935 |
|
4843 5936 | impl ::std::fmt::Display for ConstraintViolation {
|
4844 5937 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4845 5938 | match self {
|
4846 5939 | Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
|
4847 5940 | Self::Value(_, value_constraint_violation) => {
|
4848 5941 | write!(f, "{}", value_constraint_violation)
|
4849 5942 | }
|
4850 5943 | }
|
4851 5944 | }
|
4852 5945 | }
|
4853 5946 |
|
4854 5947 | impl ::std::error::Error for ConstraintViolation {}
|
5948 + | /* MapConstraintViolationGenerator.kt:111 */
|
4855 5949 | impl ConstraintViolation {
|
4856 5950 | pub(crate) fn as_validation_exception_field(
|
4857 5951 | self,
|
4858 5952 | path: ::std::string::String,
|
4859 5953 | ) -> crate::model::ValidationExceptionField {
|
4860 5954 | match self {
|
4861 5955 | Self::Key(key_constraint_violation) => {
|
4862 5956 | key_constraint_violation.as_validation_exception_field(path)
|
4863 5957 | }
|
4864 5958 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
4865 5959 | .as_validation_exception_field(path + "/" + key.as_str()),
|
4866 5960 | }
|
4867 5961 | }
|
4868 5962 | }
|
5963 + |
|
5964 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4869 5965 | }
|
4870 5966 | pub(crate) mod list_of_enum_string_internal {
|
4871 5967 |
|
5968 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
4872 5969 | #[allow(clippy::enum_variant_names)]
|
4873 5970 | #[derive(Debug, PartialEq)]
|
4874 5971 | pub(crate) enum ConstraintViolation {
|
4875 5972 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
4876 5973 | /// The first component of the tuple is the index in the collection where the
|
4877 5974 | /// first constraint violation was found.
|
4878 5975 | #[doc(hidden)]
|
4879 5976 | Member(
|
4880 5977 | usize,
|
4881 5978 | crate::model::enum_string_internal::ConstraintViolation,
|
4882 5979 | ),
|
4883 5980 | }
|
4884 5981 |
|
4885 5982 | impl ::std::fmt::Display for ConstraintViolation {
|
4886 5983 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4887 5984 | let message = match self {
|
4888 5985 | Self::Member(index, failing_member) => format!(
|
4889 5986 | "Value at index {index} failed to satisfy constraint. {}",
|
4890 5987 | failing_member
|
4891 5988 | ),
|
4892 5989 | };
|
4893 5990 | write!(f, "{message}")
|
4894 5991 | }
|
4895 5992 | }
|
4896 5993 |
|
4897 5994 | impl ::std::error::Error for ConstraintViolation {}
|
5995 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
4898 5996 | impl ConstraintViolation {
|
4899 5997 | pub(crate) fn as_validation_exception_field(
|
4900 5998 | self,
|
4901 5999 | path: ::std::string::String,
|
4902 6000 | ) -> crate::model::ValidationExceptionField {
|
4903 6001 | match self {
|
4904 6002 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
4905 6003 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
4906 6004 | }
|
4907 6005 | }
|
4908 6006 | }
|
6007 + |
|
6008 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4909 6009 | }
|
4910 6010 | pub(crate) mod map_of_length_list_of_pattern_string_internal {
|
4911 6011 |
|
6012 + | /* MapConstraintViolationGenerator.kt:82 */
|
4912 6013 | #[allow(clippy::enum_variant_names)]
|
4913 6014 | #[derive(Debug, PartialEq)]
|
4914 6015 | pub(crate) enum ConstraintViolation {
|
4915 6016 | #[doc(hidden)]
|
4916 6017 | Key(crate::model::pattern_string_internal::ConstraintViolation),
|
4917 6018 | #[doc(hidden)]
|
4918 6019 | Value(
|
4919 6020 | crate::model::PatternString,
|
4920 6021 | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
4921 6022 | ),
|
4922 6023 | }
|
4923 6024 |
|
4924 6025 | impl ::std::fmt::Display for ConstraintViolation {
|
4925 6026 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4926 6027 | match self {
|
4927 6028 | Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
|
4928 6029 | Self::Value(_, value_constraint_violation) => {
|
4929 6030 | write!(f, "{}", value_constraint_violation)
|
4930 6031 | }
|
4931 6032 | }
|
4932 6033 | }
|
4933 6034 | }
|
4934 6035 |
|
4935 6036 | impl ::std::error::Error for ConstraintViolation {}
|
6037 + | /* MapConstraintViolationGenerator.kt:111 */
|
4936 6038 | impl ConstraintViolation {
|
4937 6039 | pub(crate) fn as_validation_exception_field(
|
4938 6040 | self,
|
4939 6041 | path: ::std::string::String,
|
4940 6042 | ) -> crate::model::ValidationExceptionField {
|
4941 6043 | match self {
|
4942 6044 | Self::Key(key_constraint_violation) => {
|
4943 6045 | key_constraint_violation.as_validation_exception_field(path)
|
4944 6046 | }
|
4945 6047 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
4946 6048 | .as_validation_exception_field(path + "/" + key.as_str()),
|
4947 6049 | }
|
4948 6050 | }
|
4949 6051 | }
|
6052 + |
|
6053 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4950 6054 | }
|
4951 6055 | pub(crate) mod length_list_of_pattern_string_internal {
|
4952 6056 |
|
6057 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
4953 6058 | #[allow(clippy::enum_variant_names)]
|
4954 6059 | #[derive(Debug, PartialEq)]
|
4955 6060 | pub(crate) enum ConstraintViolation {
|
4956 6061 | /// Constraint violation error when the list doesn't have the required length
|
4957 6062 | Length(usize),
|
4958 6063 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
4959 6064 | /// The first component of the tuple is the index in the collection where the
|
4960 6065 | /// first constraint violation was found.
|
4961 6066 | #[doc(hidden)]
|
4962 6067 | Member(
|
4963 6068 | usize,
|
4964 6069 | crate::model::pattern_string_internal::ConstraintViolation,
|
4965 6070 | ),
|
4966 6071 | }
|
4967 6072 |
|
4968 6073 | impl ::std::fmt::Display for ConstraintViolation {
|
4969 6074 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4970 6075 | let message = match self {
|
4971 6076 | Self::Length(length) => {
|
4972 6077 | format!("Value with length {} provided for 'com.amazonaws.constraints#LengthListOfPatternString' failed to satisfy constraint: Member must have length between 12 and 39, inclusive", length)
|
4973 6078 | }
|
4974 6079 | Self::Member(index, failing_member) => format!(
|
4975 6080 | "Value at index {index} failed to satisfy constraint. {}",
|
4976 6081 | failing_member
|
4977 6082 | ),
|
4978 6083 | };
|
4979 6084 | write!(f, "{message}")
|
4980 6085 | }
|
4981 6086 | }
|
4982 6087 |
|
4983 6088 | impl ::std::error::Error for ConstraintViolation {}
|
6089 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
4984 6090 | impl ConstraintViolation {
|
4985 6091 | pub(crate) fn as_validation_exception_field(
|
4986 6092 | self,
|
4987 6093 | path: ::std::string::String,
|
4988 6094 | ) -> crate::model::ValidationExceptionField {
|
4989 6095 | match self {
|
4990 6096 | Self::Length(length) => crate::model::ValidationExceptionField {
|
4991 6097 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 12 and 39, inclusive", length, &path),
|
4992 6098 | path,
|
4993 6099 | },
|
4994 6100 | Self::Member(index, member_constraint_violation) =>
|
4995 6101 | member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
|
4996 6102 | }
|
4997 6103 | }
|
4998 6104 | }
|
6105 + |
|
6106 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4999 6107 | }
|
5000 6108 | pub(crate) mod map_of_set_of_length_string_internal {
|
5001 6109 |
|
6110 + | /* MapConstraintViolationGenerator.kt:82 */
|
5002 6111 | #[allow(clippy::enum_variant_names)]
|
5003 6112 | #[derive(Debug, PartialEq)]
|
5004 6113 | pub(crate) enum ConstraintViolation {
|
5005 6114 | #[doc(hidden)]
|
5006 6115 | Key(crate::model::length_string_internal::ConstraintViolation),
|
5007 6116 | #[doc(hidden)]
|
5008 6117 | Value(
|
5009 6118 | crate::model::LengthString,
|
5010 6119 | crate::model::set_of_length_string_internal::ConstraintViolation,
|
5011 6120 | ),
|
5012 6121 | }
|
5013 6122 |
|
5014 6123 | impl ::std::fmt::Display for ConstraintViolation {
|
5015 6124 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5016 6125 | match self {
|
5017 6126 | Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
|
5018 6127 | Self::Value(_, value_constraint_violation) => {
|
5019 6128 | write!(f, "{}", value_constraint_violation)
|
5020 6129 | }
|
5021 6130 | }
|
5022 6131 | }
|
5023 6132 | }
|
5024 6133 |
|
5025 6134 | impl ::std::error::Error for ConstraintViolation {}
|
6135 + | /* MapConstraintViolationGenerator.kt:111 */
|
5026 6136 | impl ConstraintViolation {
|
5027 6137 | pub(crate) fn as_validation_exception_field(
|
5028 6138 | self,
|
5029 6139 | path: ::std::string::String,
|
5030 6140 | ) -> crate::model::ValidationExceptionField {
|
5031 6141 | match self {
|
5032 6142 | Self::Key(key_constraint_violation) => {
|
5033 6143 | key_constraint_violation.as_validation_exception_field(path)
|
5034 6144 | }
|
5035 6145 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
5036 6146 | .as_validation_exception_field(path + "/" + key.as_str()),
|
5037 6147 | }
|
5038 6148 | }
|
5039 6149 | }
|
6150 + |
|
6151 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5040 6152 | }
|
5041 6153 | pub(crate) mod set_of_length_string_internal {
|
5042 6154 |
|
6155 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
5043 6156 | #[allow(clippy::enum_variant_names)]
|
5044 6157 | #[derive(Debug, PartialEq)]
|
5045 6158 | pub(crate) enum ConstraintViolation {
|
5046 6159 | /// Constraint violation error when the list does not contain unique items
|
5047 6160 | UniqueItems {
|
5048 6161 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
5049 6162 | /// at least two elements.
|
5050 6163 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
5051 6164 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
5052 6165 | /// Nothing is guaranteed about the order of the indices.
|
5053 6166 | duplicate_indices: ::std::vec::Vec<usize>,
|
5054 6167 | /// The original vector, that contains duplicate items.
|
5055 6168 | original: ::std::vec::Vec<crate::model::LengthString>,
|
5056 6169 | },
|
5057 6170 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
5058 6171 | /// The first component of the tuple is the index in the collection where the
|
5059 6172 | /// first constraint violation was found.
|
5060 6173 | #[doc(hidden)]
|
5061 6174 | Member(
|
5062 6175 | usize,
|
5063 6176 | crate::model::length_string_internal::ConstraintViolation,
|
5064 6177 | ),
|
5065 6178 | }
|
5066 6179 |
|
5067 6180 | impl ::std::fmt::Display for ConstraintViolation {
|
5068 6181 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5069 6182 | let message = match self {
|
5070 6183 | Self::UniqueItems { duplicate_indices, .. } =>
|
5071 6184 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfLengthString' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
5072 6185 | Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
|
5073 6186 | failing_member)
|
5074 6187 | };
|
5075 6188 | write!(f, "{message}")
|
5076 6189 | }
|
5077 6190 | }
|
5078 6191 |
|
5079 6192 | impl ::std::error::Error for ConstraintViolation {}
|
6193 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
5080 6194 | impl ConstraintViolation {
|
5081 6195 | pub(crate) fn as_validation_exception_field(
|
5082 6196 | self,
|
5083 6197 | path: ::std::string::String,
|
5084 6198 | ) -> crate::model::ValidationExceptionField {
|
5085 6199 | match self {
|
5086 6200 | Self::UniqueItems { duplicate_indices, .. } =>
|
5087 6201 | crate::model::ValidationExceptionField {
|
5088 6202 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
5089 6203 | path,
|
5090 6204 | },
|
5091 6205 | Self::Member(index, member_constraint_violation) =>
|
5092 6206 | member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
|
5093 6207 | }
|
5094 6208 | }
|
5095 6209 | }
|
6210 + |
|
6211 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5096 6212 | }
|
5097 6213 | pub(crate) mod map_of_list_of_length_string_internal {
|
5098 6214 |
|
6215 + | /* MapConstraintViolationGenerator.kt:82 */
|
5099 6216 | #[allow(clippy::enum_variant_names)]
|
5100 6217 | #[derive(Debug, PartialEq)]
|
5101 6218 | pub(crate) enum ConstraintViolation {
|
5102 6219 | #[doc(hidden)]
|
5103 6220 | Key(crate::model::length_string_internal::ConstraintViolation),
|
5104 6221 | #[doc(hidden)]
|
5105 6222 | Value(
|
5106 6223 | crate::model::LengthString,
|
5107 6224 | crate::model::list_of_length_string_internal::ConstraintViolation,
|
5108 6225 | ),
|
5109 6226 | }
|
5110 6227 |
|
5111 6228 | impl ::std::fmt::Display for ConstraintViolation {
|
5112 6229 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5113 6230 | match self {
|
5114 6231 | Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
|
5115 6232 | Self::Value(_, value_constraint_violation) => {
|
5116 6233 | write!(f, "{}", value_constraint_violation)
|
5117 6234 | }
|
5118 6235 | }
|
5119 6236 | }
|
5120 6237 | }
|
5121 6238 |
|
5122 6239 | impl ::std::error::Error for ConstraintViolation {}
|
6240 + | /* MapConstraintViolationGenerator.kt:111 */
|
5123 6241 | impl ConstraintViolation {
|
5124 6242 | pub(crate) fn as_validation_exception_field(
|
5125 6243 | self,
|
5126 6244 | path: ::std::string::String,
|
5127 6245 | ) -> crate::model::ValidationExceptionField {
|
5128 6246 | match self {
|
5129 6247 | Self::Key(key_constraint_violation) => {
|
5130 6248 | key_constraint_violation.as_validation_exception_field(path)
|
5131 6249 | }
|
5132 6250 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
5133 6251 | .as_validation_exception_field(path + "/" + key.as_str()),
|
5134 6252 | }
|
5135 6253 | }
|
5136 6254 | }
|
6255 + |
|
6256 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5137 6257 | }
|
5138 6258 | pub(crate) mod list_of_length_string_internal {
|
5139 6259 |
|
6260 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
5140 6261 | #[allow(clippy::enum_variant_names)]
|
5141 6262 | #[derive(Debug, PartialEq)]
|
5142 6263 | pub(crate) enum ConstraintViolation {
|
5143 6264 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
5144 6265 | /// The first component of the tuple is the index in the collection where the
|
5145 6266 | /// first constraint violation was found.
|
5146 6267 | #[doc(hidden)]
|
5147 6268 | Member(
|
5148 6269 | usize,
|
5149 6270 | crate::model::length_string_internal::ConstraintViolation,
|
5150 6271 | ),
|
5151 6272 | }
|
5152 6273 |
|
5153 6274 | impl ::std::fmt::Display for ConstraintViolation {
|
5154 6275 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5155 6276 | let message = match self {
|
5156 6277 | Self::Member(index, failing_member) => format!(
|
5157 6278 | "Value at index {index} failed to satisfy constraint. {}",
|
5158 6279 | failing_member
|
5159 6280 | ),
|
5160 6281 | };
|
5161 6282 | write!(f, "{message}")
|
5162 6283 | }
|
5163 6284 | }
|
5164 6285 |
|
5165 6286 | impl ::std::error::Error for ConstraintViolation {}
|
6287 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
5166 6288 | impl ConstraintViolation {
|
5167 6289 | pub(crate) fn as_validation_exception_field(
|
5168 6290 | self,
|
5169 6291 | path: ::std::string::String,
|
5170 6292 | ) -> crate::model::ValidationExceptionField {
|
5171 6293 | match self {
|
5172 6294 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
5173 6295 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
5174 6296 | }
|
5175 6297 | }
|
5176 6298 | }
|
6299 + |
|
6300 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5177 6301 | }
|
5178 6302 | pub(crate) mod map_of_length_string_internal {
|
5179 6303 |
|
6304 + | /* MapConstraintViolationGenerator.kt:82 */
|
5180 6305 | #[allow(clippy::enum_variant_names)]
|
5181 6306 | #[derive(Debug, PartialEq)]
|
5182 6307 | pub(crate) enum ConstraintViolation {
|
5183 6308 | #[doc(hidden)]
|
5184 6309 | Key(crate::model::length_string_internal::ConstraintViolation),
|
5185 6310 | #[doc(hidden)]
|
5186 6311 | Value(
|
5187 6312 | crate::model::LengthString,
|
5188 6313 | crate::model::length_string_internal::ConstraintViolation,
|
5189 6314 | ),
|
5190 6315 | }
|
5191 6316 |
|
5192 6317 | impl ::std::fmt::Display for ConstraintViolation {
|
5193 6318 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5194 6319 | match self {
|
5195 6320 | Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
|
5196 6321 | Self::Value(_, value_constraint_violation) => {
|
5197 6322 | write!(f, "{}", value_constraint_violation)
|
5198 6323 | }
|
5199 6324 | }
|
5200 6325 | }
|
5201 6326 | }
|
5202 6327 |
|
5203 6328 | impl ::std::error::Error for ConstraintViolation {}
|
6329 + | /* MapConstraintViolationGenerator.kt:111 */
|
5204 6330 | impl ConstraintViolation {
|
5205 6331 | pub(crate) fn as_validation_exception_field(
|
5206 6332 | self,
|
5207 6333 | path: ::std::string::String,
|
5208 6334 | ) -> crate::model::ValidationExceptionField {
|
5209 6335 | match self {
|
5210 6336 | Self::Key(key_constraint_violation) => {
|
5211 6337 | key_constraint_violation.as_validation_exception_field(path)
|
5212 6338 | }
|
5213 6339 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
5214 6340 | .as_validation_exception_field(path + "/" + key.as_str()),
|
5215 6341 | }
|
5216 6342 | }
|
5217 6343 | }
|
6344 + |
|
6345 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5218 6346 | }
|
5219 6347 | pub(crate) mod recursive_list_internal {
|
5220 6348 |
|
6349 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
5221 6350 | #[allow(clippy::enum_variant_names)]
|
5222 6351 | #[derive(Debug, PartialEq)]
|
5223 6352 | pub(crate) enum ConstraintViolation {
|
5224 6353 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
5225 6354 | /// The first component of the tuple is the index in the collection where the
|
5226 6355 | /// first constraint violation was found.
|
5227 6356 | #[doc(hidden)]
|
5228 6357 | Member(
|
5229 6358 | usize,
|
5230 6359 | crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation,
|
5231 6360 | ),
|
5232 6361 | }
|
5233 6362 |
|
5234 6363 | impl ::std::fmt::Display for ConstraintViolation {
|
5235 6364 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5236 6365 | let message = match self {
|
5237 6366 | Self::Member(index, failing_member) => format!(
|
5238 6367 | "Value at index {index} failed to satisfy constraint. {}",
|
5239 6368 | failing_member
|
5240 6369 | ),
|
5241 6370 | };
|
5242 6371 | write!(f, "{message}")
|
5243 6372 | }
|
5244 6373 | }
|
5245 6374 |
|
5246 6375 | impl ::std::error::Error for ConstraintViolation {}
|
6376 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
5247 6377 | impl ConstraintViolation {
|
5248 6378 | pub(crate) fn as_validation_exception_field(
|
5249 6379 | self,
|
5250 6380 | path: ::std::string::String,
|
5251 6381 | ) -> crate::model::ValidationExceptionField {
|
5252 6382 | match self {
|
5253 6383 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
5254 6384 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
5255 6385 | }
|
5256 6386 | }
|
5257 6387 | }
|
6388 + |
|
6389 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5258 6390 | }
|
5259 - | /// See [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6391 + | /// /* ServerBuilderGenerator.kt:171 */See [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
5260 6392 | pub(crate) mod recursive_shapes_input_output_nested1_internal {
|
5261 6393 |
|
6394 + | /* RustType.kt:516 */
|
5262 6395 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5263 - | /// Holds one variant for each of the ways the builder can fail.
|
6396 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
6397 + | /* RustType.kt:516 */
|
5264 6398 | #[non_exhaustive]
|
6399 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5265 6400 | #[allow(clippy::enum_variant_names)]
|
5266 6401 | pub(crate) enum ConstraintViolation {
|
5267 - | /// `recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`.
|
6402 + | /// /* ServerBuilderConstraintViolations.kt:138 */`recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`.
|
6403 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5268 6404 | MissingRecursiveMember,
|
5269 - | /// Constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested1`.
|
6405 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested1`.
|
6406 + | /* RustType.kt:516 */
|
5270 6407 | #[doc(hidden)]
|
6408 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5271 6409 | RecursiveMember(
|
5272 6410 | ::std::boxed::Box<
|
5273 6411 | crate::model::recursive_shapes_input_output_nested2_internal::ConstraintViolation,
|
5274 6412 | >,
|
5275 6413 | ),
|
6414 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5276 6415 | }
|
6416 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5277 6417 | impl ::std::fmt::Display for ConstraintViolation {
|
6418 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5278 6419 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6420 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5279 6421 | match self {
|
5280 - | ConstraintViolation::MissingRecursiveMember => write!(f, "`recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`"),
|
5281 - | ConstraintViolation::RecursiveMember(_) => write!(f, "constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested1`"),
|
5282 - | }
|
6422 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRecursiveMember => write!(f, "`recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`"),
|
6423 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RecursiveMember(_) => write!(f, "constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested1`"),
|
6424 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
6425 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5283 6426 | }
|
6427 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5284 6428 | }
|
6429 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5285 6430 | impl ::std::error::Error for ConstraintViolation {}
|
6431 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5286 6432 | impl ConstraintViolation {
|
5287 6433 | pub(crate) fn as_validation_exception_field(
|
5288 6434 | self,
|
5289 6435 | path: ::std::string::String,
|
5290 6436 | ) -> crate::model::ValidationExceptionField {
|
5291 6437 | match self {
|
5292 6438 | ConstraintViolation::MissingRecursiveMember => crate::model::ValidationExceptionField {
|
5293 6439 | message: format!("Value at '{}/recursiveMember' failed to satisfy constraint: Member must not be null", path),
|
5294 6440 | path: path + "/recursiveMember",
|
5295 6441 | },
|
5296 6442 | ConstraintViolation::RecursiveMember(inner) => inner.as_validation_exception_field(path + "/recursiveMember"),
|
5297 6443 | }
|
5298 6444 | }
|
5299 6445 | }
|
6446 + | /* ServerBuilderGenerator.kt:244 */
|
5300 6447 | impl ::std::convert::From<Builder>
|
5301 6448 | for crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>
|
5302 6449 | {
|
5303 6450 | fn from(builder: Builder) -> Self {
|
5304 6451 | Self::Unconstrained(builder)
|
5305 6452 | }
|
5306 6453 | }
|
6454 + | /* ServerBuilderGenerator.kt:446 */
|
5307 6455 | impl ::std::convert::TryFrom<Builder> for crate::model::RecursiveShapesInputOutputNested1 {
|
5308 6456 | type Error = ConstraintViolation;
|
5309 6457 |
|
5310 6458 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5311 6459 | builder.build()
|
5312 6460 | }
|
5313 6461 | }
|
5314 - | /// A builder for [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6462 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6463 + | /* RustType.kt:516 */
|
5315 6464 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6465 + | /* ServerBuilderGenerator.kt:211 */
|
5316 6466 | pub(crate) struct Builder {
|
6467 + | /* ServerBuilderGenerator.kt:308 */
|
5317 6468 | pub(crate) recursive_member: ::std::option::Option<
|
5318 6469 | ::std::boxed::Box<
|
5319 6470 | crate::constrained::MaybeConstrained<
|
5320 6471 | crate::model::RecursiveShapesInputOutputNested2,
|
5321 6472 | >,
|
5322 6473 | >,
|
5323 6474 | >,
|
6475 + | /* ServerBuilderGenerator.kt:211 */
|
5324 6476 | }
|
6477 + | /* ServerBuilderGenerator.kt:215 */
|
5325 6478 | impl Builder {
|
6479 + | /* ServerBuilderGenerator.kt:426 */
|
5326 6480 | #[allow(missing_docs)] // documentation missing in model
|
6481 + | /* ServerBuilderGenerator.kt:428 */
|
5327 6482 | pub(crate) fn set_recursive_member(
|
5328 6483 | mut self,
|
5329 6484 | input: impl ::std::convert::Into<
|
5330 6485 | ::std::boxed::Box<
|
5331 6486 | crate::constrained::MaybeConstrained<
|
5332 6487 | crate::model::RecursiveShapesInputOutputNested2,
|
5333 6488 | >,
|
5334 6489 | >,
|
5335 6490 | >,
|
5336 6491 | ) -> Self {
|
6492 + | /* ServerBuilderGenerator.kt:429 */
|
5337 6493 | self.recursive_member = Some(input.into());
|
5338 6494 | self
|
6495 + | /* ServerBuilderGenerator.kt:428 */
|
5339 6496 | }
|
5340 - | /// Consumes the builder and constructs a [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
5341 - | ///
|
6497 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6498 + | /// /* ServerBuilderGenerator.kt:260 */
|
5342 6499 | /// The builder fails to construct a [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1) if a [`ConstraintViolation`] occurs.
|
5343 6500 | ///
|
5344 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6501 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6502 + | /* ServerBuilderGenerator.kt:271 */
|
5345 6503 | pub fn build(
|
5346 6504 | self,
|
5347 6505 | ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
|
5348 6506 | self.build_enforcing_all_constraints()
|
5349 6507 | }
|
6508 + | /* ServerBuilderGenerator.kt:283 */
|
5350 6509 | fn build_enforcing_all_constraints(
|
5351 6510 | self,
|
5352 6511 | ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
|
5353 - | Ok(crate::model::RecursiveShapesInputOutputNested1 {
|
6512 + | /* ServerBuilderGenerator.kt:287 */
|
6513 + | Ok(
|
6514 + | /* ServerBuilderGenerator.kt:542 */
|
6515 + | crate::model::RecursiveShapesInputOutputNested1 {
|
6516 + | /* ServerBuilderGenerator.kt:546 */
|
5354 6517 | recursive_member: self
|
5355 6518 | .recursive_member
|
6519 + | /* ServerBuilderGenerator.kt:592 */
|
5356 6520 | .map(|v| match *v {
|
5357 6521 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(Box::new(x)),
|
5358 6522 | crate::constrained::MaybeConstrained::Unconstrained(x) => {
|
5359 6523 | Ok(Box::new(x.try_into()?))
|
5360 6524 | }
|
5361 6525 | })
|
6526 + | /* ServerBuilderGenerator.kt:614 */
|
5362 6527 | .map(|res| {
|
5363 6528 | res.map_err(Box::new)
|
5364 6529 | .map_err(ConstraintViolation::RecursiveMember)
|
5365 6530 | })
|
5366 6531 | .transpose()?
|
6532 + | /* ServerBuilderGenerator.kt:569 */
|
5367 6533 | .ok_or(ConstraintViolation::MissingRecursiveMember)?,
|
5368 - | })
|
6534 + | /* ServerBuilderGenerator.kt:542 */
|
6535 + | }, /* ServerBuilderGenerator.kt:287 */
|
6536 + | )
|
6537 + | /* ServerBuilderGenerator.kt:283 */
|
5369 6538 | }
|
6539 + | /* ServerBuilderGenerator.kt:215 */
|
5370 6540 | }
|
6541 + |
|
6542 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5371 6543 | }
|
5372 - | /// See [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6544 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
5373 6545 | pub mod recursive_shapes_input_output_nested1 {
|
5374 6546 |
|
6547 + | /* RustType.kt:516 */
|
5375 6548 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5376 - | /// Holds one variant for each of the ways the builder can fail.
|
5377 - |
|
6549 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
6550 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5378 6551 | #[allow(clippy::enum_variant_names)]
|
5379 6552 | pub enum ConstraintViolation {
|
5380 - | /// `recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`.
|
6553 + | /// /* ServerBuilderConstraintViolations.kt:138 */`recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`.
|
6554 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5381 6555 | MissingRecursiveMember,
|
6556 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5382 6557 | }
|
6558 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5383 6559 | impl ::std::fmt::Display for ConstraintViolation {
|
6560 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5384 6561 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6562 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5385 6563 | match self {
|
5386 - | ConstraintViolation::MissingRecursiveMember => write!(f, "`recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`"),
|
5387 - | }
|
6564 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRecursiveMember => write!(f, "`recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`"),
|
6565 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
6566 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5388 6567 | }
|
6568 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5389 6569 | }
|
6570 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5390 6571 | impl ::std::error::Error for ConstraintViolation {}
|
6572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
5391 6573 | impl ::std::convert::TryFrom<Builder> for crate::model::RecursiveShapesInputOutputNested1 {
|
5392 6574 | type Error = ConstraintViolation;
|
5393 6575 |
|
5394 6576 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5395 6577 | builder.build()
|
5396 6578 | }
|
5397 6579 | }
|
5398 - | /// A builder for [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6580 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6581 + | /* RustType.kt:516 */
|
5399 6582 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6583 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
5400 6584 | pub struct Builder {
|
6585 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5401 6586 | pub(crate) recursive_member: ::std::option::Option<
|
5402 6587 | ::std::boxed::Box<crate::model::RecursiveShapesInputOutputNested2>,
|
5403 6588 | >,
|
6589 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
5404 6590 | }
|
6591 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
5405 6592 | impl Builder {
|
6593 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5406 6594 | #[allow(missing_docs)] // documentation missing in model
|
6595 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5407 6596 | pub fn recursive_member(
|
5408 6597 | mut self,
|
5409 6598 | input: ::std::boxed::Box<crate::model::RecursiveShapesInputOutputNested2>,
|
5410 6599 | ) -> Self {
|
5411 - | self.recursive_member = Some(input);
|
6600 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6601 + | self.recursive_member =
|
6602 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
6603 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6604 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
6605 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5412 6606 | self
|
6607 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5413 6608 | }
|
5414 - | /// Consumes the builder and constructs a [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
5415 - | ///
|
6609 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6610 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
5416 6611 | /// The builder fails to construct a [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1) if you do not provide a value for all non-`Option`al members.
|
5417 6612 | ///
|
6613 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
5418 6614 | pub fn build(
|
5419 6615 | self,
|
5420 6616 | ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
|
5421 6617 | self.build_enforcing_required_and_enum_traits()
|
5422 6618 | }
|
6619 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
5423 6620 | fn build_enforcing_required_and_enum_traits(
|
5424 6621 | self,
|
5425 6622 | ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
|
5426 - | Ok(crate::model::RecursiveShapesInputOutputNested1 {
|
6623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
6624 + | Ok(
|
6625 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
6626 + | crate::model::RecursiveShapesInputOutputNested1 {
|
6627 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5427 6628 | recursive_member: self
|
5428 6629 | .recursive_member
|
6630 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
5429 6631 | .ok_or(ConstraintViolation::MissingRecursiveMember)?,
|
5430 - | })
|
6632 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
6633 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
6634 + | )
|
6635 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
5431 6636 | }
|
6637 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
5432 6638 | }
|
6639 + |
|
6640 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5433 6641 | }
|
5434 - | /// See [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
6642 + | /// /* ServerBuilderGenerator.kt:171 */See [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
5435 6643 | pub(crate) mod recursive_shapes_input_output_nested2_internal {
|
5436 6644 |
|
6645 + | /* RustType.kt:516 */
|
5437 6646 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5438 - | /// Holds one variant for each of the ways the builder can fail.
|
6647 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
6648 + | /* RustType.kt:516 */
|
5439 6649 | #[non_exhaustive]
|
6650 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5440 6651 | #[allow(clippy::enum_variant_names)]
|
5441 6652 | pub(crate) enum ConstraintViolation {
|
5442 - | /// Constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested2`.
|
6653 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested2`.
|
6654 + | /* RustType.kt:516 */
|
5443 6655 | #[doc(hidden)]
|
6656 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5444 6657 | RecursiveMember(
|
5445 6658 | crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation,
|
5446 6659 | ),
|
6660 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5447 6661 | }
|
6662 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5448 6663 | impl ::std::fmt::Display for ConstraintViolation {
|
6664 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5449 6665 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6666 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5450 6667 | match self {
|
5451 - | ConstraintViolation::RecursiveMember(_) => write!(f, "constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested2`"),
|
5452 - | }
|
6668 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RecursiveMember(_) => write!(f, "constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested2`"),
|
6669 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
6670 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5453 6671 | }
|
6672 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5454 6673 | }
|
6674 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5455 6675 | impl ::std::error::Error for ConstraintViolation {}
|
6676 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5456 6677 | impl ConstraintViolation {
|
5457 6678 | pub(crate) fn as_validation_exception_field(
|
5458 6679 | self,
|
5459 6680 | path: ::std::string::String,
|
5460 6681 | ) -> crate::model::ValidationExceptionField {
|
5461 6682 | match self {
|
5462 6683 | ConstraintViolation::RecursiveMember(inner) => {
|
5463 6684 | inner.as_validation_exception_field(path + "/recursiveMember")
|
5464 6685 | }
|
5465 6686 | }
|
5466 6687 | }
|
5467 6688 | }
|
6689 + | /* ServerBuilderGenerator.kt:244 */
|
5468 6690 | impl ::std::convert::From<Builder>
|
5469 6691 | for crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested2>
|
5470 6692 | {
|
5471 6693 | fn from(builder: Builder) -> Self {
|
5472 6694 | Self::Unconstrained(builder)
|
5473 6695 | }
|
5474 6696 | }
|
6697 + | /* ServerBuilderGenerator.kt:446 */
|
5475 6698 | impl ::std::convert::TryFrom<Builder> for crate::model::RecursiveShapesInputOutputNested2 {
|
5476 6699 | type Error = ConstraintViolation;
|
5477 6700 |
|
5478 6701 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5479 6702 | builder.build()
|
5480 6703 | }
|
5481 6704 | }
|
5482 - | /// A builder for [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
6705 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
6706 + | /* RustType.kt:516 */
|
5483 6707 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6708 + | /* ServerBuilderGenerator.kt:211 */
|
5484 6709 | pub(crate) struct Builder {
|
6710 + | /* ServerBuilderGenerator.kt:308 */
|
5485 6711 | pub(crate) recursive_member: ::std::option::Option<
|
5486 6712 | crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
|
5487 6713 | >,
|
6714 + | /* ServerBuilderGenerator.kt:211 */
|
5488 6715 | }
|
6716 + | /* ServerBuilderGenerator.kt:215 */
|
5489 6717 | impl Builder {
|
6718 + | /* ServerBuilderGenerator.kt:426 */
|
5490 6719 | #[allow(missing_docs)] // documentation missing in model
|
6720 + | /* ServerBuilderGenerator.kt:428 */
|
5491 6721 | pub(crate) fn set_recursive_member(
|
5492 6722 | mut self,
|
5493 6723 | input: Option<
|
5494 6724 | impl ::std::convert::Into<
|
5495 6725 | crate::constrained::MaybeConstrained<
|
5496 6726 | crate::model::RecursiveShapesInputOutputNested1,
|
5497 6727 | >,
|
5498 6728 | >,
|
5499 6729 | >,
|
5500 6730 | ) -> Self {
|
6731 + | /* ServerBuilderGenerator.kt:429 */
|
5501 6732 | self.recursive_member = input.map(|v| v.into());
|
5502 6733 | self
|
6734 + | /* ServerBuilderGenerator.kt:428 */
|
5503 6735 | }
|
5504 - | /// Consumes the builder and constructs a [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
5505 - | ///
|
6736 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
6737 + | /// /* ServerBuilderGenerator.kt:260 */
|
5506 6738 | /// The builder fails to construct a [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2) if a [`ConstraintViolation`] occurs.
|
5507 6739 | ///
|
6740 + | /* ServerBuilderGenerator.kt:271 */
|
5508 6741 | pub fn build(
|
5509 6742 | self,
|
5510 6743 | ) -> Result<crate::model::RecursiveShapesInputOutputNested2, ConstraintViolation> {
|
5511 6744 | self.build_enforcing_all_constraints()
|
5512 6745 | }
|
6746 + | /* ServerBuilderGenerator.kt:283 */
|
5513 6747 | fn build_enforcing_all_constraints(
|
5514 6748 | self,
|
5515 6749 | ) -> Result<crate::model::RecursiveShapesInputOutputNested2, ConstraintViolation> {
|
5516 - | Ok(crate::model::RecursiveShapesInputOutputNested2 {
|
6750 + | /* ServerBuilderGenerator.kt:287 */
|
6751 + | Ok(
|
6752 + | /* ServerBuilderGenerator.kt:542 */
|
6753 + | crate::model::RecursiveShapesInputOutputNested2 {
|
6754 + | /* ServerBuilderGenerator.kt:546 */
|
5517 6755 | recursive_member: self
|
5518 6756 | .recursive_member
|
6757 + | /* ServerBuilderGenerator.kt:602 */
|
5519 6758 | .map(|v| match v {
|
5520 6759 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5521 6760 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5522 6761 | })
|
6762 + | /* ServerBuilderGenerator.kt:614 */
|
5523 6763 | .map(|res| res.map_err(ConstraintViolation::RecursiveMember))
|
5524 6764 | .transpose()?,
|
5525 - | })
|
6765 + | /* ServerBuilderGenerator.kt:542 */
|
6766 + | }, /* ServerBuilderGenerator.kt:287 */
|
6767 + | )
|
6768 + | /* ServerBuilderGenerator.kt:283 */
|
5526 6769 | }
|
6770 + | /* ServerBuilderGenerator.kt:215 */
|
5527 6771 | }
|
6772 + |
|
6773 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5528 6774 | }
|
5529 - | /// See [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
6775 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
5530 6776 | pub mod recursive_shapes_input_output_nested2 {
|
5531 6777 |
|
6778 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
5532 6779 | impl ::std::convert::From<Builder> for crate::model::RecursiveShapesInputOutputNested2 {
|
5533 6780 | fn from(builder: Builder) -> Self {
|
5534 6781 | builder.build()
|
5535 6782 | }
|
5536 6783 | }
|
5537 - | /// A builder for [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
6784 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
6785 + | /* RustType.kt:516 */
|
5538 6786 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6787 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
5539 6788 | pub struct Builder {
|
6789 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5540 6790 | pub(crate) recursive_member:
|
5541 6791 | ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
6792 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
5542 6793 | }
|
6794 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
5543 6795 | impl Builder {
|
6796 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5544 6797 | #[allow(missing_docs)] // documentation missing in model
|
6798 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5545 6799 | pub fn recursive_member(
|
5546 6800 | mut self,
|
5547 6801 | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
5548 6802 | ) -> Self {
|
5549 - | self.recursive_member = input;
|
6803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6804 + | self.recursive_member =
|
6805 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6806 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5550 6807 | self
|
6808 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5551 6809 | }
|
5552 - | /// Consumes the builder and constructs a [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
6810 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
|
6811 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
5553 6812 | pub fn build(self) -> crate::model::RecursiveShapesInputOutputNested2 {
|
5554 6813 | self.build_enforcing_required_and_enum_traits()
|
5555 6814 | }
|
6815 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
5556 6816 | fn build_enforcing_required_and_enum_traits(
|
5557 6817 | self,
|
5558 6818 | ) -> crate::model::RecursiveShapesInputOutputNested2 {
|
6819 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
5559 6820 | crate::model::RecursiveShapesInputOutputNested2 {
|
6821 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5560 6822 | recursive_member: self.recursive_member,
|
6823 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
5561 6824 | }
|
6825 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
5562 6826 | }
|
6827 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
5563 6828 | }
|
6829 + |
|
6830 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5564 6831 | }
|
5565 - | /// See [`ConA`](crate::model::ConA).
|
6832 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConA`](crate::model::ConA).
|
5566 6833 | pub(crate) mod con_a_internal {
|
5567 6834 |
|
6835 + | /* RustType.kt:516 */
|
5568 6836 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5569 - | /// Holds one variant for each of the ways the builder can fail.
|
6837 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
6838 + | /* RustType.kt:516 */
|
5570 6839 | #[non_exhaustive]
|
6840 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5571 6841 | #[allow(clippy::enum_variant_names)]
|
5572 6842 | pub(crate) enum ConstraintViolation {
|
5573 - | /// `con_b` was not provided but it is required when building `ConA`.
|
6843 + | /// /* ServerBuilderConstraintViolations.kt:138 */`con_b` was not provided but it is required when building `ConA`.
|
6844 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5574 6845 | MissingConB,
|
5575 - | /// Constraint violation occurred building member `con_b` when building `ConA`.
|
6846 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `con_b` when building `ConA`.
|
6847 + | /* RustType.kt:516 */
|
5576 6848 | #[doc(hidden)]
|
6849 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5577 6850 | ConB(crate::model::con_b_internal::ConstraintViolation),
|
5578 - | /// Constraint violation occurred building member `opt_con_b` when building `ConA`.
|
6851 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `opt_con_b` when building `ConA`.
|
6852 + | /* RustType.kt:516 */
|
5579 6853 | #[doc(hidden)]
|
6854 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5580 6855 | OptConB(crate::model::con_b_internal::ConstraintViolation),
|
5581 - | /// Constraint violation occurred building member `length_string` when building `ConA`.
|
6856 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string` when building `ConA`.
|
6857 + | /* RustType.kt:516 */
|
5582 6858 | #[doc(hidden)]
|
6859 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5583 6860 | LengthString(crate::model::length_string_internal::ConstraintViolation),
|
5584 - | /// Constraint violation occurred building member `min_length_string` when building `ConA`.
|
6861 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `min_length_string` when building `ConA`.
|
6862 + | /* RustType.kt:516 */
|
5585 6863 | #[doc(hidden)]
|
6864 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5586 6865 | MinLengthString(crate::model::min_length_string_internal::ConstraintViolation),
|
5587 - | /// Constraint violation occurred building member `max_length_string` when building `ConA`.
|
6866 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `max_length_string` when building `ConA`.
|
6867 + | /* RustType.kt:516 */
|
5588 6868 | #[doc(hidden)]
|
6869 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5589 6870 | MaxLengthString(crate::model::max_length_string_internal::ConstraintViolation),
|
5590 - | /// Constraint violation occurred building member `fixed_length_string` when building `ConA`.
|
6871 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `fixed_length_string` when building `ConA`.
|
6872 + | /* RustType.kt:516 */
|
5591 6873 | #[doc(hidden)]
|
6874 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5592 6875 | FixedLengthString(crate::model::fixed_length_string_internal::ConstraintViolation),
|
5593 - | /// Constraint violation occurred building member `length_blob` when building `ConA`.
|
6876 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_blob` when building `ConA`.
|
6877 + | /* RustType.kt:516 */
|
5594 6878 | #[doc(hidden)]
|
6879 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5595 6880 | LengthBlob(crate::model::length_blob_internal::ConstraintViolation),
|
5596 - | /// Constraint violation occurred building member `min_length_blob` when building `ConA`.
|
6881 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `min_length_blob` when building `ConA`.
|
6882 + | /* RustType.kt:516 */
|
5597 6883 | #[doc(hidden)]
|
6884 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5598 6885 | MinLengthBlob(crate::model::min_length_blob_internal::ConstraintViolation),
|
5599 - | /// Constraint violation occurred building member `max_length_blob` when building `ConA`.
|
6886 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `max_length_blob` when building `ConA`.
|
6887 + | /* RustType.kt:516 */
|
5600 6888 | #[doc(hidden)]
|
6889 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5601 6890 | MaxLengthBlob(crate::model::max_length_blob_internal::ConstraintViolation),
|
5602 - | /// Constraint violation occurred building member `fixed_length_blob` when building `ConA`.
|
6891 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `fixed_length_blob` when building `ConA`.
|
6892 + | /* RustType.kt:516 */
|
5603 6893 | #[doc(hidden)]
|
6894 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5604 6895 | FixedLengthBlob(crate::model::fixed_length_blob_internal::ConstraintViolation),
|
5605 - | /// Constraint violation occurred building member `range_integer` when building `ConA`.
|
6896 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer` when building `ConA`.
|
6897 + | /* RustType.kt:516 */
|
5606 6898 | #[doc(hidden)]
|
6899 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5607 6900 | RangeInteger(crate::model::range_integer_internal::ConstraintViolation),
|
5608 - | /// Constraint violation occurred building member `min_range_integer` when building `ConA`.
|
6901 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `min_range_integer` when building `ConA`.
|
6902 + | /* RustType.kt:516 */
|
5609 6903 | #[doc(hidden)]
|
6904 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5610 6905 | MinRangeInteger(crate::model::min_range_integer_internal::ConstraintViolation),
|
5611 - | /// Constraint violation occurred building member `max_range_integer` when building `ConA`.
|
6906 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `max_range_integer` when building `ConA`.
|
6907 + | /* RustType.kt:516 */
|
5612 6908 | #[doc(hidden)]
|
6909 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5613 6910 | MaxRangeInteger(crate::model::max_range_integer_internal::ConstraintViolation),
|
5614 - | /// Constraint violation occurred building member `fixed_value_integer` when building `ConA`.
|
6911 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `fixed_value_integer` when building `ConA`.
|
6912 + | /* RustType.kt:516 */
|
5615 6913 | #[doc(hidden)]
|
6914 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5616 6915 | FixedValueInteger(crate::model::fixed_value_integer_internal::ConstraintViolation),
|
5617 - | /// Constraint violation occurred building member `range_short` when building `ConA`.
|
6916 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short` when building `ConA`.
|
6917 + | /* RustType.kt:516 */
|
5618 6918 | #[doc(hidden)]
|
6919 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5619 6920 | RangeShort(crate::model::range_short_internal::ConstraintViolation),
|
5620 - | /// Constraint violation occurred building member `min_range_short` when building `ConA`.
|
6921 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `min_range_short` when building `ConA`.
|
6922 + | /* RustType.kt:516 */
|
5621 6923 | #[doc(hidden)]
|
6924 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5622 6925 | MinRangeShort(crate::model::min_range_short_internal::ConstraintViolation),
|
5623 - | /// Constraint violation occurred building member `max_range_short` when building `ConA`.
|
6926 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `max_range_short` when building `ConA`.
|
6927 + | /* RustType.kt:516 */
|
5624 6928 | #[doc(hidden)]
|
6929 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5625 6930 | MaxRangeShort(crate::model::max_range_short_internal::ConstraintViolation),
|
5626 - | /// Constraint violation occurred building member `fixed_value_short` when building `ConA`.
|
6931 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `fixed_value_short` when building `ConA`.
|
6932 + | /* RustType.kt:516 */
|
5627 6933 | #[doc(hidden)]
|
6934 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5628 6935 | FixedValueShort(crate::model::fixed_value_short_internal::ConstraintViolation),
|
5629 - | /// Constraint violation occurred building member `range_long` when building `ConA`.
|
6936 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long` when building `ConA`.
|
6937 + | /* RustType.kt:516 */
|
5630 6938 | #[doc(hidden)]
|
6939 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5631 6940 | RangeLong(crate::model::range_long_internal::ConstraintViolation),
|
5632 - | /// Constraint violation occurred building member `min_range_long` when building `ConA`.
|
6941 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `min_range_long` when building `ConA`.
|
6942 + | /* RustType.kt:516 */
|
5633 6943 | #[doc(hidden)]
|
6944 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5634 6945 | MinRangeLong(crate::model::min_range_long_internal::ConstraintViolation),
|
5635 - | /// Constraint violation occurred building member `max_range_long` when building `ConA`.
|
6946 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `max_range_long` when building `ConA`.
|
6947 + | /* RustType.kt:516 */
|
5636 6948 | #[doc(hidden)]
|
6949 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5637 6950 | MaxRangeLong(crate::model::max_range_long_internal::ConstraintViolation),
|
5638 - | /// Constraint violation occurred building member `fixed_value_long` when building `ConA`.
|
6951 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `fixed_value_long` when building `ConA`.
|
6952 + | /* RustType.kt:516 */
|
5639 6953 | #[doc(hidden)]
|
6954 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5640 6955 | FixedValueLong(crate::model::fixed_value_long_internal::ConstraintViolation),
|
5641 - | /// Constraint violation occurred building member `range_byte` when building `ConA`.
|
6956 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte` when building `ConA`.
|
6957 + | /* RustType.kt:516 */
|
5642 6958 | #[doc(hidden)]
|
6959 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5643 6960 | RangeByte(crate::model::range_byte_internal::ConstraintViolation),
|
5644 - | /// Constraint violation occurred building member `min_range_byte` when building `ConA`.
|
6961 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `min_range_byte` when building `ConA`.
|
6962 + | /* RustType.kt:516 */
|
5645 6963 | #[doc(hidden)]
|
6964 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5646 6965 | MinRangeByte(crate::model::min_range_byte_internal::ConstraintViolation),
|
5647 - | /// Constraint violation occurred building member `max_range_byte` when building `ConA`.
|
6966 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `max_range_byte` when building `ConA`.
|
6967 + | /* RustType.kt:516 */
|
5648 6968 | #[doc(hidden)]
|
6969 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5649 6970 | MaxRangeByte(crate::model::max_range_byte_internal::ConstraintViolation),
|
5650 - | /// Constraint violation occurred building member `fixed_value_byte` when building `ConA`.
|
6971 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `fixed_value_byte` when building `ConA`.
|
6972 + | /* RustType.kt:516 */
|
5651 6973 | #[doc(hidden)]
|
6974 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5652 6975 | FixedValueByte(crate::model::fixed_value_byte_internal::ConstraintViolation),
|
5653 - | /// Constraint violation occurred building member `con_b_list` when building `ConA`.
|
6976 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `con_b_list` when building `ConA`.
|
6977 + | /* RustType.kt:516 */
|
5654 6978 | #[doc(hidden)]
|
6979 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5655 6980 | ConBList(crate::model::con_b_list_internal::ConstraintViolation),
|
5656 - | /// Constraint violation occurred building member `length_list` when building `ConA`.
|
6981 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_list` when building `ConA`.
|
6982 + | /* RustType.kt:516 */
|
5657 6983 | #[doc(hidden)]
|
6984 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5658 6985 | LengthList(crate::model::length_list_internal::ConstraintViolation),
|
5659 - | /// Constraint violation occurred building member `sensitive_length_list` when building `ConA`.
|
6986 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `sensitive_length_list` when building `ConA`.
|
6987 + | /* RustType.kt:516 */
|
5660 6988 | #[doc(hidden)]
|
6989 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5661 6990 | SensitiveLengthList(crate::model::sensitive_length_list_internal::ConstraintViolation),
|
5662 - | /// Constraint violation occurred building member `con_b_set` when building `ConA`.
|
6991 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `con_b_set` when building `ConA`.
|
6992 + | /* RustType.kt:516 */
|
5663 6993 | #[doc(hidden)]
|
6994 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5664 6995 | ConBSet(crate::model::con_b_set_internal::ConstraintViolation),
|
5665 - | /// Constraint violation occurred building member `con_b_map` when building `ConA`.
|
6996 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `con_b_map` when building `ConA`.
|
6997 + | /* RustType.kt:516 */
|
5666 6998 | #[doc(hidden)]
|
6999 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5667 7000 | ConBMap(crate::model::con_b_map_internal::ConstraintViolation),
|
5668 - | /// Constraint violation occurred building member `length_map` when building `ConA`.
|
7001 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_map` when building `ConA`.
|
7002 + | /* RustType.kt:516 */
|
5669 7003 | #[doc(hidden)]
|
7004 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5670 7005 | LengthMap(crate::model::length_map_internal::ConstraintViolation),
|
5671 - | /// Constraint violation occurred building member `map_of_map_of_list_of_list_of_con_b` when building `ConA`.
|
7006 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_map_of_list_of_list_of_con_b` when building `ConA`.
|
7007 + | /* RustType.kt:516 */
|
5672 7008 | #[doc(hidden)]
|
7009 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5673 7010 | MapOfMapOfListOfListOfConB(
|
5674 7011 | crate::model::map_of_map_of_list_of_list_of_con_b_internal::ConstraintViolation,
|
5675 7012 | ),
|
5676 - | /// Constraint violation occurred building member `sparse_map` when building `ConA`.
|
7013 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `sparse_map` when building `ConA`.
|
7014 + | /* RustType.kt:516 */
|
5677 7015 | #[doc(hidden)]
|
7016 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5678 7017 | SparseMap(crate::model::sparse_map_internal::ConstraintViolation),
|
5679 - | /// Constraint violation occurred building member `sparse_list` when building `ConA`.
|
7018 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `sparse_list` when building `ConA`.
|
7019 + | /* RustType.kt:516 */
|
5680 7020 | #[doc(hidden)]
|
7021 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5681 7022 | SparseList(crate::model::sparse_list_internal::ConstraintViolation),
|
5682 - | /// Constraint violation occurred building member `sparse_length_map` when building `ConA`.
|
7023 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `sparse_length_map` when building `ConA`.
|
7024 + | /* RustType.kt:516 */
|
5683 7025 | #[doc(hidden)]
|
7026 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5684 7027 | SparseLengthMap(crate::model::sparse_length_map_internal::ConstraintViolation),
|
5685 - | /// Constraint violation occurred building member `sparse_length_list` when building `ConA`.
|
7028 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `sparse_length_list` when building `ConA`.
|
7029 + | /* RustType.kt:516 */
|
5686 7030 | #[doc(hidden)]
|
7031 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5687 7032 | SparseLengthList(crate::model::sparse_length_list_internal::ConstraintViolation),
|
5688 - | /// Constraint violation occurred building member `constrained_union` when building `ConA`.
|
7033 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `constrained_union` when building `ConA`.
|
7034 + | /* RustType.kt:516 */
|
5689 7035 | #[doc(hidden)]
|
7036 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5690 7037 | ConstrainedUnion(crate::model::constrained_union_internal::ConstraintViolation),
|
5691 - | /// Constraint violation occurred building member `enum_string` when building `ConA`.
|
7038 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_string` when building `ConA`.
|
7039 + | /* RustType.kt:516 */
|
5692 7040 | #[doc(hidden)]
|
7041 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5693 7042 | EnumString(crate::model::enum_string_internal::ConstraintViolation),
|
5694 - | /// Constraint violation occurred building member `list_of_length_string` when building `ConA`.
|
7043 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_of_length_string` when building `ConA`.
|
7044 + | /* RustType.kt:516 */
|
5695 7045 | #[doc(hidden)]
|
7046 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5696 7047 | ListOfLengthString(crate::model::list_of_length_string_internal::ConstraintViolation),
|
5697 - | /// Constraint violation occurred building member `set_of_length_string` when building `ConA`.
|
7048 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `set_of_length_string` when building `ConA`.
|
7049 + | /* RustType.kt:516 */
|
5698 7050 | #[doc(hidden)]
|
7051 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5699 7052 | SetOfLengthString(crate::model::set_of_length_string_internal::ConstraintViolation),
|
5700 - | /// Constraint violation occurred building member `map_of_length_string` when building `ConA`.
|
7053 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_string` when building `ConA`.
|
7054 + | /* RustType.kt:516 */
|
5701 7055 | #[doc(hidden)]
|
7056 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5702 7057 | MapOfLengthString(crate::model::map_of_length_string_internal::ConstraintViolation),
|
5703 - | /// Constraint violation occurred building member `list_of_length_blob` when building `ConA`.
|
7058 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_of_length_blob` when building `ConA`.
|
7059 + | /* RustType.kt:516 */
|
5704 7060 | #[doc(hidden)]
|
7061 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5705 7062 | ListOfLengthBlob(crate::model::list_of_length_blob_internal::ConstraintViolation),
|
5706 - | /// Constraint violation occurred building member `map_of_length_blob` when building `ConA`.
|
7063 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_blob` when building `ConA`.
|
7064 + | /* RustType.kt:516 */
|
5707 7065 | #[doc(hidden)]
|
7066 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5708 7067 | MapOfLengthBlob(crate::model::map_of_length_blob_internal::ConstraintViolation),
|
5709 - | /// Constraint violation occurred building member `list_of_range_integer` when building `ConA`.
|
7068 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_of_range_integer` when building `ConA`.
|
7069 + | /* RustType.kt:516 */
|
5710 7070 | #[doc(hidden)]
|
7071 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5711 7072 | ListOfRangeInteger(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
5712 - | /// Constraint violation occurred building member `set_of_range_integer` when building `ConA`.
|
7073 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `set_of_range_integer` when building `ConA`.
|
7074 + | /* RustType.kt:516 */
|
5713 7075 | #[doc(hidden)]
|
7076 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5714 7077 | SetOfRangeInteger(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
5715 - | /// Constraint violation occurred building member `map_of_range_integer` when building `ConA`.
|
7078 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_range_integer` when building `ConA`.
|
7079 + | /* RustType.kt:516 */
|
5716 7080 | #[doc(hidden)]
|
7081 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5717 7082 | MapOfRangeInteger(crate::model::map_of_range_integer_internal::ConstraintViolation),
|
5718 - | /// Constraint violation occurred building member `list_of_range_short` when building `ConA`.
|
7083 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_of_range_short` when building `ConA`.
|
7084 + | /* RustType.kt:516 */
|
5719 7085 | #[doc(hidden)]
|
7086 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5720 7087 | ListOfRangeShort(crate::model::list_of_range_short_internal::ConstraintViolation),
|
5721 - | /// Constraint violation occurred building member `set_of_range_short` when building `ConA`.
|
7088 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `set_of_range_short` when building `ConA`.
|
7089 + | /* RustType.kt:516 */
|
5722 7090 | #[doc(hidden)]
|
7091 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5723 7092 | SetOfRangeShort(crate::model::set_of_range_short_internal::ConstraintViolation),
|
5724 - | /// Constraint violation occurred building member `map_of_range_short` when building `ConA`.
|
7093 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_range_short` when building `ConA`.
|
7094 + | /* RustType.kt:516 */
|
5725 7095 | #[doc(hidden)]
|
7096 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5726 7097 | MapOfRangeShort(crate::model::map_of_range_short_internal::ConstraintViolation),
|
5727 - | /// Constraint violation occurred building member `list_of_range_long` when building `ConA`.
|
7098 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_of_range_long` when building `ConA`.
|
7099 + | /* RustType.kt:516 */
|
5728 7100 | #[doc(hidden)]
|
7101 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5729 7102 | ListOfRangeLong(crate::model::list_of_range_long_internal::ConstraintViolation),
|
5730 - | /// Constraint violation occurred building member `set_of_range_long` when building `ConA`.
|
7103 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `set_of_range_long` when building `ConA`.
|
7104 + | /* RustType.kt:516 */
|
5731 7105 | #[doc(hidden)]
|
7106 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5732 7107 | SetOfRangeLong(crate::model::set_of_range_long_internal::ConstraintViolation),
|
5733 - | /// Constraint violation occurred building member `map_of_range_long` when building `ConA`.
|
7108 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_range_long` when building `ConA`.
|
7109 + | /* RustType.kt:516 */
|
5734 7110 | #[doc(hidden)]
|
7111 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5735 7112 | MapOfRangeLong(crate::model::map_of_range_long_internal::ConstraintViolation),
|
5736 - | /// Constraint violation occurred building member `list_of_range_byte` when building `ConA`.
|
7113 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_of_range_byte` when building `ConA`.
|
7114 + | /* RustType.kt:516 */
|
5737 7115 | #[doc(hidden)]
|
7116 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5738 7117 | ListOfRangeByte(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
5739 - | /// Constraint violation occurred building member `set_of_range_byte` when building `ConA`.
|
7118 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `set_of_range_byte` when building `ConA`.
|
7119 + | /* RustType.kt:516 */
|
5740 7120 | #[doc(hidden)]
|
7121 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5741 7122 | SetOfRangeByte(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
5742 - | /// Constraint violation occurred building member `map_of_range_byte` when building `ConA`.
|
7123 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_range_byte` when building `ConA`.
|
7124 + | /* RustType.kt:516 */
|
5743 7125 | #[doc(hidden)]
|
7126 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5744 7127 | MapOfRangeByte(crate::model::map_of_range_byte_internal::ConstraintViolation),
|
5745 - | /// Constraint violation occurred building member `pattern_string` when building `ConA`.
|
7128 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `pattern_string` when building `ConA`.
|
7129 + | /* RustType.kt:516 */
|
5746 7130 | #[doc(hidden)]
|
7131 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5747 7132 | PatternString(crate::model::pattern_string_internal::ConstraintViolation),
|
5748 - | /// Constraint violation occurred building member `map_of_pattern_string` when building `ConA`.
|
7133 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_pattern_string` when building `ConA`.
|
7134 + | /* RustType.kt:516 */
|
5749 7135 | #[doc(hidden)]
|
7136 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5750 7137 | MapOfPatternString(crate::model::map_of_pattern_string_internal::ConstraintViolation),
|
5751 - | /// Constraint violation occurred building member `list_of_pattern_string` when building `ConA`.
|
7138 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_of_pattern_string` when building `ConA`.
|
7139 + | /* RustType.kt:516 */
|
5752 7140 | #[doc(hidden)]
|
7141 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5753 7142 | ListOfPatternString(crate::model::list_of_pattern_string_internal::ConstraintViolation),
|
5754 - | /// Constraint violation occurred building member `set_of_pattern_string` when building `ConA`.
|
7143 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `set_of_pattern_string` when building `ConA`.
|
7144 + | /* RustType.kt:516 */
|
5755 7145 | #[doc(hidden)]
|
7146 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5756 7147 | SetOfPatternString(crate::model::set_of_pattern_string_internal::ConstraintViolation),
|
5757 - | /// Constraint violation occurred building member `length_length_pattern_string` when building `ConA`.
|
7148 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_length_pattern_string` when building `ConA`.
|
7149 + | /* RustType.kt:516 */
|
5758 7150 | #[doc(hidden)]
|
7151 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5759 7152 | LengthLengthPatternString(
|
5760 7153 | crate::model::length_pattern_string_internal::ConstraintViolation,
|
5761 7154 | ),
|
5762 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `ConA`.
|
7155 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_pattern_string` when building `ConA`.
|
7156 + | /* RustType.kt:516 */
|
5763 7157 | #[doc(hidden)]
|
7158 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5764 7159 | MapOfLengthPatternString(
|
5765 7160 | crate::model::map_of_length_pattern_string_internal::ConstraintViolation,
|
5766 7161 | ),
|
5767 - | /// Constraint violation occurred building member `list_of_length_pattern_string` when building `ConA`.
|
7162 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_of_length_pattern_string` when building `ConA`.
|
7163 + | /* RustType.kt:516 */
|
5768 7164 | #[doc(hidden)]
|
7165 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5769 7166 | ListOfLengthPatternString(
|
5770 7167 | crate::model::list_of_length_pattern_string_internal::ConstraintViolation,
|
5771 7168 | ),
|
5772 - | /// Constraint violation occurred building member `set_of_length_pattern_string` when building `ConA`.
|
7169 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `set_of_length_pattern_string` when building `ConA`.
|
7170 + | /* RustType.kt:516 */
|
5773 7171 | #[doc(hidden)]
|
7172 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5774 7173 | SetOfLengthPatternString(
|
5775 7174 | crate::model::set_of_length_pattern_string_internal::ConstraintViolation,
|
5776 7175 | ),
|
5777 - | /// Constraint violation occurred building member `length_list_of_pattern_string` when building `ConA`.
|
7176 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_list_of_pattern_string` when building `ConA`.
|
7177 + | /* RustType.kt:516 */
|
5778 7178 | #[doc(hidden)]
|
7179 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5779 7180 | LengthListOfPatternString(
|
5780 7181 | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
5781 7182 | ),
|
5782 - | /// Constraint violation occurred building member `length_set_of_pattern_string` when building `ConA`.
|
7183 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_set_of_pattern_string` when building `ConA`.
|
7184 + | /* RustType.kt:516 */
|
5783 7185 | #[doc(hidden)]
|
7186 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5784 7187 | LengthSetOfPatternString(
|
5785 7188 | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
5786 7189 | ),
|
7190 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5787 7191 | }
|
7192 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5788 7193 | impl ::std::fmt::Display for ConstraintViolation {
|
7194 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5789 7195 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7196 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5790 7197 | match self {
|
5791 - | ConstraintViolation::MissingConB => write!(f, "`con_b` was not provided but it is required when building `ConA`"),
|
5792 - | ConstraintViolation::ConB(_) => write!(f, "constraint violation occurred building member `con_b` when building `ConA`"),
|
5793 - | ConstraintViolation::OptConB(_) => write!(f, "constraint violation occurred building member `opt_con_b` when building `ConA`"),
|
5794 - | ConstraintViolation::LengthString(_) => write!(f, "constraint violation occurred building member `length_string` when building `ConA`"),
|
5795 - | ConstraintViolation::MinLengthString(_) => write!(f, "constraint violation occurred building member `min_length_string` when building `ConA`"),
|
5796 - | ConstraintViolation::MaxLengthString(_) => write!(f, "constraint violation occurred building member `max_length_string` when building `ConA`"),
|
5797 - | ConstraintViolation::FixedLengthString(_) => write!(f, "constraint violation occurred building member `fixed_length_string` when building `ConA`"),
|
5798 - | ConstraintViolation::LengthBlob(_) => write!(f, "constraint violation occurred building member `length_blob` when building `ConA`"),
|
5799 - | ConstraintViolation::MinLengthBlob(_) => write!(f, "constraint violation occurred building member `min_length_blob` when building `ConA`"),
|
5800 - | ConstraintViolation::MaxLengthBlob(_) => write!(f, "constraint violation occurred building member `max_length_blob` when building `ConA`"),
|
5801 - | ConstraintViolation::FixedLengthBlob(_) => write!(f, "constraint violation occurred building member `fixed_length_blob` when building `ConA`"),
|
5802 - | ConstraintViolation::RangeInteger(_) => write!(f, "constraint violation occurred building member `range_integer` when building `ConA`"),
|
5803 - | ConstraintViolation::MinRangeInteger(_) => write!(f, "constraint violation occurred building member `min_range_integer` when building `ConA`"),
|
5804 - | ConstraintViolation::MaxRangeInteger(_) => write!(f, "constraint violation occurred building member `max_range_integer` when building `ConA`"),
|
5805 - | ConstraintViolation::FixedValueInteger(_) => write!(f, "constraint violation occurred building member `fixed_value_integer` when building `ConA`"),
|
5806 - | ConstraintViolation::RangeShort(_) => write!(f, "constraint violation occurred building member `range_short` when building `ConA`"),
|
5807 - | ConstraintViolation::MinRangeShort(_) => write!(f, "constraint violation occurred building member `min_range_short` when building `ConA`"),
|
5808 - | ConstraintViolation::MaxRangeShort(_) => write!(f, "constraint violation occurred building member `max_range_short` when building `ConA`"),
|
5809 - | ConstraintViolation::FixedValueShort(_) => write!(f, "constraint violation occurred building member `fixed_value_short` when building `ConA`"),
|
5810 - | ConstraintViolation::RangeLong(_) => write!(f, "constraint violation occurred building member `range_long` when building `ConA`"),
|
5811 - | ConstraintViolation::MinRangeLong(_) => write!(f, "constraint violation occurred building member `min_range_long` when building `ConA`"),
|
5812 - | ConstraintViolation::MaxRangeLong(_) => write!(f, "constraint violation occurred building member `max_range_long` when building `ConA`"),
|
5813 - | ConstraintViolation::FixedValueLong(_) => write!(f, "constraint violation occurred building member `fixed_value_long` when building `ConA`"),
|
5814 - | ConstraintViolation::RangeByte(_) => write!(f, "constraint violation occurred building member `range_byte` when building `ConA`"),
|
5815 - | ConstraintViolation::MinRangeByte(_) => write!(f, "constraint violation occurred building member `min_range_byte` when building `ConA`"),
|
5816 - | ConstraintViolation::MaxRangeByte(_) => write!(f, "constraint violation occurred building member `max_range_byte` when building `ConA`"),
|
5817 - | ConstraintViolation::FixedValueByte(_) => write!(f, "constraint violation occurred building member `fixed_value_byte` when building `ConA`"),
|
5818 - | ConstraintViolation::ConBList(_) => write!(f, "constraint violation occurred building member `con_b_list` when building `ConA`"),
|
5819 - | ConstraintViolation::LengthList(_) => write!(f, "constraint violation occurred building member `length_list` when building `ConA`"),
|
5820 - | ConstraintViolation::SensitiveLengthList(_) => write!(f, "constraint violation occurred building member `sensitive_length_list` when building `ConA`"),
|
5821 - | ConstraintViolation::ConBSet(_) => write!(f, "constraint violation occurred building member `con_b_set` when building `ConA`"),
|
5822 - | ConstraintViolation::ConBMap(_) => write!(f, "constraint violation occurred building member `con_b_map` when building `ConA`"),
|
5823 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `ConA`"),
|
5824 - | ConstraintViolation::MapOfMapOfListOfListOfConB(_) => write!(f, "constraint violation occurred building member `map_of_map_of_list_of_list_of_con_b` when building `ConA`"),
|
5825 - | ConstraintViolation::SparseMap(_) => write!(f, "constraint violation occurred building member `sparse_map` when building `ConA`"),
|
5826 - | ConstraintViolation::SparseList(_) => write!(f, "constraint violation occurred building member `sparse_list` when building `ConA`"),
|
5827 - | ConstraintViolation::SparseLengthMap(_) => write!(f, "constraint violation occurred building member `sparse_length_map` when building `ConA`"),
|
5828 - | ConstraintViolation::SparseLengthList(_) => write!(f, "constraint violation occurred building member `sparse_length_list` when building `ConA`"),
|
5829 - | ConstraintViolation::ConstrainedUnion(_) => write!(f, "constraint violation occurred building member `constrained_union` when building `ConA`"),
|
5830 - | ConstraintViolation::EnumString(_) => write!(f, "constraint violation occurred building member `enum_string` when building `ConA`"),
|
5831 - | ConstraintViolation::ListOfLengthString(_) => write!(f, "constraint violation occurred building member `list_of_length_string` when building `ConA`"),
|
5832 - | ConstraintViolation::SetOfLengthString(_) => write!(f, "constraint violation occurred building member `set_of_length_string` when building `ConA`"),
|
5833 - | ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `ConA`"),
|
5834 - | ConstraintViolation::ListOfLengthBlob(_) => write!(f, "constraint violation occurred building member `list_of_length_blob` when building `ConA`"),
|
5835 - | ConstraintViolation::MapOfLengthBlob(_) => write!(f, "constraint violation occurred building member `map_of_length_blob` when building `ConA`"),
|
5836 - | ConstraintViolation::ListOfRangeInteger(_) => write!(f, "constraint violation occurred building member `list_of_range_integer` when building `ConA`"),
|
5837 - | ConstraintViolation::SetOfRangeInteger(_) => write!(f, "constraint violation occurred building member `set_of_range_integer` when building `ConA`"),
|
5838 - | ConstraintViolation::MapOfRangeInteger(_) => write!(f, "constraint violation occurred building member `map_of_range_integer` when building `ConA`"),
|
5839 - | ConstraintViolation::ListOfRangeShort(_) => write!(f, "constraint violation occurred building member `list_of_range_short` when building `ConA`"),
|
5840 - | ConstraintViolation::SetOfRangeShort(_) => write!(f, "constraint violation occurred building member `set_of_range_short` when building `ConA`"),
|
5841 - | ConstraintViolation::MapOfRangeShort(_) => write!(f, "constraint violation occurred building member `map_of_range_short` when building `ConA`"),
|
5842 - | ConstraintViolation::ListOfRangeLong(_) => write!(f, "constraint violation occurred building member `list_of_range_long` when building `ConA`"),
|
5843 - | ConstraintViolation::SetOfRangeLong(_) => write!(f, "constraint violation occurred building member `set_of_range_long` when building `ConA`"),
|
5844 - | ConstraintViolation::MapOfRangeLong(_) => write!(f, "constraint violation occurred building member `map_of_range_long` when building `ConA`"),
|
5845 - | ConstraintViolation::ListOfRangeByte(_) => write!(f, "constraint violation occurred building member `list_of_range_byte` when building `ConA`"),
|
5846 - | ConstraintViolation::SetOfRangeByte(_) => write!(f, "constraint violation occurred building member `set_of_range_byte` when building `ConA`"),
|
5847 - | ConstraintViolation::MapOfRangeByte(_) => write!(f, "constraint violation occurred building member `map_of_range_byte` when building `ConA`"),
|
5848 - | ConstraintViolation::PatternString(_) => write!(f, "constraint violation occurred building member `pattern_string` when building `ConA`"),
|
5849 - | ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `ConA`"),
|
5850 - | ConstraintViolation::ListOfPatternString(_) => write!(f, "constraint violation occurred building member `list_of_pattern_string` when building `ConA`"),
|
5851 - | ConstraintViolation::SetOfPatternString(_) => write!(f, "constraint violation occurred building member `set_of_pattern_string` when building `ConA`"),
|
5852 - | ConstraintViolation::LengthLengthPatternString(_) => write!(f, "constraint violation occurred building member `length_length_pattern_string` when building `ConA`"),
|
5853 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `ConA`"),
|
5854 - | ConstraintViolation::ListOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `list_of_length_pattern_string` when building `ConA`"),
|
5855 - | ConstraintViolation::SetOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `set_of_length_pattern_string` when building `ConA`"),
|
5856 - | ConstraintViolation::LengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `length_list_of_pattern_string` when building `ConA`"),
|
5857 - | ConstraintViolation::LengthSetOfPatternString(_) => write!(f, "constraint violation occurred building member `length_set_of_pattern_string` when building `ConA`"),
|
5858 - | }
|
5859 - | }
|
5860 - | }
|
7198 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingConB => write!(f, "`con_b` was not provided but it is required when building `ConA`"),
|
7199 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ConB(_) => write!(f, "constraint violation occurred building member `con_b` when building `ConA`"),
|
7200 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::OptConB(_) => write!(f, "constraint violation occurred building member `opt_con_b` when building `ConA`"),
|
7201 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthString(_) => write!(f, "constraint violation occurred building member `length_string` when building `ConA`"),
|
7202 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MinLengthString(_) => write!(f, "constraint violation occurred building member `min_length_string` when building `ConA`"),
|
7203 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MaxLengthString(_) => write!(f, "constraint violation occurred building member `max_length_string` when building `ConA`"),
|
7204 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FixedLengthString(_) => write!(f, "constraint violation occurred building member `fixed_length_string` when building `ConA`"),
|
7205 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthBlob(_) => write!(f, "constraint violation occurred building member `length_blob` when building `ConA`"),
|
7206 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MinLengthBlob(_) => write!(f, "constraint violation occurred building member `min_length_blob` when building `ConA`"),
|
7207 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MaxLengthBlob(_) => write!(f, "constraint violation occurred building member `max_length_blob` when building `ConA`"),
|
7208 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FixedLengthBlob(_) => write!(f, "constraint violation occurred building member `fixed_length_blob` when building `ConA`"),
|
7209 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeInteger(_) => write!(f, "constraint violation occurred building member `range_integer` when building `ConA`"),
|
7210 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MinRangeInteger(_) => write!(f, "constraint violation occurred building member `min_range_integer` when building `ConA`"),
|
7211 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MaxRangeInteger(_) => write!(f, "constraint violation occurred building member `max_range_integer` when building `ConA`"),
|
7212 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FixedValueInteger(_) => write!(f, "constraint violation occurred building member `fixed_value_integer` when building `ConA`"),
|
7213 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShort(_) => write!(f, "constraint violation occurred building member `range_short` when building `ConA`"),
|
7214 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MinRangeShort(_) => write!(f, "constraint violation occurred building member `min_range_short` when building `ConA`"),
|
7215 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MaxRangeShort(_) => write!(f, "constraint violation occurred building member `max_range_short` when building `ConA`"),
|
7216 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FixedValueShort(_) => write!(f, "constraint violation occurred building member `fixed_value_short` when building `ConA`"),
|
7217 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLong(_) => write!(f, "constraint violation occurred building member `range_long` when building `ConA`"),
|
7218 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MinRangeLong(_) => write!(f, "constraint violation occurred building member `min_range_long` when building `ConA`"),
|
7219 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MaxRangeLong(_) => write!(f, "constraint violation occurred building member `max_range_long` when building `ConA`"),
|
7220 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FixedValueLong(_) => write!(f, "constraint violation occurred building member `fixed_value_long` when building `ConA`"),
|
7221 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByte(_) => write!(f, "constraint violation occurred building member `range_byte` when building `ConA`"),
|
7222 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MinRangeByte(_) => write!(f, "constraint violation occurred building member `min_range_byte` when building `ConA`"),
|
7223 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MaxRangeByte(_) => write!(f, "constraint violation occurred building member `max_range_byte` when building `ConA`"),
|
7224 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FixedValueByte(_) => write!(f, "constraint violation occurred building member `fixed_value_byte` when building `ConA`"),
|
7225 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ConBList(_) => write!(f, "constraint violation occurred building member `con_b_list` when building `ConA`"),
|
7226 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthList(_) => write!(f, "constraint violation occurred building member `length_list` when building `ConA`"),
|
7227 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SensitiveLengthList(_) => write!(f, "constraint violation occurred building member `sensitive_length_list` when building `ConA`"),
|
7228 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ConBSet(_) => write!(f, "constraint violation occurred building member `con_b_set` when building `ConA`"),
|
7229 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ConBMap(_) => write!(f, "constraint violation occurred building member `con_b_map` when building `ConA`"),
|
7230 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `ConA`"),
|
7231 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfMapOfListOfListOfConB(_) => write!(f, "constraint violation occurred building member `map_of_map_of_list_of_list_of_con_b` when building `ConA`"),
|
7232 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SparseMap(_) => write!(f, "constraint violation occurred building member `sparse_map` when building `ConA`"),
|
7233 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SparseList(_) => write!(f, "constraint violation occurred building member `sparse_list` when building `ConA`"),
|
7234 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SparseLengthMap(_) => write!(f, "constraint violation occurred building member `sparse_length_map` when building `ConA`"),
|
7235 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SparseLengthList(_) => write!(f, "constraint violation occurred building member `sparse_length_list` when building `ConA`"),
|
7236 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ConstrainedUnion(_) => write!(f, "constraint violation occurred building member `constrained_union` when building `ConA`"),
|
7237 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumString(_) => write!(f, "constraint violation occurred building member `enum_string` when building `ConA`"),
|
7238 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListOfLengthString(_) => write!(f, "constraint violation occurred building member `list_of_length_string` when building `ConA`"),
|
7239 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SetOfLengthString(_) => write!(f, "constraint violation occurred building member `set_of_length_string` when building `ConA`"),
|
7240 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `ConA`"),
|
7241 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListOfLengthBlob(_) => write!(f, "constraint violation occurred building member `list_of_length_blob` when building `ConA`"),
|
7242 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthBlob(_) => write!(f, "constraint violation occurred building member `map_of_length_blob` when building `ConA`"),
|
7243 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListOfRangeInteger(_) => write!(f, "constraint violation occurred building member `list_of_range_integer` when building `ConA`"),
|
7244 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SetOfRangeInteger(_) => write!(f, "constraint violation occurred building member `set_of_range_integer` when building `ConA`"),
|
7245 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfRangeInteger(_) => write!(f, "constraint violation occurred building member `map_of_range_integer` when building `ConA`"),
|
7246 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListOfRangeShort(_) => write!(f, "constraint violation occurred building member `list_of_range_short` when building `ConA`"),
|
7247 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SetOfRangeShort(_) => write!(f, "constraint violation occurred building member `set_of_range_short` when building `ConA`"),
|
7248 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfRangeShort(_) => write!(f, "constraint violation occurred building member `map_of_range_short` when building `ConA`"),
|
7249 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListOfRangeLong(_) => write!(f, "constraint violation occurred building member `list_of_range_long` when building `ConA`"),
|
7250 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SetOfRangeLong(_) => write!(f, "constraint violation occurred building member `set_of_range_long` when building `ConA`"),
|
7251 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfRangeLong(_) => write!(f, "constraint violation occurred building member `map_of_range_long` when building `ConA`"),
|
7252 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListOfRangeByte(_) => write!(f, "constraint violation occurred building member `list_of_range_byte` when building `ConA`"),
|
7253 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SetOfRangeByte(_) => write!(f, "constraint violation occurred building member `set_of_range_byte` when building `ConA`"),
|
7254 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfRangeByte(_) => write!(f, "constraint violation occurred building member `map_of_range_byte` when building `ConA`"),
|
7255 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::PatternString(_) => write!(f, "constraint violation occurred building member `pattern_string` when building `ConA`"),
|
7256 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `ConA`"),
|
7257 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListOfPatternString(_) => write!(f, "constraint violation occurred building member `list_of_pattern_string` when building `ConA`"),
|
7258 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SetOfPatternString(_) => write!(f, "constraint violation occurred building member `set_of_pattern_string` when building `ConA`"),
|
7259 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthLengthPatternString(_) => write!(f, "constraint violation occurred building member `length_length_pattern_string` when building `ConA`"),
|
7260 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `ConA`"),
|
7261 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `list_of_length_pattern_string` when building `ConA`"),
|
7262 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SetOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `set_of_length_pattern_string` when building `ConA`"),
|
7263 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `length_list_of_pattern_string` when building `ConA`"),
|
7264 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthSetOfPatternString(_) => write!(f, "constraint violation occurred building member `length_set_of_pattern_string` when building `ConA`"),
|
7265 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
7266 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7267 + | }
|
7268 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7269 + | }
|
7270 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5861 7271 | impl ::std::error::Error for ConstraintViolation {}
|
7272 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5862 7273 | impl ConstraintViolation {
|
5863 7274 | pub(crate) fn as_validation_exception_field(
|
5864 7275 | self,
|
5865 7276 | path: ::std::string::String,
|
5866 7277 | ) -> crate::model::ValidationExceptionField {
|
5867 7278 | match self {
|
5868 7279 | ConstraintViolation::MissingConB => crate::model::ValidationExceptionField {
|
5869 7280 | message: format!(
|
5870 7281 | "Value at '{}/conB' failed to satisfy constraint: Member must not be null",
|
5871 7282 | path
|
6066 7477 | }
|
6067 7478 | ConstraintViolation::LengthListOfPatternString(inner) => {
|
6068 7479 | inner.as_validation_exception_field(path + "/lengthListOfPatternString")
|
6069 7480 | }
|
6070 7481 | ConstraintViolation::LengthSetOfPatternString(inner) => {
|
6071 7482 | inner.as_validation_exception_field(path + "/lengthSetOfPatternString")
|
6072 7483 | }
|
6073 7484 | }
|
6074 7485 | }
|
6075 7486 | }
|
7487 + | /* ServerBuilderGenerator.kt:244 */
|
6076 7488 | impl ::std::convert::From<Builder> for crate::constrained::MaybeConstrained<crate::model::ConA> {
|
6077 7489 | fn from(builder: Builder) -> Self {
|
6078 7490 | Self::Unconstrained(builder)
|
6079 7491 | }
|
6080 7492 | }
|
7493 + | /* ServerBuilderGenerator.kt:446 */
|
6081 7494 | impl ::std::convert::TryFrom<Builder> for crate::model::ConA {
|
6082 7495 | type Error = ConstraintViolation;
|
6083 7496 |
|
6084 7497 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6085 7498 | builder.build()
|
6086 7499 | }
|
6087 7500 | }
|
6088 - | /// A builder for [`ConA`](crate::model::ConA).
|
7501 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConA`](crate::model::ConA).
|
7502 + | /* RustType.kt:516 */
|
6089 7503 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7504 + | /* ServerBuilderGenerator.kt:211 */
|
6090 7505 | pub(crate) struct Builder {
|
6091 - | pub(crate) con_b: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConB>>,
|
6092 - | pub(crate) opt_con_b: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConB>>,
|
6093 - | pub(crate) length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
6094 - | pub(crate) min_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinLengthString>>,
|
6095 - | pub(crate) max_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxLengthString>>,
|
6096 - | pub(crate) fixed_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedLengthString>>,
|
6097 - | pub(crate) length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthBlob>>,
|
6098 - | pub(crate) min_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinLengthBlob>>,
|
6099 - | pub(crate) max_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxLengthBlob>>,
|
6100 - | pub(crate) fixed_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedLengthBlob>>,
|
6101 - | pub(crate) range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
6102 - | pub(crate) min_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeInteger>>,
|
6103 - | pub(crate) max_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeInteger>>,
|
6104 - | pub(crate) fixed_value_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueInteger>>,
|
6105 - | pub(crate) range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
6106 - | pub(crate) min_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeShort>>,
|
6107 - | pub(crate) max_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeShort>>,
|
6108 - | pub(crate) fixed_value_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueShort>>,
|
6109 - | pub(crate) range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
6110 - | pub(crate) min_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeLong>>,
|
6111 - | pub(crate) max_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeLong>>,
|
6112 - | pub(crate) fixed_value_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueLong>>,
|
6113 - | pub(crate) range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
6114 - | pub(crate) min_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeByte>>,
|
6115 - | pub(crate) max_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeByte>>,
|
6116 - | pub(crate) fixed_value_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueByte>>,
|
6117 - | pub(crate) con_b_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::con_b_list_constrained::ConBListConstrained>>,
|
6118 - | pub(crate) length_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthList>>,
|
6119 - | pub(crate) sensitive_length_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SensitiveLengthList>>,
|
6120 - | pub(crate) con_b_set: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBSet>>,
|
6121 - | pub(crate) con_b_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
6122 - | pub(crate) length_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthMap>>,
|
6123 - | pub(crate) map_of_map_of_list_of_list_of_con_b: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained>>,
|
6124 - | pub(crate) sparse_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::sparse_map_constrained::SparseMapConstrained>>,
|
6125 - | pub(crate) sparse_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::sparse_list_constrained::SparseListConstrained>>,
|
6126 - | pub(crate) sparse_length_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SparseLengthMap>>,
|
6127 - | pub(crate) sparse_length_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SparseLengthList>>,
|
6128 - | pub(crate) constrained_union: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConstrainedUnion>>,
|
6129 - | pub(crate) enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
6130 - | pub(crate) list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
6131 - | pub(crate) set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
6132 - | pub(crate) map_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
6133 - | pub(crate) list_of_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained>>,
|
6134 - | pub(crate) map_of_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained>>,
|
6135 - | pub(crate) list_of_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
6136 - | pub(crate) set_of_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
6137 - | pub(crate) map_of_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained>>,
|
6138 - | pub(crate) list_of_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
6139 - | pub(crate) set_of_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
6140 - | pub(crate) map_of_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained>>,
|
6141 - | pub(crate) list_of_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
6142 - | pub(crate) set_of_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
6143 - | pub(crate) map_of_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained>>,
|
6144 - | pub(crate) list_of_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
6145 - | pub(crate) set_of_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
6146 - | pub(crate) map_of_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained>>,
|
6147 - | pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
6148 - | pub(crate) pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::PatternString>>,
|
6149 - | pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
6150 - | pub(crate) list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>>,
|
6151 - | pub(crate) set_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfPatternString>>,
|
6152 - | pub(crate) length_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthPatternString>>,
|
6153 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
6154 - | pub(crate) list_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>>,
|
6155 - | pub(crate) set_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthPatternString>>,
|
6156 - | pub(crate) length_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
6157 - | pub(crate) length_set_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
6158 - | }
|
7506 + | /* ServerBuilderGenerator.kt:308 */pub(crate) con_b: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConB>>,
|
7507 + | /* ServerBuilderGenerator.kt:308 */pub(crate) opt_con_b: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConB>>,
|
7508 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
7509 + | /* ServerBuilderGenerator.kt:308 */pub(crate) min_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinLengthString>>,
|
7510 + | /* ServerBuilderGenerator.kt:308 */pub(crate) max_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxLengthString>>,
|
7511 + | /* ServerBuilderGenerator.kt:308 */pub(crate) fixed_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedLengthString>>,
|
7512 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthBlob>>,
|
7513 + | /* ServerBuilderGenerator.kt:308 */pub(crate) min_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinLengthBlob>>,
|
7514 + | /* ServerBuilderGenerator.kt:308 */pub(crate) max_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxLengthBlob>>,
|
7515 + | /* ServerBuilderGenerator.kt:308 */pub(crate) fixed_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedLengthBlob>>,
|
7516 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
7517 + | /* ServerBuilderGenerator.kt:308 */pub(crate) min_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeInteger>>,
|
7518 + | /* ServerBuilderGenerator.kt:308 */pub(crate) max_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeInteger>>,
|
7519 + | /* ServerBuilderGenerator.kt:308 */pub(crate) fixed_value_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueInteger>>,
|
7520 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
7521 + | /* ServerBuilderGenerator.kt:308 */pub(crate) min_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeShort>>,
|
7522 + | /* ServerBuilderGenerator.kt:308 */pub(crate) max_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeShort>>,
|
7523 + | /* ServerBuilderGenerator.kt:308 */pub(crate) fixed_value_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueShort>>,
|
7524 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
7525 + | /* ServerBuilderGenerator.kt:308 */pub(crate) min_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeLong>>,
|
7526 + | /* ServerBuilderGenerator.kt:308 */pub(crate) max_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeLong>>,
|
7527 + | /* ServerBuilderGenerator.kt:308 */pub(crate) fixed_value_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueLong>>,
|
7528 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
7529 + | /* ServerBuilderGenerator.kt:308 */pub(crate) min_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeByte>>,
|
7530 + | /* ServerBuilderGenerator.kt:308 */pub(crate) max_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeByte>>,
|
7531 + | /* ServerBuilderGenerator.kt:308 */pub(crate) fixed_value_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueByte>>,
|
7532 + | /* ServerBuilderGenerator.kt:308 */pub(crate) con_b_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::con_b_list_constrained::ConBListConstrained>>,
|
7533 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthList>>,
|
7534 + | /* ServerBuilderGenerator.kt:308 */pub(crate) sensitive_length_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SensitiveLengthList>>,
|
7535 + | /* ServerBuilderGenerator.kt:308 */pub(crate) con_b_set: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBSet>>,
|
7536 + | /* ServerBuilderGenerator.kt:308 */pub(crate) con_b_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
7537 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthMap>>,
|
7538 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_map_of_list_of_list_of_con_b: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained>>,
|
7539 + | /* ServerBuilderGenerator.kt:308 */pub(crate) sparse_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::sparse_map_constrained::SparseMapConstrained>>,
|
7540 + | /* ServerBuilderGenerator.kt:308 */pub(crate) sparse_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::sparse_list_constrained::SparseListConstrained>>,
|
7541 + | /* ServerBuilderGenerator.kt:308 */pub(crate) sparse_length_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SparseLengthMap>>,
|
7542 + | /* ServerBuilderGenerator.kt:308 */pub(crate) sparse_length_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SparseLengthList>>,
|
7543 + | /* ServerBuilderGenerator.kt:308 */pub(crate) constrained_union: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConstrainedUnion>>,
|
7544 + | /* ServerBuilderGenerator.kt:308 */pub(crate) enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
7545 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
7546 + | /* ServerBuilderGenerator.kt:308 */pub(crate) set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
7547 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
7548 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_of_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained>>,
|
7549 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained>>,
|
7550 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_of_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
7551 + | /* ServerBuilderGenerator.kt:308 */pub(crate) set_of_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
7552 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained>>,
|
7553 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_of_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
7554 + | /* ServerBuilderGenerator.kt:308 */pub(crate) set_of_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
7555 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained>>,
|
7556 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_of_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
7557 + | /* ServerBuilderGenerator.kt:308 */pub(crate) set_of_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
7558 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained>>,
|
7559 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_of_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
7560 + | /* ServerBuilderGenerator.kt:308 */pub(crate) set_of_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
7561 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained>>,
|
7562 + | /* ServerBuilderGenerator.kt:308 */pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
7563 + | /* ServerBuilderGenerator.kt:308 */pub(crate) pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::PatternString>>,
|
7564 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
7565 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>>,
|
7566 + | /* ServerBuilderGenerator.kt:308 */pub(crate) set_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfPatternString>>,
|
7567 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthPatternString>>,
|
7568 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
7569 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>>,
|
7570 + | /* ServerBuilderGenerator.kt:308 */pub(crate) set_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthPatternString>>,
|
7571 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
7572 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_set_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
7573 + | /* ServerBuilderGenerator.kt:211 */}
|
7574 + | /* ServerBuilderGenerator.kt:215 */
|
6159 7575 | impl Builder {
|
7576 + | /* ServerBuilderGenerator.kt:426 */
|
6160 7577 | #[allow(missing_docs)] // documentation missing in model
|
7578 + | /* ServerBuilderGenerator.kt:428 */
|
6161 7579 | pub(crate) fn set_con_b(
|
6162 7580 | mut self,
|
6163 7581 | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConB>>,
|
6164 7582 | ) -> Self {
|
7583 + | /* ServerBuilderGenerator.kt:429 */
|
6165 7584 | self.con_b = Some(input.into());
|
6166 7585 | self
|
7586 + | /* ServerBuilderGenerator.kt:428 */
|
6167 7587 | }
|
7588 + | /* ServerBuilderGenerator.kt:426 */
|
6168 7589 | #[allow(missing_docs)] // documentation missing in model
|
7590 + | /* ServerBuilderGenerator.kt:428 */
|
6169 7591 | pub(crate) fn set_opt_con_b(
|
6170 7592 | mut self,
|
6171 7593 | input: Option<
|
6172 7594 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConB>>,
|
6173 7595 | >,
|
6174 7596 | ) -> Self {
|
7597 + | /* ServerBuilderGenerator.kt:429 */
|
6175 7598 | self.opt_con_b = input.map(|v| v.into());
|
6176 7599 | self
|
7600 + | /* ServerBuilderGenerator.kt:428 */
|
6177 7601 | }
|
7602 + | /* ServerBuilderGenerator.kt:426 */
|
6178 7603 | #[allow(missing_docs)] // documentation missing in model
|
7604 + | /* ServerBuilderGenerator.kt:428 */
|
6179 7605 | pub(crate) fn set_length_string(
|
6180 7606 | mut self,
|
6181 7607 | input: Option<
|
6182 7608 | impl ::std::convert::Into<
|
6183 7609 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
6184 7610 | >,
|
6185 7611 | >,
|
6186 7612 | ) -> Self {
|
7613 + | /* ServerBuilderGenerator.kt:429 */
|
6187 7614 | self.length_string = input.map(|v| v.into());
|
6188 7615 | self
|
7616 + | /* ServerBuilderGenerator.kt:428 */
|
6189 7617 | }
|
7618 + | /* ServerBuilderGenerator.kt:426 */
|
6190 7619 | #[allow(missing_docs)] // documentation missing in model
|
7620 + | /* ServerBuilderGenerator.kt:428 */
|
6191 7621 | pub(crate) fn set_min_length_string(
|
6192 7622 | mut self,
|
6193 7623 | input: Option<
|
6194 7624 | impl ::std::convert::Into<
|
6195 7625 | crate::constrained::MaybeConstrained<crate::model::MinLengthString>,
|
6196 7626 | >,
|
6197 7627 | >,
|
6198 7628 | ) -> Self {
|
7629 + | /* ServerBuilderGenerator.kt:429 */
|
6199 7630 | self.min_length_string = input.map(|v| v.into());
|
6200 7631 | self
|
7632 + | /* ServerBuilderGenerator.kt:428 */
|
6201 7633 | }
|
7634 + | /* ServerBuilderGenerator.kt:426 */
|
6202 7635 | #[allow(missing_docs)] // documentation missing in model
|
7636 + | /* ServerBuilderGenerator.kt:428 */
|
6203 7637 | pub(crate) fn set_max_length_string(
|
6204 7638 | mut self,
|
6205 7639 | input: Option<
|
6206 7640 | impl ::std::convert::Into<
|
6207 7641 | crate::constrained::MaybeConstrained<crate::model::MaxLengthString>,
|
6208 7642 | >,
|
6209 7643 | >,
|
6210 7644 | ) -> Self {
|
7645 + | /* ServerBuilderGenerator.kt:429 */
|
6211 7646 | self.max_length_string = input.map(|v| v.into());
|
6212 7647 | self
|
7648 + | /* ServerBuilderGenerator.kt:428 */
|
6213 7649 | }
|
7650 + | /* ServerBuilderGenerator.kt:426 */
|
6214 7651 | #[allow(missing_docs)] // documentation missing in model
|
7652 + | /* ServerBuilderGenerator.kt:428 */
|
6215 7653 | pub(crate) fn set_fixed_length_string(
|
6216 7654 | mut self,
|
6217 7655 | input: Option<
|
6218 7656 | impl ::std::convert::Into<
|
6219 7657 | crate::constrained::MaybeConstrained<crate::model::FixedLengthString>,
|
6220 7658 | >,
|
6221 7659 | >,
|
6222 7660 | ) -> Self {
|
7661 + | /* ServerBuilderGenerator.kt:429 */
|
6223 7662 | self.fixed_length_string = input.map(|v| v.into());
|
6224 7663 | self
|
7664 + | /* ServerBuilderGenerator.kt:428 */
|
6225 7665 | }
|
7666 + | /* ServerBuilderGenerator.kt:426 */
|
6226 7667 | #[allow(missing_docs)] // documentation missing in model
|
7668 + | /* ServerBuilderGenerator.kt:428 */
|
6227 7669 | pub(crate) fn set_length_blob(
|
6228 7670 | mut self,
|
6229 7671 | input: Option<
|
6230 7672 | impl ::std::convert::Into<
|
6231 7673 | crate::constrained::MaybeConstrained<crate::model::LengthBlob>,
|
6232 7674 | >,
|
6233 7675 | >,
|
6234 7676 | ) -> Self {
|
7677 + | /* ServerBuilderGenerator.kt:429 */
|
6235 7678 | self.length_blob = input.map(|v| v.into());
|
6236 7679 | self
|
7680 + | /* ServerBuilderGenerator.kt:428 */
|
6237 7681 | }
|
7682 + | /* ServerBuilderGenerator.kt:426 */
|
6238 7683 | #[allow(missing_docs)] // documentation missing in model
|
7684 + | /* ServerBuilderGenerator.kt:428 */
|
6239 7685 | pub(crate) fn set_min_length_blob(
|
6240 7686 | mut self,
|
6241 7687 | input: Option<
|
6242 7688 | impl ::std::convert::Into<
|
6243 7689 | crate::constrained::MaybeConstrained<crate::model::MinLengthBlob>,
|
6244 7690 | >,
|
6245 7691 | >,
|
6246 7692 | ) -> Self {
|
7693 + | /* ServerBuilderGenerator.kt:429 */
|
6247 7694 | self.min_length_blob = input.map(|v| v.into());
|
6248 7695 | self
|
7696 + | /* ServerBuilderGenerator.kt:428 */
|
6249 7697 | }
|
7698 + | /* ServerBuilderGenerator.kt:426 */
|
6250 7699 | #[allow(missing_docs)] // documentation missing in model
|
7700 + | /* ServerBuilderGenerator.kt:428 */
|
6251 7701 | pub(crate) fn set_max_length_blob(
|
6252 7702 | mut self,
|
6253 7703 | input: Option<
|
6254 7704 | impl ::std::convert::Into<
|
6255 7705 | crate::constrained::MaybeConstrained<crate::model::MaxLengthBlob>,
|
6256 7706 | >,
|
6257 7707 | >,
|
6258 7708 | ) -> Self {
|
7709 + | /* ServerBuilderGenerator.kt:429 */
|
6259 7710 | self.max_length_blob = input.map(|v| v.into());
|
6260 7711 | self
|
7712 + | /* ServerBuilderGenerator.kt:428 */
|
6261 7713 | }
|
7714 + | /* ServerBuilderGenerator.kt:426 */
|
6262 7715 | #[allow(missing_docs)] // documentation missing in model
|
7716 + | /* ServerBuilderGenerator.kt:428 */
|
6263 7717 | pub(crate) fn set_fixed_length_blob(
|
6264 7718 | mut self,
|
6265 7719 | input: Option<
|
6266 7720 | impl ::std::convert::Into<
|
6267 7721 | crate::constrained::MaybeConstrained<crate::model::FixedLengthBlob>,
|
6268 7722 | >,
|
6269 7723 | >,
|
6270 7724 | ) -> Self {
|
7725 + | /* ServerBuilderGenerator.kt:429 */
|
6271 7726 | self.fixed_length_blob = input.map(|v| v.into());
|
6272 7727 | self
|
7728 + | /* ServerBuilderGenerator.kt:428 */
|
6273 7729 | }
|
7730 + | /* ServerBuilderGenerator.kt:426 */
|
6274 7731 | #[allow(missing_docs)] // documentation missing in model
|
7732 + | /* ServerBuilderGenerator.kt:428 */
|
6275 7733 | pub(crate) fn set_range_integer(
|
6276 7734 | mut self,
|
6277 7735 | input: impl ::std::convert::Into<
|
6278 7736 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
6279 7737 | >,
|
6280 7738 | ) -> Self {
|
7739 + | /* ServerBuilderGenerator.kt:429 */
|
6281 7740 | self.range_integer = Some(input.into());
|
6282 7741 | self
|
7742 + | /* ServerBuilderGenerator.kt:428 */
|
6283 7743 | }
|
7744 + | /* ServerBuilderGenerator.kt:426 */
|
6284 7745 | #[allow(missing_docs)] // documentation missing in model
|
7746 + | /* ServerBuilderGenerator.kt:428 */
|
6285 7747 | pub(crate) fn set_min_range_integer(
|
6286 7748 | mut self,
|
6287 7749 | input: impl ::std::convert::Into<
|
6288 7750 | crate::constrained::MaybeConstrained<crate::model::MinRangeInteger>,
|
6289 7751 | >,
|
6290 7752 | ) -> Self {
|
7753 + | /* ServerBuilderGenerator.kt:429 */
|
6291 7754 | self.min_range_integer = Some(input.into());
|
6292 7755 | self
|
7756 + | /* ServerBuilderGenerator.kt:428 */
|
6293 7757 | }
|
7758 + | /* ServerBuilderGenerator.kt:426 */
|
6294 7759 | #[allow(missing_docs)] // documentation missing in model
|
7760 + | /* ServerBuilderGenerator.kt:428 */
|
6295 7761 | pub(crate) fn set_max_range_integer(
|
6296 7762 | mut self,
|
6297 7763 | input: impl ::std::convert::Into<
|
6298 7764 | crate::constrained::MaybeConstrained<crate::model::MaxRangeInteger>,
|
6299 7765 | >,
|
6300 7766 | ) -> Self {
|
7767 + | /* ServerBuilderGenerator.kt:429 */
|
6301 7768 | self.max_range_integer = Some(input.into());
|
6302 7769 | self
|
7770 + | /* ServerBuilderGenerator.kt:428 */
|
6303 7771 | }
|
7772 + | /* ServerBuilderGenerator.kt:426 */
|
6304 7773 | #[allow(missing_docs)] // documentation missing in model
|
7774 + | /* ServerBuilderGenerator.kt:428 */
|
6305 7775 | pub(crate) fn set_fixed_value_integer(
|
6306 7776 | mut self,
|
6307 7777 | input: impl ::std::convert::Into<
|
6308 7778 | crate::constrained::MaybeConstrained<crate::model::FixedValueInteger>,
|
6309 7779 | >,
|
6310 7780 | ) -> Self {
|
7781 + | /* ServerBuilderGenerator.kt:429 */
|
6311 7782 | self.fixed_value_integer = Some(input.into());
|
6312 7783 | self
|
7784 + | /* ServerBuilderGenerator.kt:428 */
|
6313 7785 | }
|
7786 + | /* ServerBuilderGenerator.kt:426 */
|
6314 7787 | #[allow(missing_docs)] // documentation missing in model
|
7788 + | /* ServerBuilderGenerator.kt:428 */
|
6315 7789 | pub(crate) fn set_range_short(
|
6316 7790 | mut self,
|
6317 7791 | input: impl ::std::convert::Into<
|
6318 7792 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
6319 7793 | >,
|
6320 7794 | ) -> Self {
|
7795 + | /* ServerBuilderGenerator.kt:429 */
|
6321 7796 | self.range_short = Some(input.into());
|
6322 7797 | self
|
7798 + | /* ServerBuilderGenerator.kt:428 */
|
6323 7799 | }
|
7800 + | /* ServerBuilderGenerator.kt:426 */
|
6324 7801 | #[allow(missing_docs)] // documentation missing in model
|
7802 + | /* ServerBuilderGenerator.kt:428 */
|
6325 7803 | pub(crate) fn set_min_range_short(
|
6326 7804 | mut self,
|
6327 7805 | input: impl ::std::convert::Into<
|
6328 7806 | crate::constrained::MaybeConstrained<crate::model::MinRangeShort>,
|
6329 7807 | >,
|
6330 7808 | ) -> Self {
|
7809 + | /* ServerBuilderGenerator.kt:429 */
|
6331 7810 | self.min_range_short = Some(input.into());
|
6332 7811 | self
|
7812 + | /* ServerBuilderGenerator.kt:428 */
|
6333 7813 | }
|
7814 + | /* ServerBuilderGenerator.kt:426 */
|
6334 7815 | #[allow(missing_docs)] // documentation missing in model
|
7816 + | /* ServerBuilderGenerator.kt:428 */
|
6335 7817 | pub(crate) fn set_max_range_short(
|
6336 7818 | mut self,
|
6337 7819 | input: impl ::std::convert::Into<
|
6338 7820 | crate::constrained::MaybeConstrained<crate::model::MaxRangeShort>,
|
6339 7821 | >,
|
6340 7822 | ) -> Self {
|
7823 + | /* ServerBuilderGenerator.kt:429 */
|
6341 7824 | self.max_range_short = Some(input.into());
|
6342 7825 | self
|
7826 + | /* ServerBuilderGenerator.kt:428 */
|
6343 7827 | }
|
7828 + | /* ServerBuilderGenerator.kt:426 */
|
6344 7829 | #[allow(missing_docs)] // documentation missing in model
|
7830 + | /* ServerBuilderGenerator.kt:428 */
|
6345 7831 | pub(crate) fn set_fixed_value_short(
|
6346 7832 | mut self,
|
6347 7833 | input: impl ::std::convert::Into<
|
6348 7834 | crate::constrained::MaybeConstrained<crate::model::FixedValueShort>,
|
6349 7835 | >,
|
6350 7836 | ) -> Self {
|
7837 + | /* ServerBuilderGenerator.kt:429 */
|
6351 7838 | self.fixed_value_short = Some(input.into());
|
6352 7839 | self
|
7840 + | /* ServerBuilderGenerator.kt:428 */
|
6353 7841 | }
|
7842 + | /* ServerBuilderGenerator.kt:426 */
|
6354 7843 | #[allow(missing_docs)] // documentation missing in model
|
7844 + | /* ServerBuilderGenerator.kt:428 */
|
6355 7845 | pub(crate) fn set_range_long(
|
6356 7846 | mut self,
|
6357 7847 | input: impl ::std::convert::Into<
|
6358 7848 | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
6359 7849 | >,
|
6360 7850 | ) -> Self {
|
7851 + | /* ServerBuilderGenerator.kt:429 */
|
6361 7852 | self.range_long = Some(input.into());
|
6362 7853 | self
|
7854 + | /* ServerBuilderGenerator.kt:428 */
|
6363 7855 | }
|
7856 + | /* ServerBuilderGenerator.kt:426 */
|
6364 7857 | #[allow(missing_docs)] // documentation missing in model
|
7858 + | /* ServerBuilderGenerator.kt:428 */
|
6365 7859 | pub(crate) fn set_min_range_long(
|
6366 7860 | mut self,
|
6367 7861 | input: impl ::std::convert::Into<
|
6368 7862 | crate::constrained::MaybeConstrained<crate::model::MinRangeLong>,
|
6369 7863 | >,
|
6370 7864 | ) -> Self {
|
7865 + | /* ServerBuilderGenerator.kt:429 */
|
6371 7866 | self.min_range_long = Some(input.into());
|
6372 7867 | self
|
7868 + | /* ServerBuilderGenerator.kt:428 */
|
6373 7869 | }
|
7870 + | /* ServerBuilderGenerator.kt:426 */
|
6374 7871 | #[allow(missing_docs)] // documentation missing in model
|
7872 + | /* ServerBuilderGenerator.kt:428 */
|
6375 7873 | pub(crate) fn set_max_range_long(
|
6376 7874 | mut self,
|
6377 7875 | input: impl ::std::convert::Into<
|
6378 7876 | crate::constrained::MaybeConstrained<crate::model::MaxRangeLong>,
|
6379 7877 | >,
|
6380 7878 | ) -> Self {
|
7879 + | /* ServerBuilderGenerator.kt:429 */
|
6381 7880 | self.max_range_long = Some(input.into());
|
6382 7881 | self
|
7882 + | /* ServerBuilderGenerator.kt:428 */
|
6383 7883 | }
|
7884 + | /* ServerBuilderGenerator.kt:426 */
|
6384 7885 | #[allow(missing_docs)] // documentation missing in model
|
7886 + | /* ServerBuilderGenerator.kt:428 */
|
6385 7887 | pub(crate) fn set_fixed_value_long(
|
6386 7888 | mut self,
|
6387 7889 | input: impl ::std::convert::Into<
|
6388 7890 | crate::constrained::MaybeConstrained<crate::model::FixedValueLong>,
|
6389 7891 | >,
|
6390 7892 | ) -> Self {
|
7893 + | /* ServerBuilderGenerator.kt:429 */
|
6391 7894 | self.fixed_value_long = Some(input.into());
|
6392 7895 | self
|
7896 + | /* ServerBuilderGenerator.kt:428 */
|
6393 7897 | }
|
7898 + | /* ServerBuilderGenerator.kt:426 */
|
6394 7899 | #[allow(missing_docs)] // documentation missing in model
|
7900 + | /* ServerBuilderGenerator.kt:428 */
|
6395 7901 | pub(crate) fn set_range_byte(
|
6396 7902 | mut self,
|
6397 7903 | input: impl ::std::convert::Into<
|
6398 7904 | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
6399 7905 | >,
|
6400 7906 | ) -> Self {
|
7907 + | /* ServerBuilderGenerator.kt:429 */
|
6401 7908 | self.range_byte = Some(input.into());
|
6402 7909 | self
|
7910 + | /* ServerBuilderGenerator.kt:428 */
|
6403 7911 | }
|
7912 + | /* ServerBuilderGenerator.kt:426 */
|
6404 7913 | #[allow(missing_docs)] // documentation missing in model
|
7914 + | /* ServerBuilderGenerator.kt:428 */
|
6405 7915 | pub(crate) fn set_min_range_byte(
|
6406 7916 | mut self,
|
6407 7917 | input: impl ::std::convert::Into<
|
6408 7918 | crate::constrained::MaybeConstrained<crate::model::MinRangeByte>,
|
6409 7919 | >,
|
6410 7920 | ) -> Self {
|
7921 + | /* ServerBuilderGenerator.kt:429 */
|
6411 7922 | self.min_range_byte = Some(input.into());
|
6412 7923 | self
|
7924 + | /* ServerBuilderGenerator.kt:428 */
|
6413 7925 | }
|
7926 + | /* ServerBuilderGenerator.kt:426 */
|
6414 7927 | #[allow(missing_docs)] // documentation missing in model
|
7928 + | /* ServerBuilderGenerator.kt:428 */
|
6415 7929 | pub(crate) fn set_max_range_byte(
|
6416 7930 | mut self,
|
6417 7931 | input: impl ::std::convert::Into<
|
6418 7932 | crate::constrained::MaybeConstrained<crate::model::MaxRangeByte>,
|
6419 7933 | >,
|
6420 7934 | ) -> Self {
|
7935 + | /* ServerBuilderGenerator.kt:429 */
|
6421 7936 | self.max_range_byte = Some(input.into());
|
6422 7937 | self
|
7938 + | /* ServerBuilderGenerator.kt:428 */
|
6423 7939 | }
|
7940 + | /* ServerBuilderGenerator.kt:426 */
|
6424 7941 | #[allow(missing_docs)] // documentation missing in model
|
7942 + | /* ServerBuilderGenerator.kt:428 */
|
6425 7943 | pub(crate) fn set_fixed_value_byte(
|
6426 7944 | mut self,
|
6427 7945 | input: impl ::std::convert::Into<
|
6428 7946 | crate::constrained::MaybeConstrained<crate::model::FixedValueByte>,
|
6429 7947 | >,
|
6430 7948 | ) -> Self {
|
7949 + | /* ServerBuilderGenerator.kt:429 */
|
6431 7950 | self.fixed_value_byte = Some(input.into());
|
6432 7951 | self
|
7952 + | /* ServerBuilderGenerator.kt:428 */
|
6433 7953 | }
|
7954 + | /* ServerBuilderGenerator.kt:426 */
|
6434 7955 | #[allow(missing_docs)] // documentation missing in model
|
7956 + | /* ServerBuilderGenerator.kt:428 */
|
6435 7957 | pub(crate) fn set_con_b_list(
|
6436 7958 | mut self,
|
6437 7959 | input: Option<
|
6438 7960 | impl ::std::convert::Into<
|
6439 7961 | crate::constrained::MaybeConstrained<
|
6440 7962 | crate::constrained::con_b_list_constrained::ConBListConstrained,
|
6441 7963 | >,
|
6442 7964 | >,
|
6443 7965 | >,
|
6444 7966 | ) -> Self {
|
7967 + | /* ServerBuilderGenerator.kt:429 */
|
6445 7968 | self.con_b_list = input.map(|v| v.into());
|
6446 7969 | self
|
7970 + | /* ServerBuilderGenerator.kt:428 */
|
6447 7971 | }
|
7972 + | /* ServerBuilderGenerator.kt:426 */
|
6448 7973 | #[allow(missing_docs)] // documentation missing in model
|
7974 + | /* ServerBuilderGenerator.kt:428 */
|
6449 7975 | pub(crate) fn set_length_list(
|
6450 7976 | mut self,
|
6451 7977 | input: Option<
|
6452 7978 | impl ::std::convert::Into<
|
6453 7979 | crate::constrained::MaybeConstrained<crate::model::LengthList>,
|
6454 7980 | >,
|
6455 7981 | >,
|
6456 7982 | ) -> Self {
|
7983 + | /* ServerBuilderGenerator.kt:429 */
|
6457 7984 | self.length_list = input.map(|v| v.into());
|
6458 7985 | self
|
7986 + | /* ServerBuilderGenerator.kt:428 */
|
6459 7987 | }
|
7988 + | /* ServerBuilderGenerator.kt:426 */
|
6460 7989 | #[allow(missing_docs)] // documentation missing in model
|
7990 + | /* ServerBuilderGenerator.kt:428 */
|
6461 7991 | pub(crate) fn set_sensitive_length_list(
|
6462 7992 | mut self,
|
6463 7993 | input: Option<
|
6464 7994 | impl ::std::convert::Into<
|
6465 7995 | crate::constrained::MaybeConstrained<crate::model::SensitiveLengthList>,
|
6466 7996 | >,
|
6467 7997 | >,
|
6468 7998 | ) -> Self {
|
7999 + | /* ServerBuilderGenerator.kt:429 */
|
6469 8000 | self.sensitive_length_list = input.map(|v| v.into());
|
6470 8001 | self
|
8002 + | /* ServerBuilderGenerator.kt:428 */
|
6471 8003 | }
|
8004 + | /* ServerBuilderGenerator.kt:426 */
|
6472 8005 | #[allow(missing_docs)] // documentation missing in model
|
8006 + | /* ServerBuilderGenerator.kt:428 */
|
6473 8007 | pub(crate) fn set_con_b_set(
|
6474 8008 | mut self,
|
6475 8009 | input: Option<
|
6476 8010 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBSet>>,
|
6477 8011 | >,
|
6478 8012 | ) -> Self {
|
8013 + | /* ServerBuilderGenerator.kt:429 */
|
6479 8014 | self.con_b_set = input.map(|v| v.into());
|
6480 8015 | self
|
8016 + | /* ServerBuilderGenerator.kt:428 */
|
6481 8017 | }
|
8018 + | /* ServerBuilderGenerator.kt:426 */
|
6482 8019 | #[allow(missing_docs)] // documentation missing in model
|
8020 + | /* ServerBuilderGenerator.kt:428 */
|
6483 8021 | pub(crate) fn set_con_b_map(
|
6484 8022 | mut self,
|
6485 8023 | input: Option<
|
6486 8024 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
6487 8025 | >,
|
6488 8026 | ) -> Self {
|
8027 + | /* ServerBuilderGenerator.kt:429 */
|
6489 8028 | self.con_b_map = input.map(|v| v.into());
|
6490 8029 | self
|
8030 + | /* ServerBuilderGenerator.kt:428 */
|
6491 8031 | }
|
8032 + | /* ServerBuilderGenerator.kt:426 */
|
6492 8033 | #[allow(missing_docs)] // documentation missing in model
|
8034 + | /* ServerBuilderGenerator.kt:428 */
|
6493 8035 | pub(crate) fn set_length_map(
|
6494 8036 | mut self,
|
6495 8037 | input: Option<
|
6496 8038 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::LengthMap>>,
|
6497 8039 | >,
|
6498 8040 | ) -> Self {
|
8041 + | /* ServerBuilderGenerator.kt:429 */
|
6499 8042 | self.length_map = input.map(|v| v.into());
|
6500 8043 | self
|
8044 + | /* ServerBuilderGenerator.kt:428 */
|
6501 8045 | }
|
8046 + | /* ServerBuilderGenerator.kt:426 */
|
6502 8047 | #[allow(missing_docs)] // documentation missing in model
|
8048 + | /* ServerBuilderGenerator.kt:428 */
|
6503 8049 | pub(crate) fn set_map_of_map_of_list_of_list_of_con_b(
|
6504 8050 | mut self,
|
6505 8051 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained>>>,
|
6506 8052 | ) -> Self {
|
8053 + | /* ServerBuilderGenerator.kt:429 */
|
6507 8054 | self.map_of_map_of_list_of_list_of_con_b = input.map(|v| v.into());
|
6508 8055 | self
|
8056 + | /* ServerBuilderGenerator.kt:428 */
|
6509 8057 | }
|
8058 + | /* ServerBuilderGenerator.kt:426 */
|
6510 8059 | #[allow(missing_docs)] // documentation missing in model
|
8060 + | /* ServerBuilderGenerator.kt:428 */
|
6511 8061 | pub(crate) fn set_sparse_map(
|
6512 8062 | mut self,
|
6513 8063 | input: Option<
|
6514 8064 | impl ::std::convert::Into<
|
6515 8065 | crate::constrained::MaybeConstrained<
|
6516 8066 | crate::constrained::sparse_map_constrained::SparseMapConstrained,
|
6517 8067 | >,
|
6518 8068 | >,
|
6519 8069 | >,
|
6520 8070 | ) -> Self {
|
8071 + | /* ServerBuilderGenerator.kt:429 */
|
6521 8072 | self.sparse_map = input.map(|v| v.into());
|
6522 8073 | self
|
8074 + | /* ServerBuilderGenerator.kt:428 */
|
6523 8075 | }
|
8076 + | /* ServerBuilderGenerator.kt:426 */
|
6524 8077 | #[allow(missing_docs)] // documentation missing in model
|
8078 + | /* ServerBuilderGenerator.kt:428 */
|
6525 8079 | pub(crate) fn set_sparse_list(
|
6526 8080 | mut self,
|
6527 8081 | input: Option<
|
6528 8082 | impl ::std::convert::Into<
|
6529 8083 | crate::constrained::MaybeConstrained<
|
6530 8084 | crate::constrained::sparse_list_constrained::SparseListConstrained,
|
6531 8085 | >,
|
6532 8086 | >,
|
6533 8087 | >,
|
6534 8088 | ) -> Self {
|
8089 + | /* ServerBuilderGenerator.kt:429 */
|
6535 8090 | self.sparse_list = input.map(|v| v.into());
|
6536 8091 | self
|
8092 + | /* ServerBuilderGenerator.kt:428 */
|
6537 8093 | }
|
8094 + | /* ServerBuilderGenerator.kt:426 */
|
6538 8095 | #[allow(missing_docs)] // documentation missing in model
|
8096 + | /* ServerBuilderGenerator.kt:428 */
|
6539 8097 | pub(crate) fn set_sparse_length_map(
|
6540 8098 | mut self,
|
6541 8099 | input: Option<
|
6542 8100 | impl ::std::convert::Into<
|
6543 8101 | crate::constrained::MaybeConstrained<crate::model::SparseLengthMap>,
|
6544 8102 | >,
|
6545 8103 | >,
|
6546 8104 | ) -> Self {
|
8105 + | /* ServerBuilderGenerator.kt:429 */
|
6547 8106 | self.sparse_length_map = input.map(|v| v.into());
|
6548 8107 | self
|
8108 + | /* ServerBuilderGenerator.kt:428 */
|
6549 8109 | }
|
8110 + | /* ServerBuilderGenerator.kt:426 */
|
6550 8111 | #[allow(missing_docs)] // documentation missing in model
|
8112 + | /* ServerBuilderGenerator.kt:428 */
|
6551 8113 | pub(crate) fn set_sparse_length_list(
|
6552 8114 | mut self,
|
6553 8115 | input: Option<
|
6554 8116 | impl ::std::convert::Into<
|
6555 8117 | crate::constrained::MaybeConstrained<crate::model::SparseLengthList>,
|
6556 8118 | >,
|
6557 8119 | >,
|
6558 8120 | ) -> Self {
|
8121 + | /* ServerBuilderGenerator.kt:429 */
|
6559 8122 | self.sparse_length_list = input.map(|v| v.into());
|
6560 8123 | self
|
8124 + | /* ServerBuilderGenerator.kt:428 */
|
6561 8125 | }
|
6562 - | /// A union with constrained members.
|
8126 + | /// /* ServerBuilderGenerator.kt:426 */A union with constrained members.
|
8127 + | /* ServerBuilderGenerator.kt:428 */
|
6563 8128 | pub(crate) fn set_constrained_union(
|
6564 8129 | mut self,
|
6565 8130 | input: Option<
|
6566 8131 | impl ::std::convert::Into<
|
6567 8132 | crate::constrained::MaybeConstrained<crate::model::ConstrainedUnion>,
|
6568 8133 | >,
|
6569 8134 | >,
|
6570 8135 | ) -> Self {
|
8136 + | /* ServerBuilderGenerator.kt:429 */
|
6571 8137 | self.constrained_union = input.map(|v| v.into());
|
6572 8138 | self
|
8139 + | /* ServerBuilderGenerator.kt:428 */
|
6573 8140 | }
|
8141 + | /* ServerBuilderGenerator.kt:426 */
|
6574 8142 | #[allow(missing_docs)] // documentation missing in model
|
8143 + | /* ServerBuilderGenerator.kt:428 */
|
6575 8144 | pub(crate) fn set_enum_string(
|
6576 8145 | mut self,
|
6577 8146 | input: Option<
|
6578 8147 | impl ::std::convert::Into<
|
6579 8148 | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
6580 8149 | >,
|
6581 8150 | >,
|
6582 8151 | ) -> Self {
|
8152 + | /* ServerBuilderGenerator.kt:429 */
|
6583 8153 | self.enum_string = input.map(|v| v.into());
|
6584 8154 | self
|
8155 + | /* ServerBuilderGenerator.kt:428 */
|
6585 8156 | }
|
8157 + | /* ServerBuilderGenerator.kt:426 */
|
6586 8158 | #[allow(missing_docs)] // documentation missing in model
|
8159 + | /* ServerBuilderGenerator.kt:428 */
|
6587 8160 | pub(crate) fn set_list_of_length_string(
|
6588 8161 | mut self,
|
6589 8162 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
6590 8163 | ) -> Self {
|
8164 + | /* ServerBuilderGenerator.kt:429 */
|
6591 8165 | self.list_of_length_string = input.map(|v| v.into());
|
6592 8166 | self
|
8167 + | /* ServerBuilderGenerator.kt:428 */
|
6593 8168 | }
|
8169 + | /* ServerBuilderGenerator.kt:426 */
|
6594 8170 | #[allow(missing_docs)] // documentation missing in model
|
8171 + | /* ServerBuilderGenerator.kt:428 */
|
6595 8172 | pub(crate) fn set_set_of_length_string(
|
6596 8173 | mut self,
|
6597 8174 | input: Option<
|
6598 8175 | impl ::std::convert::Into<
|
6599 8176 | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
6600 8177 | >,
|
6601 8178 | >,
|
6602 8179 | ) -> Self {
|
8180 + | /* ServerBuilderGenerator.kt:429 */
|
6603 8181 | self.set_of_length_string = input.map(|v| v.into());
|
6604 8182 | self
|
8183 + | /* ServerBuilderGenerator.kt:428 */
|
6605 8184 | }
|
8185 + | /* ServerBuilderGenerator.kt:426 */
|
6606 8186 | #[allow(missing_docs)] // documentation missing in model
|
8187 + | /* ServerBuilderGenerator.kt:428 */
|
6607 8188 | pub(crate) fn set_map_of_length_string(
|
6608 8189 | mut self,
|
6609 8190 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
|
6610 8191 | ) -> Self {
|
8192 + | /* ServerBuilderGenerator.kt:429 */
|
6611 8193 | self.map_of_length_string = input.map(|v| v.into());
|
6612 8194 | self
|
8195 + | /* ServerBuilderGenerator.kt:428 */
|
6613 8196 | }
|
8197 + | /* ServerBuilderGenerator.kt:426 */
|
6614 8198 | #[allow(missing_docs)] // documentation missing in model
|
8199 + | /* ServerBuilderGenerator.kt:428 */
|
6615 8200 | pub(crate) fn set_list_of_length_blob(
|
6616 8201 | mut self,
|
6617 8202 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained>>>,
|
6618 8203 | ) -> Self {
|
8204 + | /* ServerBuilderGenerator.kt:429 */
|
6619 8205 | self.list_of_length_blob = input.map(|v| v.into());
|
6620 8206 | self
|
8207 + | /* ServerBuilderGenerator.kt:428 */
|
6621 8208 | }
|
8209 + | /* ServerBuilderGenerator.kt:426 */
|
6622 8210 | #[allow(missing_docs)] // documentation missing in model
|
8211 + | /* ServerBuilderGenerator.kt:428 */
|
6623 8212 | pub(crate) fn set_map_of_length_blob(
|
6624 8213 | mut self,
|
6625 8214 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained>>>,
|
6626 8215 | ) -> Self {
|
8216 + | /* ServerBuilderGenerator.kt:429 */
|
6627 8217 | self.map_of_length_blob = input.map(|v| v.into());
|
6628 8218 | self
|
8219 + | /* ServerBuilderGenerator.kt:428 */
|
6629 8220 | }
|
8221 + | /* ServerBuilderGenerator.kt:426 */
|
6630 8222 | #[allow(missing_docs)] // documentation missing in model
|
8223 + | /* ServerBuilderGenerator.kt:428 */
|
6631 8224 | pub(crate) fn set_list_of_range_integer(
|
6632 8225 | mut self,
|
6633 8226 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
6634 8227 | ) -> Self {
|
8228 + | /* ServerBuilderGenerator.kt:429 */
|
6635 8229 | self.list_of_range_integer = input.map(|v| v.into());
|
6636 8230 | self
|
8231 + | /* ServerBuilderGenerator.kt:428 */
|
6637 8232 | }
|
8233 + | /* ServerBuilderGenerator.kt:426 */
|
6638 8234 | #[allow(missing_docs)] // documentation missing in model
|
8235 + | /* ServerBuilderGenerator.kt:428 */
|
6639 8236 | pub(crate) fn set_set_of_range_integer(
|
6640 8237 | mut self,
|
6641 8238 | input: Option<
|
6642 8239 | impl ::std::convert::Into<
|
6643 8240 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
6644 8241 | >,
|
6645 8242 | >,
|
6646 8243 | ) -> Self {
|
8244 + | /* ServerBuilderGenerator.kt:429 */
|
6647 8245 | self.set_of_range_integer = input.map(|v| v.into());
|
6648 8246 | self
|
8247 + | /* ServerBuilderGenerator.kt:428 */
|
6649 8248 | }
|
8249 + | /* ServerBuilderGenerator.kt:426 */
|
6650 8250 | #[allow(missing_docs)] // documentation missing in model
|
8251 + | /* ServerBuilderGenerator.kt:428 */
|
6651 8252 | pub(crate) fn set_map_of_range_integer(
|
6652 8253 | mut self,
|
6653 8254 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained>>>,
|
6654 8255 | ) -> Self {
|
8256 + | /* ServerBuilderGenerator.kt:429 */
|
6655 8257 | self.map_of_range_integer = input.map(|v| v.into());
|
6656 8258 | self
|
8259 + | /* ServerBuilderGenerator.kt:428 */
|
6657 8260 | }
|
8261 + | /* ServerBuilderGenerator.kt:426 */
|
6658 8262 | #[allow(missing_docs)] // documentation missing in model
|
8263 + | /* ServerBuilderGenerator.kt:428 */
|
6659 8264 | pub(crate) fn set_list_of_range_short(
|
6660 8265 | mut self,
|
6661 8266 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
6662 8267 | ) -> Self {
|
8268 + | /* ServerBuilderGenerator.kt:429 */
|
6663 8269 | self.list_of_range_short = input.map(|v| v.into());
|
6664 8270 | self
|
8271 + | /* ServerBuilderGenerator.kt:428 */
|
6665 8272 | }
|
8273 + | /* ServerBuilderGenerator.kt:426 */
|
6666 8274 | #[allow(missing_docs)] // documentation missing in model
|
8275 + | /* ServerBuilderGenerator.kt:428 */
|
6667 8276 | pub(crate) fn set_set_of_range_short(
|
6668 8277 | mut self,
|
6669 8278 | input: Option<
|
6670 8279 | impl ::std::convert::Into<
|
6671 8280 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
6672 8281 | >,
|
6673 8282 | >,
|
6674 8283 | ) -> Self {
|
8284 + | /* ServerBuilderGenerator.kt:429 */
|
6675 8285 | self.set_of_range_short = input.map(|v| v.into());
|
6676 8286 | self
|
8287 + | /* ServerBuilderGenerator.kt:428 */
|
6677 8288 | }
|
8289 + | /* ServerBuilderGenerator.kt:426 */
|
6678 8290 | #[allow(missing_docs)] // documentation missing in model
|
8291 + | /* ServerBuilderGenerator.kt:428 */
|
6679 8292 | pub(crate) fn set_map_of_range_short(
|
6680 8293 | mut self,
|
6681 8294 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained>>>,
|
6682 8295 | ) -> Self {
|
8296 + | /* ServerBuilderGenerator.kt:429 */
|
6683 8297 | self.map_of_range_short = input.map(|v| v.into());
|
6684 8298 | self
|
8299 + | /* ServerBuilderGenerator.kt:428 */
|
6685 8300 | }
|
8301 + | /* ServerBuilderGenerator.kt:426 */
|
6686 8302 | #[allow(missing_docs)] // documentation missing in model
|
8303 + | /* ServerBuilderGenerator.kt:428 */
|
6687 8304 | pub(crate) fn set_list_of_range_long(
|
6688 8305 | mut self,
|
6689 8306 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
6690 8307 | ) -> Self {
|
8308 + | /* ServerBuilderGenerator.kt:429 */
|
6691 8309 | self.list_of_range_long = input.map(|v| v.into());
|
6692 8310 | self
|
8311 + | /* ServerBuilderGenerator.kt:428 */
|
6693 8312 | }
|
8313 + | /* ServerBuilderGenerator.kt:426 */
|
6694 8314 | #[allow(missing_docs)] // documentation missing in model
|
8315 + | /* ServerBuilderGenerator.kt:428 */
|
6695 8316 | pub(crate) fn set_set_of_range_long(
|
6696 8317 | mut self,
|
6697 8318 | input: Option<
|
6698 8319 | impl ::std::convert::Into<
|
6699 8320 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
6700 8321 | >,
|
6701 8322 | >,
|
6702 8323 | ) -> Self {
|
8324 + | /* ServerBuilderGenerator.kt:429 */
|
6703 8325 | self.set_of_range_long = input.map(|v| v.into());
|
6704 8326 | self
|
8327 + | /* ServerBuilderGenerator.kt:428 */
|
6705 8328 | }
|
8329 + | /* ServerBuilderGenerator.kt:426 */
|
6706 8330 | #[allow(missing_docs)] // documentation missing in model
|
8331 + | /* ServerBuilderGenerator.kt:428 */
|
6707 8332 | pub(crate) fn set_map_of_range_long(
|
6708 8333 | mut self,
|
6709 8334 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained>>>,
|
6710 8335 | ) -> Self {
|
8336 + | /* ServerBuilderGenerator.kt:429 */
|
6711 8337 | self.map_of_range_long = input.map(|v| v.into());
|
6712 8338 | self
|
8339 + | /* ServerBuilderGenerator.kt:428 */
|
6713 8340 | }
|
8341 + | /* ServerBuilderGenerator.kt:426 */
|
6714 8342 | #[allow(missing_docs)] // documentation missing in model
|
8343 + | /* ServerBuilderGenerator.kt:428 */
|
6715 8344 | pub(crate) fn set_list_of_range_byte(
|
6716 8345 | mut self,
|
6717 8346 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
6718 8347 | ) -> Self {
|
8348 + | /* ServerBuilderGenerator.kt:429 */
|
6719 8349 | self.list_of_range_byte = input.map(|v| v.into());
|
6720 8350 | self
|
8351 + | /* ServerBuilderGenerator.kt:428 */
|
6721 8352 | }
|
8353 + | /* ServerBuilderGenerator.kt:426 */
|
6722 8354 | #[allow(missing_docs)] // documentation missing in model
|
8355 + | /* ServerBuilderGenerator.kt:428 */
|
6723 8356 | pub(crate) fn set_set_of_range_byte(
|
6724 8357 | mut self,
|
6725 8358 | input: Option<
|
6726 8359 | impl ::std::convert::Into<
|
6727 8360 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
6728 8361 | >,
|
6729 8362 | >,
|
6730 8363 | ) -> Self {
|
8364 + | /* ServerBuilderGenerator.kt:429 */
|
6731 8365 | self.set_of_range_byte = input.map(|v| v.into());
|
6732 8366 | self
|
8367 + | /* ServerBuilderGenerator.kt:428 */
|
6733 8368 | }
|
8369 + | /* ServerBuilderGenerator.kt:426 */
|
6734 8370 | #[allow(missing_docs)] // documentation missing in model
|
8371 + | /* ServerBuilderGenerator.kt:428 */
|
6735 8372 | pub(crate) fn set_map_of_range_byte(
|
6736 8373 | mut self,
|
6737 8374 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained>>>,
|
6738 8375 | ) -> Self {
|
8376 + | /* ServerBuilderGenerator.kt:429 */
|
6739 8377 | self.map_of_range_byte = input.map(|v| v.into());
|
6740 8378 | self
|
8379 + | /* ServerBuilderGenerator.kt:428 */
|
6741 8380 | }
|
8381 + | /* ServerBuilderGenerator.kt:426 */
|
6742 8382 | #[allow(missing_docs)] // documentation missing in model
|
8383 + | /* ServerBuilderGenerator.kt:428 */
|
6743 8384 | pub(crate) fn set_non_streaming_blob(
|
6744 8385 | mut self,
|
6745 8386 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
6746 8387 | ) -> Self {
|
8388 + | /* ServerBuilderGenerator.kt:429 */
|
6747 8389 | self.non_streaming_blob = input.map(|v| v.into());
|
6748 8390 | self
|
8391 + | /* ServerBuilderGenerator.kt:428 */
|
6749 8392 | }
|
8393 + | /* ServerBuilderGenerator.kt:426 */
|
6750 8394 | #[allow(missing_docs)] // documentation missing in model
|
8395 + | /* ServerBuilderGenerator.kt:428 */
|
6751 8396 | pub(crate) fn set_pattern_string(
|
6752 8397 | mut self,
|
6753 8398 | input: Option<
|
6754 8399 | impl ::std::convert::Into<
|
6755 8400 | crate::constrained::MaybeConstrained<crate::model::PatternString>,
|
6756 8401 | >,
|
6757 8402 | >,
|
6758 8403 | ) -> Self {
|
8404 + | /* ServerBuilderGenerator.kt:429 */
|
6759 8405 | self.pattern_string = input.map(|v| v.into());
|
6760 8406 | self
|
8407 + | /* ServerBuilderGenerator.kt:428 */
|
6761 8408 | }
|
8409 + | /* ServerBuilderGenerator.kt:426 */
|
6762 8410 | #[allow(missing_docs)] // documentation missing in model
|
8411 + | /* ServerBuilderGenerator.kt:428 */
|
6763 8412 | pub(crate) fn set_map_of_pattern_string(
|
6764 8413 | mut self,
|
6765 8414 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
|
6766 8415 | ) -> Self {
|
8416 + | /* ServerBuilderGenerator.kt:429 */
|
6767 8417 | self.map_of_pattern_string = input.map(|v| v.into());
|
6768 8418 | self
|
8419 + | /* ServerBuilderGenerator.kt:428 */
|
6769 8420 | }
|
8421 + | /* ServerBuilderGenerator.kt:426 */
|
6770 8422 | #[allow(missing_docs)] // documentation missing in model
|
8423 + | /* ServerBuilderGenerator.kt:428 */
|
6771 8424 | pub(crate) fn set_list_of_pattern_string(
|
6772 8425 | mut self,
|
6773 8426 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>>>,
|
6774 8427 | ) -> Self {
|
8428 + | /* ServerBuilderGenerator.kt:429 */
|
6775 8429 | self.list_of_pattern_string = input.map(|v| v.into());
|
6776 8430 | self
|
8431 + | /* ServerBuilderGenerator.kt:428 */
|
6777 8432 | }
|
8433 + | /* ServerBuilderGenerator.kt:426 */
|
6778 8434 | #[allow(missing_docs)] // documentation missing in model
|
8435 + | /* ServerBuilderGenerator.kt:428 */
|
6779 8436 | pub(crate) fn set_set_of_pattern_string(
|
6780 8437 | mut self,
|
6781 8438 | input: Option<
|
6782 8439 | impl ::std::convert::Into<
|
6783 8440 | crate::constrained::MaybeConstrained<crate::model::SetOfPatternString>,
|
6784 8441 | >,
|
6785 8442 | >,
|
6786 8443 | ) -> Self {
|
8444 + | /* ServerBuilderGenerator.kt:429 */
|
6787 8445 | self.set_of_pattern_string = input.map(|v| v.into());
|
6788 8446 | self
|
8447 + | /* ServerBuilderGenerator.kt:428 */
|
6789 8448 | }
|
8449 + | /* ServerBuilderGenerator.kt:426 */
|
6790 8450 | #[allow(missing_docs)] // documentation missing in model
|
8451 + | /* ServerBuilderGenerator.kt:428 */
|
6791 8452 | pub(crate) fn set_length_length_pattern_string(
|
6792 8453 | mut self,
|
6793 8454 | input: Option<
|
6794 8455 | impl ::std::convert::Into<
|
6795 8456 | crate::constrained::MaybeConstrained<crate::model::LengthPatternString>,
|
6796 8457 | >,
|
6797 8458 | >,
|
6798 8459 | ) -> Self {
|
8460 + | /* ServerBuilderGenerator.kt:429 */
|
6799 8461 | self.length_length_pattern_string = input.map(|v| v.into());
|
6800 8462 | self
|
8463 + | /* ServerBuilderGenerator.kt:428 */
|
6801 8464 | }
|
8465 + | /* ServerBuilderGenerator.kt:426 */
|
6802 8466 | #[allow(missing_docs)] // documentation missing in model
|
8467 + | /* ServerBuilderGenerator.kt:428 */
|
6803 8468 | pub(crate) fn set_map_of_length_pattern_string(
|
6804 8469 | mut self,
|
6805 8470 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
|
6806 8471 | ) -> Self {
|
8472 + | /* ServerBuilderGenerator.kt:429 */
|
6807 8473 | self.map_of_length_pattern_string = input.map(|v| v.into());
|
6808 8474 | self
|
8475 + | /* ServerBuilderGenerator.kt:428 */
|
6809 8476 | }
|
8477 + | /* ServerBuilderGenerator.kt:426 */
|
6810 8478 | #[allow(missing_docs)] // documentation missing in model
|
8479 + | /* ServerBuilderGenerator.kt:428 */
|
6811 8480 | pub(crate) fn set_list_of_length_pattern_string(
|
6812 8481 | mut self,
|
6813 8482 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>>>,
|
6814 8483 | ) -> Self {
|
8484 + | /* ServerBuilderGenerator.kt:429 */
|
6815 8485 | self.list_of_length_pattern_string = input.map(|v| v.into());
|
6816 8486 | self
|
8487 + | /* ServerBuilderGenerator.kt:428 */
|
6817 8488 | }
|
8489 + | /* ServerBuilderGenerator.kt:426 */
|
6818 8490 | #[allow(missing_docs)] // documentation missing in model
|
8491 + | /* ServerBuilderGenerator.kt:428 */
|
6819 8492 | pub(crate) fn set_set_of_length_pattern_string(
|
6820 8493 | mut self,
|
6821 8494 | input: Option<
|
6822 8495 | impl ::std::convert::Into<
|
6823 8496 | crate::constrained::MaybeConstrained<crate::model::SetOfLengthPatternString>,
|
6824 8497 | >,
|
6825 8498 | >,
|
6826 8499 | ) -> Self {
|
8500 + | /* ServerBuilderGenerator.kt:429 */
|
6827 8501 | self.set_of_length_pattern_string = input.map(|v| v.into());
|
6828 8502 | self
|
8503 + | /* ServerBuilderGenerator.kt:428 */
|
6829 8504 | }
|
8505 + | /* ServerBuilderGenerator.kt:426 */
|
6830 8506 | #[allow(missing_docs)] // documentation missing in model
|
8507 + | /* ServerBuilderGenerator.kt:428 */
|
6831 8508 | pub(crate) fn set_length_list_of_pattern_string(
|
6832 8509 | mut self,
|
6833 8510 | input: Option<
|
6834 8511 | impl ::std::convert::Into<
|
6835 8512 | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
6836 8513 | >,
|
6837 8514 | >,
|
6838 8515 | ) -> Self {
|
8516 + | /* ServerBuilderGenerator.kt:429 */
|
6839 8517 | self.length_list_of_pattern_string = input.map(|v| v.into());
|
6840 8518 | self
|
8519 + | /* ServerBuilderGenerator.kt:428 */
|
6841 8520 | }
|
8521 + | /* ServerBuilderGenerator.kt:426 */
|
6842 8522 | #[allow(missing_docs)] // documentation missing in model
|
8523 + | /* ServerBuilderGenerator.kt:428 */
|
6843 8524 | pub(crate) fn set_length_set_of_pattern_string(
|
6844 8525 | mut self,
|
6845 8526 | input: Option<
|
6846 8527 | impl ::std::convert::Into<
|
6847 8528 | crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
|
6848 8529 | >,
|
6849 8530 | >,
|
6850 8531 | ) -> Self {
|
8532 + | /* ServerBuilderGenerator.kt:429 */
|
6851 8533 | self.length_set_of_pattern_string = input.map(|v| v.into());
|
6852 8534 | self
|
8535 + | /* ServerBuilderGenerator.kt:428 */
|
6853 8536 | }
|
6854 - | /// Consumes the builder and constructs a [`ConA`](crate::model::ConA).
|
6855 - | ///
|
8537 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConA`](crate::model::ConA).
|
8538 + | /// /* ServerBuilderGenerator.kt:260 */
|
6856 8539 | /// The builder fails to construct a [`ConA`](crate::model::ConA) if a [`ConstraintViolation`] occurs.
|
6857 8540 | ///
|
6858 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
8541 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
8542 + | /* ServerBuilderGenerator.kt:271 */
|
6859 8543 | pub fn build(self) -> Result<crate::model::ConA, ConstraintViolation> {
|
6860 8544 | self.build_enforcing_all_constraints()
|
6861 8545 | }
|
8546 + | /* ServerBuilderGenerator.kt:283 */
|
6862 8547 | fn build_enforcing_all_constraints(
|
6863 8548 | self,
|
6864 8549 | ) -> Result<crate::model::ConA, ConstraintViolation> {
|
6865 - | Ok(crate::model::ConA {
|
8550 + | /* ServerBuilderGenerator.kt:287 */
|
8551 + | Ok(
|
8552 + | /* ServerBuilderGenerator.kt:542 */
|
8553 + | crate::model::ConA {
|
8554 + | /* ServerBuilderGenerator.kt:546 */
|
6866 8555 | con_b: self
|
6867 8556 | .con_b
|
8557 + | /* ServerBuilderGenerator.kt:602 */
|
6868 8558 | .map(|v| match v {
|
6869 8559 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6870 8560 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6871 8561 | })
|
8562 + | /* ServerBuilderGenerator.kt:614 */
|
6872 8563 | .map(|res| res.map_err(ConstraintViolation::ConB))
|
6873 8564 | .transpose()?
|
8565 + | /* ServerBuilderGenerator.kt:569 */
|
6874 8566 | .ok_or(ConstraintViolation::MissingConB)?,
|
8567 + | /* ServerBuilderGenerator.kt:546 */
|
6875 8568 | opt_con_b: self
|
6876 8569 | .opt_con_b
|
8570 + | /* ServerBuilderGenerator.kt:602 */
|
6877 8571 | .map(|v| match v {
|
6878 8572 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6879 8573 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6880 8574 | })
|
8575 + | /* ServerBuilderGenerator.kt:614 */
|
6881 8576 | .map(|res| res.map_err(ConstraintViolation::OptConB))
|
6882 8577 | .transpose()?,
|
8578 + | /* ServerBuilderGenerator.kt:546 */
|
6883 8579 | length_string: self
|
6884 8580 | .length_string
|
8581 + | /* ServerBuilderGenerator.kt:602 */
|
6885 8582 | .map(|v| match v {
|
6886 8583 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6887 8584 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6888 8585 | })
|
8586 + | /* ServerBuilderGenerator.kt:614 */
|
6889 8587 | .map(|res| res.map_err(ConstraintViolation::LengthString))
|
6890 8588 | .transpose()?
|
8589 + | /* ServerBuilderGenerator.kt:630 */
|
6891 8590 | .map(|v: crate::model::LengthString| v.into()),
|
8591 + | /* ServerBuilderGenerator.kt:546 */
|
6892 8592 | min_length_string: self
|
6893 8593 | .min_length_string
|
8594 + | /* ServerBuilderGenerator.kt:602 */
|
6894 8595 | .map(|v| match v {
|
6895 8596 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6896 8597 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6897 8598 | })
|
8599 + | /* ServerBuilderGenerator.kt:614 */
|
6898 8600 | .map(|res| res.map_err(ConstraintViolation::MinLengthString))
|
6899 8601 | .transpose()?
|
8602 + | /* ServerBuilderGenerator.kt:630 */
|
6900 8603 | .map(|v: crate::model::MinLengthString| v.into()),
|
8604 + | /* ServerBuilderGenerator.kt:546 */
|
6901 8605 | max_length_string: self
|
6902 8606 | .max_length_string
|
8607 + | /* ServerBuilderGenerator.kt:602 */
|
6903 8608 | .map(|v| match v {
|
6904 8609 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6905 8610 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6906 8611 | })
|
8612 + | /* ServerBuilderGenerator.kt:614 */
|
6907 8613 | .map(|res| res.map_err(ConstraintViolation::MaxLengthString))
|
6908 8614 | .transpose()?
|
8615 + | /* ServerBuilderGenerator.kt:630 */
|
6909 8616 | .map(|v: crate::model::MaxLengthString| v.into()),
|
8617 + | /* ServerBuilderGenerator.kt:546 */
|
6910 8618 | fixed_length_string: self
|
6911 8619 | .fixed_length_string
|
8620 + | /* ServerBuilderGenerator.kt:602 */
|
6912 8621 | .map(|v| match v {
|
6913 8622 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6914 8623 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6915 8624 | })
|
8625 + | /* ServerBuilderGenerator.kt:614 */
|
6916 8626 | .map(|res| res.map_err(ConstraintViolation::FixedLengthString))
|
6917 8627 | .transpose()?
|
8628 + | /* ServerBuilderGenerator.kt:630 */
|
6918 8629 | .map(|v: crate::model::FixedLengthString| v.into()),
|
8630 + | /* ServerBuilderGenerator.kt:546 */
|
6919 8631 | length_blob: self
|
6920 8632 | .length_blob
|
8633 + | /* ServerBuilderGenerator.kt:602 */
|
6921 8634 | .map(|v| match v {
|
6922 8635 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6923 8636 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6924 8637 | })
|
8638 + | /* ServerBuilderGenerator.kt:614 */
|
6925 8639 | .map(|res| res.map_err(ConstraintViolation::LengthBlob))
|
6926 8640 | .transpose()?
|
8641 + | /* ServerBuilderGenerator.kt:630 */
|
6927 8642 | .map(|v: crate::model::LengthBlob| v.into()),
|
8643 + | /* ServerBuilderGenerator.kt:546 */
|
6928 8644 | min_length_blob: self
|
6929 8645 | .min_length_blob
|
8646 + | /* ServerBuilderGenerator.kt:602 */
|
6930 8647 | .map(|v| match v {
|
6931 8648 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6932 8649 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6933 8650 | })
|
8651 + | /* ServerBuilderGenerator.kt:614 */
|
6934 8652 | .map(|res| res.map_err(ConstraintViolation::MinLengthBlob))
|
6935 8653 | .transpose()?
|
8654 + | /* ServerBuilderGenerator.kt:630 */
|
6936 8655 | .map(|v: crate::model::MinLengthBlob| v.into()),
|
8656 + | /* ServerBuilderGenerator.kt:546 */
|
6937 8657 | max_length_blob: self
|
6938 8658 | .max_length_blob
|
8659 + | /* ServerBuilderGenerator.kt:602 */
|
6939 8660 | .map(|v| match v {
|
6940 8661 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6941 8662 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6942 8663 | })
|
8664 + | /* ServerBuilderGenerator.kt:614 */
|
6943 8665 | .map(|res| res.map_err(ConstraintViolation::MaxLengthBlob))
|
6944 8666 | .transpose()?
|
8667 + | /* ServerBuilderGenerator.kt:630 */
|
6945 8668 | .map(|v: crate::model::MaxLengthBlob| v.into()),
|
8669 + | /* ServerBuilderGenerator.kt:546 */
|
6946 8670 | fixed_length_blob: self
|
6947 8671 | .fixed_length_blob
|
8672 + | /* ServerBuilderGenerator.kt:602 */
|
6948 8673 | .map(|v| match v {
|
6949 8674 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6950 8675 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6951 8676 | })
|
8677 + | /* ServerBuilderGenerator.kt:614 */
|
6952 8678 | .map(|res| res.map_err(ConstraintViolation::FixedLengthBlob))
|
6953 8679 | .transpose()?
|
8680 + | /* ServerBuilderGenerator.kt:630 */
|
6954 8681 | .map(|v: crate::model::FixedLengthBlob| v.into()),
|
8682 + | /* ServerBuilderGenerator.kt:546 */
|
6955 8683 | range_integer: self
|
6956 8684 | .range_integer
|
8685 + | /* ServerBuilderGenerator.kt:602 */
|
6957 8686 | .map(|v| match v {
|
6958 8687 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6959 8688 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6960 8689 | })
|
8690 + | /* ServerBuilderGenerator.kt:614 */
|
6961 8691 | .map(|res| res.map_err(ConstraintViolation::RangeInteger))
|
6962 8692 | .transpose()?
|
8693 + | /* ServerBuilderGenerator.kt:630 */
|
6963 8694 | .map(|v: crate::model::RangeInteger| v.into())
|
8695 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
6964 8696 | .unwrap_or(0i32),
|
8697 + | /* ServerBuilderGenerator.kt:546 */
|
6965 8698 | min_range_integer: self
|
6966 8699 | .min_range_integer
|
8700 + | /* ServerBuilderGenerator.kt:602 */
|
6967 8701 | .map(|v| match v {
|
6968 8702 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6969 8703 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6970 8704 | })
|
8705 + | /* ServerBuilderGenerator.kt:614 */
|
6971 8706 | .map(|res| res.map_err(ConstraintViolation::MinRangeInteger))
|
6972 8707 | .transpose()?
|
8708 + | /* ServerBuilderGenerator.kt:630 */
|
6973 8709 | .map(|v: crate::model::MinRangeInteger| v.into())
|
8710 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
6974 8711 | .unwrap_or(0i32),
|
8712 + | /* ServerBuilderGenerator.kt:546 */
|
6975 8713 | max_range_integer: self
|
6976 8714 | .max_range_integer
|
8715 + | /* ServerBuilderGenerator.kt:602 */
|
6977 8716 | .map(|v| match v {
|
6978 8717 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6979 8718 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6980 8719 | })
|
8720 + | /* ServerBuilderGenerator.kt:614 */
|
6981 8721 | .map(|res| res.map_err(ConstraintViolation::MaxRangeInteger))
|
6982 8722 | .transpose()?
|
8723 + | /* ServerBuilderGenerator.kt:630 */
|
6983 8724 | .map(|v: crate::model::MaxRangeInteger| v.into())
|
8725 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
6984 8726 | .unwrap_or(0i32),
|
8727 + | /* ServerBuilderGenerator.kt:546 */
|
6985 8728 | fixed_value_integer: self
|
6986 8729 | .fixed_value_integer
|
8730 + | /* ServerBuilderGenerator.kt:602 */
|
6987 8731 | .map(|v| match v {
|
6988 8732 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6989 8733 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6990 8734 | })
|
8735 + | /* ServerBuilderGenerator.kt:614 */
|
6991 8736 | .map(|res| res.map_err(ConstraintViolation::FixedValueInteger))
|
6992 8737 | .transpose()?
|
8738 + | /* ServerBuilderGenerator.kt:630 */
|
6993 8739 | .map(|v: crate::model::FixedValueInteger| v.into())
|
8740 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
6994 8741 | .unwrap_or(0i32),
|
8742 + | /* ServerBuilderGenerator.kt:546 */
|
6995 8743 | range_short: self
|
6996 8744 | .range_short
|
8745 + | /* ServerBuilderGenerator.kt:602 */
|
6997 8746 | .map(|v| match v {
|
6998 8747 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6999 8748 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7000 8749 | })
|
8750 + | /* ServerBuilderGenerator.kt:614 */
|
7001 8751 | .map(|res| res.map_err(ConstraintViolation::RangeShort))
|
7002 8752 | .transpose()?
|
8753 + | /* ServerBuilderGenerator.kt:630 */
|
7003 8754 | .map(|v: crate::model::RangeShort| v.into())
|
8755 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7004 8756 | .unwrap_or(0i16),
|
8757 + | /* ServerBuilderGenerator.kt:546 */
|
7005 8758 | min_range_short: self
|
7006 8759 | .min_range_short
|
8760 + | /* ServerBuilderGenerator.kt:602 */
|
7007 8761 | .map(|v| match v {
|
7008 8762 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7009 8763 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7010 8764 | })
|
8765 + | /* ServerBuilderGenerator.kt:614 */
|
7011 8766 | .map(|res| res.map_err(ConstraintViolation::MinRangeShort))
|
7012 8767 | .transpose()?
|
8768 + | /* ServerBuilderGenerator.kt:630 */
|
7013 8769 | .map(|v: crate::model::MinRangeShort| v.into())
|
8770 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7014 8771 | .unwrap_or(0i16),
|
8772 + | /* ServerBuilderGenerator.kt:546 */
|
7015 8773 | max_range_short: self
|
7016 8774 | .max_range_short
|
8775 + | /* ServerBuilderGenerator.kt:602 */
|
7017 8776 | .map(|v| match v {
|
7018 8777 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7019 8778 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7020 8779 | })
|
8780 + | /* ServerBuilderGenerator.kt:614 */
|
7021 8781 | .map(|res| res.map_err(ConstraintViolation::MaxRangeShort))
|
7022 8782 | .transpose()?
|
8783 + | /* ServerBuilderGenerator.kt:630 */
|
7023 8784 | .map(|v: crate::model::MaxRangeShort| v.into())
|
8785 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7024 8786 | .unwrap_or(0i16),
|
8787 + | /* ServerBuilderGenerator.kt:546 */
|
7025 8788 | fixed_value_short: self
|
7026 8789 | .fixed_value_short
|
8790 + | /* ServerBuilderGenerator.kt:602 */
|
7027 8791 | .map(|v| match v {
|
7028 8792 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7029 8793 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7030 8794 | })
|
8795 + | /* ServerBuilderGenerator.kt:614 */
|
7031 8796 | .map(|res| res.map_err(ConstraintViolation::FixedValueShort))
|
7032 8797 | .transpose()?
|
8798 + | /* ServerBuilderGenerator.kt:630 */
|
7033 8799 | .map(|v: crate::model::FixedValueShort| v.into())
|
8800 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7034 8801 | .unwrap_or(0i16),
|
8802 + | /* ServerBuilderGenerator.kt:546 */
|
7035 8803 | range_long: self
|
7036 8804 | .range_long
|
8805 + | /* ServerBuilderGenerator.kt:602 */
|
7037 8806 | .map(|v| match v {
|
7038 8807 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7039 8808 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7040 8809 | })
|
8810 + | /* ServerBuilderGenerator.kt:614 */
|
7041 8811 | .map(|res| res.map_err(ConstraintViolation::RangeLong))
|
7042 8812 | .transpose()?
|
8813 + | /* ServerBuilderGenerator.kt:630 */
|
7043 8814 | .map(|v: crate::model::RangeLong| v.into())
|
8815 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7044 8816 | .unwrap_or(0i64),
|
8817 + | /* ServerBuilderGenerator.kt:546 */
|
7045 8818 | min_range_long: self
|
7046 8819 | .min_range_long
|
8820 + | /* ServerBuilderGenerator.kt:602 */
|
7047 8821 | .map(|v| match v {
|
7048 8822 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7049 8823 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7050 8824 | })
|
8825 + | /* ServerBuilderGenerator.kt:614 */
|
7051 8826 | .map(|res| res.map_err(ConstraintViolation::MinRangeLong))
|
7052 8827 | .transpose()?
|
8828 + | /* ServerBuilderGenerator.kt:630 */
|
7053 8829 | .map(|v: crate::model::MinRangeLong| v.into())
|
8830 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7054 8831 | .unwrap_or(0i64),
|
8832 + | /* ServerBuilderGenerator.kt:546 */
|
7055 8833 | max_range_long: self
|
7056 8834 | .max_range_long
|
8835 + | /* ServerBuilderGenerator.kt:602 */
|
7057 8836 | .map(|v| match v {
|
7058 8837 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7059 8838 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7060 8839 | })
|
8840 + | /* ServerBuilderGenerator.kt:614 */
|
7061 8841 | .map(|res| res.map_err(ConstraintViolation::MaxRangeLong))
|
7062 8842 | .transpose()?
|
8843 + | /* ServerBuilderGenerator.kt:630 */
|
7063 8844 | .map(|v: crate::model::MaxRangeLong| v.into())
|
8845 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7064 8846 | .unwrap_or(0i64),
|
8847 + | /* ServerBuilderGenerator.kt:546 */
|
7065 8848 | fixed_value_long: self
|
7066 8849 | .fixed_value_long
|
8850 + | /* ServerBuilderGenerator.kt:602 */
|
7067 8851 | .map(|v| match v {
|
7068 8852 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7069 8853 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7070 8854 | })
|
8855 + | /* ServerBuilderGenerator.kt:614 */
|
7071 8856 | .map(|res| res.map_err(ConstraintViolation::FixedValueLong))
|
7072 8857 | .transpose()?
|
8858 + | /* ServerBuilderGenerator.kt:630 */
|
7073 8859 | .map(|v: crate::model::FixedValueLong| v.into())
|
8860 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7074 8861 | .unwrap_or(0i64),
|
8862 + | /* ServerBuilderGenerator.kt:546 */
|
7075 8863 | range_byte: self
|
7076 8864 | .range_byte
|
8865 + | /* ServerBuilderGenerator.kt:602 */
|
7077 8866 | .map(|v| match v {
|
7078 8867 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7079 8868 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7080 8869 | })
|
8870 + | /* ServerBuilderGenerator.kt:614 */
|
7081 8871 | .map(|res| res.map_err(ConstraintViolation::RangeByte))
|
7082 8872 | .transpose()?
|
8873 + | /* ServerBuilderGenerator.kt:630 */
|
7083 8874 | .map(|v: crate::model::RangeByte| v.into())
|
8875 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7084 8876 | .unwrap_or(0i8),
|
8877 + | /* ServerBuilderGenerator.kt:546 */
|
7085 8878 | min_range_byte: self
|
7086 8879 | .min_range_byte
|
8880 + | /* ServerBuilderGenerator.kt:602 */
|
7087 8881 | .map(|v| match v {
|
7088 8882 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7089 8883 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7090 8884 | })
|
8885 + | /* ServerBuilderGenerator.kt:614 */
|
7091 8886 | .map(|res| res.map_err(ConstraintViolation::MinRangeByte))
|
7092 8887 | .transpose()?
|
8888 + | /* ServerBuilderGenerator.kt:630 */
|
7093 8889 | .map(|v: crate::model::MinRangeByte| v.into())
|
8890 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7094 8891 | .unwrap_or(0i8),
|
8892 + | /* ServerBuilderGenerator.kt:546 */
|
7095 8893 | max_range_byte: self
|
7096 8894 | .max_range_byte
|
8895 + | /* ServerBuilderGenerator.kt:602 */
|
7097 8896 | .map(|v| match v {
|
7098 8897 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7099 8898 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7100 8899 | })
|
8900 + | /* ServerBuilderGenerator.kt:614 */
|
7101 8901 | .map(|res| res.map_err(ConstraintViolation::MaxRangeByte))
|
7102 8902 | .transpose()?
|
8903 + | /* ServerBuilderGenerator.kt:630 */
|
7103 8904 | .map(|v: crate::model::MaxRangeByte| v.into())
|
8905 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7104 8906 | .unwrap_or(0i8),
|
8907 + | /* ServerBuilderGenerator.kt:546 */
|
7105 8908 | fixed_value_byte: self
|
7106 8909 | .fixed_value_byte
|
8910 + | /* ServerBuilderGenerator.kt:602 */
|
7107 8911 | .map(|v| match v {
|
7108 8912 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7109 8913 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7110 8914 | })
|
8915 + | /* ServerBuilderGenerator.kt:614 */
|
7111 8916 | .map(|res| res.map_err(ConstraintViolation::FixedValueByte))
|
7112 8917 | .transpose()?
|
8918 + | /* ServerBuilderGenerator.kt:630 */
|
7113 8919 | .map(|v: crate::model::FixedValueByte| v.into())
|
8920 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7114 8921 | .unwrap_or(0i8),
|
8922 + | /* ServerBuilderGenerator.kt:546 */
|
7115 8923 | con_b_list: self
|
7116 8924 | .con_b_list
|
8925 + | /* ServerBuilderGenerator.kt:602 */
|
7117 8926 | .map(|v| match v {
|
7118 8927 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7119 8928 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7120 8929 | })
|
8930 + | /* ServerBuilderGenerator.kt:614 */
|
7121 8931 | .map(|res| res.map(|v| v.into()).map_err(ConstraintViolation::ConBList))
|
7122 8932 | .transpose()?,
|
8933 + | /* ServerBuilderGenerator.kt:546 */
|
7123 8934 | length_list: self
|
7124 8935 | .length_list
|
8936 + | /* ServerBuilderGenerator.kt:602 */
|
7125 8937 | .map(|v| match v {
|
7126 8938 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7127 8939 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7128 8940 | })
|
8941 + | /* ServerBuilderGenerator.kt:614 */
|
7129 8942 | .map(|res| res.map_err(ConstraintViolation::LengthList))
|
7130 8943 | .transpose()?
|
8944 + | /* ServerBuilderGenerator.kt:630 */
|
7131 8945 | .map(|v: crate::model::LengthList| v.into()),
|
8946 + | /* ServerBuilderGenerator.kt:546 */
|
7132 8947 | sensitive_length_list: self
|
7133 8948 | .sensitive_length_list
|
8949 + | /* ServerBuilderGenerator.kt:602 */
|
7134 8950 | .map(|v| match v {
|
7135 8951 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7136 8952 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7137 8953 | })
|
8954 + | /* ServerBuilderGenerator.kt:614 */
|
7138 8955 | .map(|res| res.map_err(ConstraintViolation::SensitiveLengthList))
|
7139 8956 | .transpose()?
|
8957 + | /* ServerBuilderGenerator.kt:630 */
|
7140 8958 | .map(|v: crate::model::SensitiveLengthList| v.into()),
|
8959 + | /* ServerBuilderGenerator.kt:546 */
|
7141 8960 | con_b_set: self
|
7142 8961 | .con_b_set
|
8962 + | /* ServerBuilderGenerator.kt:602 */
|
7143 8963 | .map(|v| match v {
|
7144 8964 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7145 8965 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7146 8966 | })
|
8967 + | /* ServerBuilderGenerator.kt:614 */
|
7147 8968 | .map(|res| res.map_err(ConstraintViolation::ConBSet))
|
7148 8969 | .transpose()?
|
8970 + | /* ServerBuilderGenerator.kt:630 */
|
7149 8971 | .map(|v: crate::model::ConBSet| v.into()),
|
8972 + | /* ServerBuilderGenerator.kt:546 */
|
7150 8973 | con_b_map: self
|
7151 8974 | .con_b_map
|
8975 + | /* ServerBuilderGenerator.kt:602 */
|
7152 8976 | .map(|v| match v {
|
7153 8977 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7154 8978 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7155 8979 | })
|
8980 + | /* ServerBuilderGenerator.kt:614 */
|
7156 8981 | .map(|res| res.map_err(ConstraintViolation::ConBMap))
|
7157 8982 | .transpose()?
|
8983 + | /* ServerBuilderGenerator.kt:630 */
|
7158 8984 | .map(|v: crate::model::ConBMap| v.into()),
|
8985 + | /* ServerBuilderGenerator.kt:546 */
|
7159 8986 | length_map: self
|
7160 8987 | .length_map
|
8988 + | /* ServerBuilderGenerator.kt:602 */
|
7161 8989 | .map(|v| match v {
|
7162 8990 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7163 8991 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7164 8992 | })
|
8993 + | /* ServerBuilderGenerator.kt:614 */
|
7165 8994 | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
7166 8995 | .transpose()?
|
8996 + | /* ServerBuilderGenerator.kt:630 */
|
7167 8997 | .map(|v: crate::model::LengthMap| v.into()),
|
8998 + | /* ServerBuilderGenerator.kt:546 */
|
7168 8999 | map_of_map_of_list_of_list_of_con_b: self
|
7169 9000 | .map_of_map_of_list_of_list_of_con_b
|
9001 + | /* ServerBuilderGenerator.kt:602 */
|
7170 9002 | .map(|v| match v {
|
7171 9003 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7172 9004 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7173 9005 | })
|
9006 + | /* ServerBuilderGenerator.kt:614 */
|
7174 9007 | .map(|res| {
|
7175 9008 | res.map(|v| v.into())
|
7176 9009 | .map_err(ConstraintViolation::MapOfMapOfListOfListOfConB)
|
7177 9010 | })
|
7178 9011 | .transpose()?,
|
9012 + | /* ServerBuilderGenerator.kt:546 */
|
7179 9013 | sparse_map: self
|
7180 9014 | .sparse_map
|
9015 + | /* ServerBuilderGenerator.kt:602 */
|
7181 9016 | .map(|v| match v {
|
7182 9017 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7183 9018 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7184 9019 | })
|
9020 + | /* ServerBuilderGenerator.kt:614 */
|
7185 9021 | .map(|res| {
|
7186 9022 | res.map(|v| v.into())
|
7187 9023 | .map_err(ConstraintViolation::SparseMap)
|
7188 9024 | })
|
7189 9025 | .transpose()?,
|
9026 + | /* ServerBuilderGenerator.kt:546 */
|
7190 9027 | sparse_list: self
|
7191 9028 | .sparse_list
|
9029 + | /* ServerBuilderGenerator.kt:602 */
|
7192 9030 | .map(|v| match v {
|
7193 9031 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7194 9032 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7195 9033 | })
|
9034 + | /* ServerBuilderGenerator.kt:614 */
|
7196 9035 | .map(|res| {
|
7197 9036 | res.map(|v| v.into())
|
7198 9037 | .map_err(ConstraintViolation::SparseList)
|
7199 9038 | })
|
7200 9039 | .transpose()?,
|
9040 + | /* ServerBuilderGenerator.kt:546 */
|
7201 9041 | sparse_length_map: self
|
7202 9042 | .sparse_length_map
|
9043 + | /* ServerBuilderGenerator.kt:602 */
|
7203 9044 | .map(|v| match v {
|
7204 9045 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7205 9046 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7206 9047 | })
|
9048 + | /* ServerBuilderGenerator.kt:614 */
|
7207 9049 | .map(|res| res.map_err(ConstraintViolation::SparseLengthMap))
|
7208 9050 | .transpose()?
|
9051 + | /* ServerBuilderGenerator.kt:630 */
|
7209 9052 | .map(|v: crate::model::SparseLengthMap| v.into()),
|
9053 + | /* ServerBuilderGenerator.kt:546 */
|
7210 9054 | sparse_length_list: self
|
7211 9055 | .sparse_length_list
|
9056 + | /* ServerBuilderGenerator.kt:602 */
|
7212 9057 | .map(|v| match v {
|
7213 9058 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7214 9059 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7215 9060 | })
|
9061 + | /* ServerBuilderGenerator.kt:614 */
|
7216 9062 | .map(|res| res.map_err(ConstraintViolation::SparseLengthList))
|
7217 9063 | .transpose()?
|
9064 + | /* ServerBuilderGenerator.kt:630 */
|
7218 9065 | .map(|v: crate::model::SparseLengthList| v.into()),
|
9066 + | /* ServerBuilderGenerator.kt:546 */
|
7219 9067 | constrained_union: self
|
7220 9068 | .constrained_union
|
9069 + | /* ServerBuilderGenerator.kt:602 */
|
7221 9070 | .map(|v| match v {
|
7222 9071 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7223 9072 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7224 9073 | })
|
9074 + | /* ServerBuilderGenerator.kt:614 */
|
7225 9075 | .map(|res| res.map_err(ConstraintViolation::ConstrainedUnion))
|
7226 9076 | .transpose()?,
|
9077 + | /* ServerBuilderGenerator.kt:546 */
|
7227 9078 | enum_string: self
|
7228 9079 | .enum_string
|
9080 + | /* ServerBuilderGenerator.kt:602 */
|
7229 9081 | .map(|v| match v {
|
7230 9082 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7231 9083 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7232 9084 | })
|
9085 + | /* ServerBuilderGenerator.kt:614 */
|
7233 9086 | .map(|res| res.map_err(ConstraintViolation::EnumString))
|
7234 9087 | .transpose()?,
|
9088 + | /* ServerBuilderGenerator.kt:546 */
|
7235 9089 | list_of_length_string: self
|
7236 9090 | .list_of_length_string
|
9091 + | /* ServerBuilderGenerator.kt:602 */
|
7237 9092 | .map(|v| match v {
|
7238 9093 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7239 9094 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7240 9095 | })
|
9096 + | /* ServerBuilderGenerator.kt:614 */
|
7241 9097 | .map(|res| {
|
7242 9098 | res.map(|v| v.into())
|
7243 9099 | .map_err(ConstraintViolation::ListOfLengthString)
|
7244 9100 | })
|
7245 9101 | .transpose()?,
|
9102 + | /* ServerBuilderGenerator.kt:546 */
|
7246 9103 | set_of_length_string: self
|
7247 9104 | .set_of_length_string
|
9105 + | /* ServerBuilderGenerator.kt:602 */
|
7248 9106 | .map(|v| match v {
|
7249 9107 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7250 9108 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7251 9109 | })
|
9110 + | /* ServerBuilderGenerator.kt:614 */
|
7252 9111 | .map(|res| res.map_err(ConstraintViolation::SetOfLengthString))
|
7253 9112 | .transpose()?
|
9113 + | /* ServerBuilderGenerator.kt:630 */
|
7254 9114 | .map(|v: crate::model::SetOfLengthString| v.into()),
|
9115 + | /* ServerBuilderGenerator.kt:546 */
|
7255 9116 | map_of_length_string: self
|
7256 9117 | .map_of_length_string
|
9118 + | /* ServerBuilderGenerator.kt:602 */
|
7257 9119 | .map(|v| match v {
|
7258 9120 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7259 9121 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7260 9122 | })
|
9123 + | /* ServerBuilderGenerator.kt:614 */
|
7261 9124 | .map(|res| {
|
7262 9125 | res.map(|v| v.into())
|
7263 9126 | .map_err(ConstraintViolation::MapOfLengthString)
|
7264 9127 | })
|
7265 9128 | .transpose()?,
|
9129 + | /* ServerBuilderGenerator.kt:546 */
|
7266 9130 | list_of_length_blob: self
|
7267 9131 | .list_of_length_blob
|
9132 + | /* ServerBuilderGenerator.kt:602 */
|
7268 9133 | .map(|v| match v {
|
7269 9134 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7270 9135 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7271 9136 | })
|
9137 + | /* ServerBuilderGenerator.kt:614 */
|
7272 9138 | .map(|res| {
|
7273 9139 | res.map(|v| v.into())
|
7274 9140 | .map_err(ConstraintViolation::ListOfLengthBlob)
|
7275 9141 | })
|
7276 9142 | .transpose()?,
|
9143 + | /* ServerBuilderGenerator.kt:546 */
|
7277 9144 | map_of_length_blob: self
|
7278 9145 | .map_of_length_blob
|
9146 + | /* ServerBuilderGenerator.kt:602 */
|
7279 9147 | .map(|v| match v {
|
7280 9148 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7281 9149 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7282 9150 | })
|
9151 + | /* ServerBuilderGenerator.kt:614 */
|
7283 9152 | .map(|res| {
|
7284 9153 | res.map(|v| v.into())
|
7285 9154 | .map_err(ConstraintViolation::MapOfLengthBlob)
|
7286 9155 | })
|
7287 9156 | .transpose()?,
|
9157 + | /* ServerBuilderGenerator.kt:546 */
|
7288 9158 | list_of_range_integer: self
|
7289 9159 | .list_of_range_integer
|
9160 + | /* ServerBuilderGenerator.kt:602 */
|
7290 9161 | .map(|v| match v {
|
7291 9162 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7292 9163 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7293 9164 | })
|
9165 + | /* ServerBuilderGenerator.kt:614 */
|
7294 9166 | .map(|res| {
|
7295 9167 | res.map(|v| v.into())
|
7296 9168 | .map_err(ConstraintViolation::ListOfRangeInteger)
|
7297 9169 | })
|
7298 9170 | .transpose()?,
|
9171 + | /* ServerBuilderGenerator.kt:546 */
|
7299 9172 | set_of_range_integer: self
|
7300 9173 | .set_of_range_integer
|
9174 + | /* ServerBuilderGenerator.kt:602 */
|
7301 9175 | .map(|v| match v {
|
7302 9176 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7303 9177 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7304 9178 | })
|
9179 + | /* ServerBuilderGenerator.kt:614 */
|
7305 9180 | .map(|res| res.map_err(ConstraintViolation::SetOfRangeInteger))
|
7306 9181 | .transpose()?
|
9182 + | /* ServerBuilderGenerator.kt:630 */
|
7307 9183 | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
9184 + | /* ServerBuilderGenerator.kt:546 */
|
7308 9185 | map_of_range_integer: self
|
7309 9186 | .map_of_range_integer
|
9187 + | /* ServerBuilderGenerator.kt:602 */
|
7310 9188 | .map(|v| match v {
|
7311 9189 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7312 9190 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7313 9191 | })
|
9192 + | /* ServerBuilderGenerator.kt:614 */
|
7314 9193 | .map(|res| {
|
7315 9194 | res.map(|v| v.into())
|
7316 9195 | .map_err(ConstraintViolation::MapOfRangeInteger)
|
7317 9196 | })
|
7318 9197 | .transpose()?,
|
9198 + | /* ServerBuilderGenerator.kt:546 */
|
7319 9199 | list_of_range_short: self
|
7320 9200 | .list_of_range_short
|
9201 + | /* ServerBuilderGenerator.kt:602 */
|
7321 9202 | .map(|v| match v {
|
7322 9203 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7323 9204 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7324 9205 | })
|
9206 + | /* ServerBuilderGenerator.kt:614 */
|
7325 9207 | .map(|res| {
|
7326 9208 | res.map(|v| v.into())
|
7327 9209 | .map_err(ConstraintViolation::ListOfRangeShort)
|
7328 9210 | })
|
7329 9211 | .transpose()?,
|
9212 + | /* ServerBuilderGenerator.kt:546 */
|
7330 9213 | set_of_range_short: self
|
7331 9214 | .set_of_range_short
|
9215 + | /* ServerBuilderGenerator.kt:602 */
|
7332 9216 | .map(|v| match v {
|
7333 9217 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7334 9218 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7335 9219 | })
|
9220 + | /* ServerBuilderGenerator.kt:614 */
|
7336 9221 | .map(|res| res.map_err(ConstraintViolation::SetOfRangeShort))
|
7337 9222 | .transpose()?
|
9223 + | /* ServerBuilderGenerator.kt:630 */
|
7338 9224 | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
9225 + | /* ServerBuilderGenerator.kt:546 */
|
7339 9226 | map_of_range_short: self
|
7340 9227 | .map_of_range_short
|
9228 + | /* ServerBuilderGenerator.kt:602 */
|
7341 9229 | .map(|v| match v {
|
7342 9230 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7343 9231 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7344 9232 | })
|
9233 + | /* ServerBuilderGenerator.kt:614 */
|
7345 9234 | .map(|res| {
|
7346 9235 | res.map(|v| v.into())
|
7347 9236 | .map_err(ConstraintViolation::MapOfRangeShort)
|
7348 9237 | })
|
7349 9238 | .transpose()?,
|
9239 + | /* ServerBuilderGenerator.kt:546 */
|
7350 9240 | list_of_range_long: self
|
7351 9241 | .list_of_range_long
|
9242 + | /* ServerBuilderGenerator.kt:602 */
|
7352 9243 | .map(|v| match v {
|
7353 9244 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7354 9245 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7355 9246 | })
|
9247 + | /* ServerBuilderGenerator.kt:614 */
|
7356 9248 | .map(|res| {
|
7357 9249 | res.map(|v| v.into())
|
7358 9250 | .map_err(ConstraintViolation::ListOfRangeLong)
|
7359 9251 | })
|
7360 9252 | .transpose()?,
|
9253 + | /* ServerBuilderGenerator.kt:546 */
|
7361 9254 | set_of_range_long: self
|
7362 9255 | .set_of_range_long
|
9256 + | /* ServerBuilderGenerator.kt:602 */
|
7363 9257 | .map(|v| match v {
|
7364 9258 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7365 9259 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7366 9260 | })
|
9261 + | /* ServerBuilderGenerator.kt:614 */
|
7367 9262 | .map(|res| res.map_err(ConstraintViolation::SetOfRangeLong))
|
7368 9263 | .transpose()?
|
9264 + | /* ServerBuilderGenerator.kt:630 */
|
7369 9265 | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
9266 + | /* ServerBuilderGenerator.kt:546 */
|
7370 9267 | map_of_range_long: self
|
7371 9268 | .map_of_range_long
|
9269 + | /* ServerBuilderGenerator.kt:602 */
|
7372 9270 | .map(|v| match v {
|
7373 9271 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7374 9272 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7375 9273 | })
|
9274 + | /* ServerBuilderGenerator.kt:614 */
|
7376 9275 | .map(|res| {
|
7377 9276 | res.map(|v| v.into())
|
7378 9277 | .map_err(ConstraintViolation::MapOfRangeLong)
|
7379 9278 | })
|
7380 9279 | .transpose()?,
|
9280 + | /* ServerBuilderGenerator.kt:546 */
|
7381 9281 | list_of_range_byte: self
|
7382 9282 | .list_of_range_byte
|
9283 + | /* ServerBuilderGenerator.kt:602 */
|
7383 9284 | .map(|v| match v {
|
7384 9285 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7385 9286 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7386 9287 | })
|
9288 + | /* ServerBuilderGenerator.kt:614 */
|
7387 9289 | .map(|res| {
|
7388 9290 | res.map(|v| v.into())
|
7389 9291 | .map_err(ConstraintViolation::ListOfRangeByte)
|
7390 9292 | })
|
7391 9293 | .transpose()?,
|
9294 + | /* ServerBuilderGenerator.kt:546 */
|
7392 9295 | set_of_range_byte: self
|
7393 9296 | .set_of_range_byte
|
9297 + | /* ServerBuilderGenerator.kt:602 */
|
7394 9298 | .map(|v| match v {
|
7395 9299 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7396 9300 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7397 9301 | })
|
9302 + | /* ServerBuilderGenerator.kt:614 */
|
7398 9303 | .map(|res| res.map_err(ConstraintViolation::SetOfRangeByte))
|
7399 9304 | .transpose()?
|
9305 + | /* ServerBuilderGenerator.kt:630 */
|
7400 9306 | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
9307 + | /* ServerBuilderGenerator.kt:546 */
|
7401 9308 | map_of_range_byte: self
|
7402 9309 | .map_of_range_byte
|
9310 + | /* ServerBuilderGenerator.kt:602 */
|
7403 9311 | .map(|v| match v {
|
7404 9312 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7405 9313 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7406 9314 | })
|
9315 + | /* ServerBuilderGenerator.kt:614 */
|
7407 9316 | .map(|res| {
|
7408 9317 | res.map(|v| v.into())
|
7409 9318 | .map_err(ConstraintViolation::MapOfRangeByte)
|
7410 9319 | })
|
7411 9320 | .transpose()?,
|
9321 + | /* ServerBuilderGenerator.kt:546 */
|
7412 9322 | non_streaming_blob: self.non_streaming_blob,
|
9323 + | /* ServerBuilderGenerator.kt:546 */
|
7413 9324 | pattern_string: self
|
7414 9325 | .pattern_string
|
9326 + | /* ServerBuilderGenerator.kt:602 */
|
7415 9327 | .map(|v| match v {
|
7416 9328 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7417 9329 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7418 9330 | })
|
9331 + | /* ServerBuilderGenerator.kt:614 */
|
7419 9332 | .map(|res| res.map_err(ConstraintViolation::PatternString))
|
7420 9333 | .transpose()?
|
9334 + | /* ServerBuilderGenerator.kt:630 */
|
7421 9335 | .map(|v: crate::model::PatternString| v.into()),
|
9336 + | /* ServerBuilderGenerator.kt:546 */
|
7422 9337 | map_of_pattern_string: self
|
7423 9338 | .map_of_pattern_string
|
9339 + | /* ServerBuilderGenerator.kt:602 */
|
7424 9340 | .map(|v| match v {
|
7425 9341 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7426 9342 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7427 9343 | })
|
9344 + | /* ServerBuilderGenerator.kt:614 */
|
7428 9345 | .map(|res| {
|
7429 9346 | res.map(|v| v.into())
|
7430 9347 | .map_err(ConstraintViolation::MapOfPatternString)
|
7431 9348 | })
|
7432 9349 | .transpose()?,
|
9350 + | /* ServerBuilderGenerator.kt:546 */
|
7433 9351 | list_of_pattern_string: self
|
7434 9352 | .list_of_pattern_string
|
9353 + | /* ServerBuilderGenerator.kt:602 */
|
7435 9354 | .map(|v| match v {
|
7436 9355 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7437 9356 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7438 9357 | })
|
9358 + | /* ServerBuilderGenerator.kt:614 */
|
7439 9359 | .map(|res| {
|
7440 9360 | res.map(|v| v.into())
|
7441 9361 | .map_err(ConstraintViolation::ListOfPatternString)
|
7442 9362 | })
|
7443 9363 | .transpose()?,
|
9364 + | /* ServerBuilderGenerator.kt:546 */
|
7444 9365 | set_of_pattern_string: self
|
7445 9366 | .set_of_pattern_string
|
9367 + | /* ServerBuilderGenerator.kt:602 */
|
7446 9368 | .map(|v| match v {
|
7447 9369 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7448 9370 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7449 9371 | })
|
9372 + | /* ServerBuilderGenerator.kt:614 */
|
7450 9373 | .map(|res| res.map_err(ConstraintViolation::SetOfPatternString))
|
7451 9374 | .transpose()?
|
9375 + | /* ServerBuilderGenerator.kt:630 */
|
7452 9376 | .map(|v: crate::model::SetOfPatternString| v.into()),
|
9377 + | /* ServerBuilderGenerator.kt:546 */
|
7453 9378 | length_length_pattern_string: self
|
7454 9379 | .length_length_pattern_string
|
9380 + | /* ServerBuilderGenerator.kt:602 */
|
7455 9381 | .map(|v| match v {
|
7456 9382 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7457 9383 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7458 9384 | })
|
9385 + | /* ServerBuilderGenerator.kt:614 */
|
7459 9386 | .map(|res| res.map_err(ConstraintViolation::LengthLengthPatternString))
|
7460 9387 | .transpose()?
|
9388 + | /* ServerBuilderGenerator.kt:630 */
|
7461 9389 | .map(|v: crate::model::LengthPatternString| v.into()),
|
9390 + | /* ServerBuilderGenerator.kt:546 */
|
7462 9391 | map_of_length_pattern_string: self
|
7463 9392 | .map_of_length_pattern_string
|
9393 + | /* ServerBuilderGenerator.kt:602 */
|
7464 9394 | .map(|v| match v {
|
7465 9395 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7466 9396 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7467 9397 | })
|
9398 + | /* ServerBuilderGenerator.kt:614 */
|
7468 9399 | .map(|res| {
|
7469 9400 | res.map(|v| v.into())
|
7470 9401 | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
7471 9402 | })
|
7472 9403 | .transpose()?,
|
9404 + | /* ServerBuilderGenerator.kt:546 */
|
7473 9405 | list_of_length_pattern_string: self
|
7474 9406 | .list_of_length_pattern_string
|
9407 + | /* ServerBuilderGenerator.kt:602 */
|
7475 9408 | .map(|v| match v {
|
7476 9409 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7477 9410 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7478 9411 | })
|
9412 + | /* ServerBuilderGenerator.kt:614 */
|
7479 9413 | .map(|res| {
|
7480 9414 | res.map(|v| v.into())
|
7481 9415 | .map_err(ConstraintViolation::ListOfLengthPatternString)
|
7482 9416 | })
|
7483 9417 | .transpose()?,
|
9418 + | /* ServerBuilderGenerator.kt:546 */
|
7484 9419 | set_of_length_pattern_string: self
|
7485 9420 | .set_of_length_pattern_string
|
9421 + | /* ServerBuilderGenerator.kt:602 */
|
7486 9422 | .map(|v| match v {
|
7487 9423 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7488 9424 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7489 9425 | })
|
9426 + | /* ServerBuilderGenerator.kt:614 */
|
7490 9427 | .map(|res| res.map_err(ConstraintViolation::SetOfLengthPatternString))
|
7491 9428 | .transpose()?
|
9429 + | /* ServerBuilderGenerator.kt:630 */
|
7492 9430 | .map(|v: crate::model::SetOfLengthPatternString| v.into()),
|
9431 + | /* ServerBuilderGenerator.kt:546 */
|
7493 9432 | length_list_of_pattern_string: self
|
7494 9433 | .length_list_of_pattern_string
|
9434 + | /* ServerBuilderGenerator.kt:602 */
|
7495 9435 | .map(|v| match v {
|
7496 9436 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7497 9437 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7498 9438 | })
|
9439 + | /* ServerBuilderGenerator.kt:614 */
|
7499 9440 | .map(|res| res.map_err(ConstraintViolation::LengthListOfPatternString))
|
7500 9441 | .transpose()?
|
9442 + | /* ServerBuilderGenerator.kt:630 */
|
7501 9443 | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
9444 + | /* ServerBuilderGenerator.kt:546 */
|
7502 9445 | length_set_of_pattern_string: self
|
7503 9446 | .length_set_of_pattern_string
|
9447 + | /* ServerBuilderGenerator.kt:602 */
|
7504 9448 | .map(|v| match v {
|
7505 9449 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7506 9450 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7507 9451 | })
|
9452 + | /* ServerBuilderGenerator.kt:614 */
|
7508 9453 | .map(|res| res.map_err(ConstraintViolation::LengthSetOfPatternString))
|
7509 9454 | .transpose()?
|
9455 + | /* ServerBuilderGenerator.kt:630 */
|
7510 9456 | .map(|v: crate::model::LengthSetOfPatternString| v.into()),
|
7511 - | })
|
9457 + | /* ServerBuilderGenerator.kt:542 */
|
9458 + | }, /* ServerBuilderGenerator.kt:287 */
|
9459 + | )
|
9460 + | /* ServerBuilderGenerator.kt:283 */
|
7512 9461 | }
|
9462 + | /* ServerBuilderGenerator.kt:215 */
|
7513 9463 | }
|
9464 + |
|
9465 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7514 9466 | }
|
7515 - | /// See [`ConA`](crate::model::ConA).
|
9467 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConA`](crate::model::ConA).
|
7516 9468 | pub mod con_a {
|
7517 9469 |
|
9470 + | /* RustType.kt:516 */
|
7518 9471 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7519 - | /// Holds one variant for each of the ways the builder can fail.
|
7520 - |
|
9472 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
9473 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7521 9474 | #[allow(clippy::enum_variant_names)]
|
7522 9475 | pub enum ConstraintViolation {
|
7523 - | /// `con_b` was not provided but it is required when building `ConA`.
|
9476 + | /// /* ServerBuilderConstraintViolations.kt:138 */`con_b` was not provided but it is required when building `ConA`.
|
9477 + | /* ServerBuilderConstraintViolations.kt:143 */
|
7524 9478 | MissingConB,
|
9479 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7525 9480 | }
|
9481 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7526 9482 | impl ::std::fmt::Display for ConstraintViolation {
|
9483 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7527 9484 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9485 + | /* ServerBuilderConstraintViolations.kt:119 */
|
7528 9486 | match self {
|
9487 + | /* ServerBuilderConstraintViolations.kt:127 */
|
7529 9488 | ConstraintViolation::MissingConB => write!(
|
7530 9489 | f,
|
7531 9490 | "`con_b` was not provided but it is required when building `ConA`"
|
7532 9491 | ),
|
9492 + | /* ServerBuilderConstraintViolations.kt:119 */
|
7533 9493 | }
|
9494 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7534 9495 | }
|
9496 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7535 9497 | }
|
9498 + | /* ServerBuilderConstraintViolations.kt:84 */
|
7536 9499 | impl ::std::error::Error for ConstraintViolation {}
|
9500 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
7537 9501 | impl ::std::convert::TryFrom<Builder> for crate::model::ConA {
|
7538 9502 | type Error = ConstraintViolation;
|
7539 9503 |
|
7540 9504 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7541 9505 | builder.build()
|
7542 9506 | }
|
7543 9507 | }
|
7544 - | /// A builder for [`ConA`](crate::model::ConA).
|
9508 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConA`](crate::model::ConA).
|
9509 + | /* RustType.kt:516 */
|
7545 9510 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9511 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7546 9512 | pub struct Builder {
|
9513 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7547 9514 | pub(crate) con_b: ::std::option::Option<crate::model::ConB>,
|
9515 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7548 9516 | pub(crate) opt_con_b: ::std::option::Option<crate::model::ConB>,
|
9517 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7549 9518 | pub(crate) length_string: ::std::option::Option<::std::string::String>,
|
9519 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7550 9520 | pub(crate) min_length_string: ::std::option::Option<::std::string::String>,
|
9521 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7551 9522 | pub(crate) max_length_string: ::std::option::Option<::std::string::String>,
|
9523 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7552 9524 | pub(crate) fixed_length_string: ::std::option::Option<::std::string::String>,
|
9525 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7553 9526 | pub(crate) length_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
9527 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7554 9528 | pub(crate) min_length_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
9529 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7555 9530 | pub(crate) max_length_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
9531 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7556 9532 | pub(crate) fixed_length_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
9533 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7557 9534 | pub(crate) range_integer: ::std::option::Option<i32>,
|
9535 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7558 9536 | pub(crate) min_range_integer: ::std::option::Option<i32>,
|
9537 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7559 9538 | pub(crate) max_range_integer: ::std::option::Option<i32>,
|
9539 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7560 9540 | pub(crate) fixed_value_integer: ::std::option::Option<i32>,
|
9541 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7561 9542 | pub(crate) range_short: ::std::option::Option<i16>,
|
9543 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7562 9544 | pub(crate) min_range_short: ::std::option::Option<i16>,
|
9545 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7563 9546 | pub(crate) max_range_short: ::std::option::Option<i16>,
|
9547 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7564 9548 | pub(crate) fixed_value_short: ::std::option::Option<i16>,
|
9549 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7565 9550 | pub(crate) range_long: ::std::option::Option<i64>,
|
9551 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7566 9552 | pub(crate) min_range_long: ::std::option::Option<i64>,
|
9553 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7567 9554 | pub(crate) max_range_long: ::std::option::Option<i64>,
|
9555 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7568 9556 | pub(crate) fixed_value_long: ::std::option::Option<i64>,
|
9557 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7569 9558 | pub(crate) range_byte: ::std::option::Option<i8>,
|
9559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7570 9560 | pub(crate) min_range_byte: ::std::option::Option<i8>,
|
9561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7571 9562 | pub(crate) max_range_byte: ::std::option::Option<i8>,
|
9563 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7572 9564 | pub(crate) fixed_value_byte: ::std::option::Option<i8>,
|
9565 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7573 9566 | pub(crate) con_b_list:
|
7574 9567 | ::std::option::Option<::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>>,
|
9568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7575 9569 | pub(crate) length_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7576 9571 | pub(crate) sensitive_length_list:
|
7577 9572 | ::std::option::Option<::std::vec::Vec<crate::model::SensitiveStructure>>,
|
9573 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7578 9574 | pub(crate) con_b_set:
|
7579 9575 | ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
9576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7580 9577 | pub(crate) con_b_map: ::std::option::Option<
|
7581 9578 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7582 9579 | >,
|
9580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7583 9581 | pub(crate) length_map: ::std::option::Option<
|
7584 9582 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7585 9583 | >,
|
9584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7586 9585 | pub(crate) map_of_map_of_list_of_list_of_con_b: ::std::option::Option<
|
7587 9586 | ::std::collections::HashMap<
|
7588 9587 | ::std::string::String,
|
7589 9588 | ::std::collections::HashMap<
|
7590 9589 | ::std::string::String,
|
7591 9590 | ::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>,
|
7592 9591 | >,
|
7593 9592 | >,
|
7594 9593 | >,
|
9594 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7595 9595 | pub(crate) sparse_map: ::std::option::Option<
|
7596 9596 | ::std::collections::HashMap<
|
7597 9597 | ::std::string::String,
|
7598 9598 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
7599 9599 | >,
|
7600 9600 | >,
|
9601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7601 9602 | pub(crate) sparse_list:
|
7602 9603 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
9604 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7603 9605 | pub(crate) sparse_length_map: ::std::option::Option<
|
7604 9606 | ::std::collections::HashMap<
|
7605 9607 | ::std::string::String,
|
7606 9608 | ::std::option::Option<::std::string::String>,
|
7607 9609 | >,
|
7608 9610 | >,
|
9611 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7609 9612 | pub(crate) sparse_length_list:
|
7610 9613 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
9614 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7611 9615 | pub(crate) constrained_union: ::std::option::Option<crate::model::ConstrainedUnion>,
|
9616 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7612 9617 | pub(crate) enum_string: ::std::option::Option<crate::model::EnumString>,
|
9618 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7613 9619 | pub(crate) list_of_length_string:
|
7614 9620 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9621 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7615 9622 | pub(crate) set_of_length_string:
|
7616 9623 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9624 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7617 9625 | pub(crate) map_of_length_string: ::std::option::Option<
|
7618 9626 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7619 9627 | >,
|
9628 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7620 9629 | pub(crate) list_of_length_blob:
|
7621 9630 | ::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>>,
|
9631 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7622 9632 | pub(crate) map_of_length_blob: ::std::option::Option<
|
7623 9633 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Blob>,
|
7624 9634 | >,
|
9635 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7625 9636 | pub(crate) list_of_range_integer: ::std::option::Option<::std::vec::Vec<i32>>,
|
9637 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7626 9638 | pub(crate) set_of_range_integer: ::std::option::Option<::std::vec::Vec<i32>>,
|
9639 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7627 9640 | pub(crate) map_of_range_integer:
|
7628 9641 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
9642 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7629 9643 | pub(crate) list_of_range_short: ::std::option::Option<::std::vec::Vec<i16>>,
|
9644 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7630 9645 | pub(crate) set_of_range_short: ::std::option::Option<::std::vec::Vec<i16>>,
|
9646 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7631 9647 | pub(crate) map_of_range_short:
|
7632 9648 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i16>>,
|
9649 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7633 9650 | pub(crate) list_of_range_long: ::std::option::Option<::std::vec::Vec<i64>>,
|
9651 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7634 9652 | pub(crate) set_of_range_long: ::std::option::Option<::std::vec::Vec<i64>>,
|
9653 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7635 9654 | pub(crate) map_of_range_long:
|
7636 9655 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i64>>,
|
9656 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7637 9657 | pub(crate) list_of_range_byte: ::std::option::Option<::std::vec::Vec<i8>>,
|
9658 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7638 9659 | pub(crate) set_of_range_byte: ::std::option::Option<::std::vec::Vec<i8>>,
|
9660 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7639 9661 | pub(crate) map_of_range_byte:
|
7640 9662 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i8>>,
|
9663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7641 9664 | pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
9665 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7642 9666 | pub(crate) pattern_string: ::std::option::Option<::std::string::String>,
|
9667 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7643 9668 | pub(crate) map_of_pattern_string: ::std::option::Option<
|
7644 9669 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7645 9670 | >,
|
9671 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7646 9672 | pub(crate) list_of_pattern_string:
|
7647 9673 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9674 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7648 9675 | pub(crate) set_of_pattern_string:
|
7649 9676 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9677 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7650 9678 | pub(crate) length_length_pattern_string: ::std::option::Option<::std::string::String>,
|
9679 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7651 9680 | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
7652 9681 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7653 9682 | >,
|
9683 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7654 9684 | pub(crate) list_of_length_pattern_string:
|
7655 9685 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9686 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7656 9687 | pub(crate) set_of_length_pattern_string:
|
7657 9688 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9689 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7658 9690 | pub(crate) length_list_of_pattern_string:
|
7659 9691 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9692 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7660 9693 | pub(crate) length_set_of_pattern_string:
|
7661 9694 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9695 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7662 9696 | }
|
9697 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7663 9698 | impl Builder {
|
9699 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7664 9700 | #[allow(missing_docs)] // documentation missing in model
|
9701 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7665 9702 | pub fn con_b(mut self, input: crate::model::ConB) -> Self {
|
7666 - | self.con_b = Some(input);
|
9703 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9704 + | self.con_b =
|
9705 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9706 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9707 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9708 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7667 9709 | self
|
9710 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7668 9711 | }
|
9712 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7669 9713 | #[allow(missing_docs)] // documentation missing in model
|
9714 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7670 9715 | pub fn opt_con_b(mut self, input: ::std::option::Option<crate::model::ConB>) -> Self {
|
7671 - | self.opt_con_b = input;
|
9716 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9717 + | self.opt_con_b =
|
9718 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9719 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7672 9720 | self
|
9721 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7673 9722 | }
|
9723 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7674 9724 | #[allow(missing_docs)] // documentation missing in model
|
9725 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7675 9726 | pub fn length_string(
|
7676 9727 | mut self,
|
7677 9728 | input: ::std::option::Option<::std::string::String>,
|
7678 9729 | ) -> Self {
|
7679 - | self.length_string = input;
|
9730 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9731 + | self.length_string =
|
9732 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9733 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7680 9734 | self
|
9735 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7681 9736 | }
|
9737 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7682 9738 | #[allow(missing_docs)] // documentation missing in model
|
9739 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7683 9740 | pub fn min_length_string(
|
7684 9741 | mut self,
|
7685 9742 | input: ::std::option::Option<::std::string::String>,
|
7686 9743 | ) -> Self {
|
7687 - | self.min_length_string = input;
|
9744 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9745 + | self.min_length_string =
|
9746 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9747 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7688 9748 | self
|
9749 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7689 9750 | }
|
9751 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7690 9752 | #[allow(missing_docs)] // documentation missing in model
|
9753 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7691 9754 | pub fn max_length_string(
|
7692 9755 | mut self,
|
7693 9756 | input: ::std::option::Option<::std::string::String>,
|
7694 9757 | ) -> Self {
|
7695 - | self.max_length_string = input;
|
9758 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9759 + | self.max_length_string =
|
9760 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9761 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7696 9762 | self
|
9763 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7697 9764 | }
|
9765 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7698 9766 | #[allow(missing_docs)] // documentation missing in model
|
9767 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7699 9768 | pub fn fixed_length_string(
|
7700 9769 | mut self,
|
7701 9770 | input: ::std::option::Option<::std::string::String>,
|
7702 9771 | ) -> Self {
|
7703 - | self.fixed_length_string = input;
|
9772 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9773 + | self.fixed_length_string =
|
9774 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9775 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7704 9776 | self
|
9777 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7705 9778 | }
|
9779 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7706 9780 | #[allow(missing_docs)] // documentation missing in model
|
9781 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7707 9782 | pub fn length_blob(
|
7708 9783 | mut self,
|
7709 9784 | input: ::std::option::Option<::aws_smithy_types::Blob>,
|
7710 9785 | ) -> Self {
|
7711 - | self.length_blob = input;
|
9786 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9787 + | self.length_blob =
|
9788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9789 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7712 9790 | self
|
9791 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7713 9792 | }
|
9793 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7714 9794 | #[allow(missing_docs)] // documentation missing in model
|
9795 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7715 9796 | pub fn min_length_blob(
|
7716 9797 | mut self,
|
7717 9798 | input: ::std::option::Option<::aws_smithy_types::Blob>,
|
7718 9799 | ) -> Self {
|
7719 - | self.min_length_blob = input;
|
9800 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9801 + | self.min_length_blob =
|
9802 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7720 9804 | self
|
9805 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7721 9806 | }
|
9807 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7722 9808 | #[allow(missing_docs)] // documentation missing in model
|
9809 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7723 9810 | pub fn max_length_blob(
|
7724 9811 | mut self,
|
7725 9812 | input: ::std::option::Option<::aws_smithy_types::Blob>,
|
7726 9813 | ) -> Self {
|
7727 - | self.max_length_blob = input;
|
9814 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9815 + | self.max_length_blob =
|
9816 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9817 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7728 9818 | self
|
9819 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7729 9820 | }
|
9821 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7730 9822 | #[allow(missing_docs)] // documentation missing in model
|
9823 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7731 9824 | pub fn fixed_length_blob(
|
7732 9825 | mut self,
|
7733 9826 | input: ::std::option::Option<::aws_smithy_types::Blob>,
|
7734 9827 | ) -> Self {
|
7735 - | self.fixed_length_blob = input;
|
9828 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9829 + | self.fixed_length_blob =
|
9830 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9831 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7736 9832 | self
|
9833 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7737 9834 | }
|
9835 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7738 9836 | #[allow(missing_docs)] // documentation missing in model
|
9837 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7739 9838 | pub fn range_integer(mut self, input: i32) -> Self {
|
7740 - | self.range_integer = Some(input);
|
9839 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9840 + | self.range_integer =
|
9841 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9842 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9843 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9844 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7741 9845 | self
|
9846 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7742 9847 | }
|
9848 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7743 9849 | #[allow(missing_docs)] // documentation missing in model
|
9850 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7744 9851 | pub fn min_range_integer(mut self, input: i32) -> Self {
|
7745 - | self.min_range_integer = Some(input);
|
9852 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9853 + | self.min_range_integer =
|
9854 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9855 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9856 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9857 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7746 9858 | self
|
9859 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7747 9860 | }
|
9861 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7748 9862 | #[allow(missing_docs)] // documentation missing in model
|
9863 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7749 9864 | pub fn max_range_integer(mut self, input: i32) -> Self {
|
7750 - | self.max_range_integer = Some(input);
|
9865 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9866 + | self.max_range_integer =
|
9867 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9868 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9869 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9870 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7751 9871 | self
|
9872 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7752 9873 | }
|
9874 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7753 9875 | #[allow(missing_docs)] // documentation missing in model
|
9876 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7754 9877 | pub fn fixed_value_integer(mut self, input: i32) -> Self {
|
7755 - | self.fixed_value_integer = Some(input);
|
9878 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9879 + | self.fixed_value_integer =
|
9880 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9881 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9882 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9883 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7756 9884 | self
|
9885 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7757 9886 | }
|
9887 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7758 9888 | #[allow(missing_docs)] // documentation missing in model
|
9889 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7759 9890 | pub fn range_short(mut self, input: i16) -> Self {
|
7760 - | self.range_short = Some(input);
|
9891 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9892 + | self.range_short =
|
9893 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9894 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9895 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9896 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7761 9897 | self
|
9898 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7762 9899 | }
|
9900 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7763 9901 | #[allow(missing_docs)] // documentation missing in model
|
9902 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7764 9903 | pub fn min_range_short(mut self, input: i16) -> Self {
|
7765 - | self.min_range_short = Some(input);
|
9904 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9905 + | self.min_range_short =
|
9906 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9907 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9908 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9909 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7766 9910 | self
|
9911 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7767 9912 | }
|
9913 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7768 9914 | #[allow(missing_docs)] // documentation missing in model
|
9915 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7769 9916 | pub fn max_range_short(mut self, input: i16) -> Self {
|
7770 - | self.max_range_short = Some(input);
|
9917 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9918 + | self.max_range_short =
|
9919 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9920 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9921 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9922 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7771 9923 | self
|
9924 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7772 9925 | }
|
9926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7773 9927 | #[allow(missing_docs)] // documentation missing in model
|
9928 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7774 9929 | pub fn fixed_value_short(mut self, input: i16) -> Self {
|
7775 - | self.fixed_value_short = Some(input);
|
9930 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9931 + | self.fixed_value_short =
|
9932 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9933 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9934 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7776 9936 | self
|
9937 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7777 9938 | }
|
9939 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7778 9940 | #[allow(missing_docs)] // documentation missing in model
|
9941 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7779 9942 | pub fn range_long(mut self, input: i64) -> Self {
|
7780 - | self.range_long = Some(input);
|
9943 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9944 + | self.range_long =
|
9945 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9946 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9947 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9948 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7781 9949 | self
|
9950 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7782 9951 | }
|
9952 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7783 9953 | #[allow(missing_docs)] // documentation missing in model
|
9954 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7784 9955 | pub fn min_range_long(mut self, input: i64) -> Self {
|
7785 - | self.min_range_long = Some(input);
|
9956 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9957 + | self.min_range_long =
|
9958 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9960 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9961 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7786 9962 | self
|
9963 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7787 9964 | }
|
9965 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7788 9966 | #[allow(missing_docs)] // documentation missing in model
|
9967 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7789 9968 | pub fn max_range_long(mut self, input: i64) -> Self {
|
7790 - | self.max_range_long = Some(input);
|
9969 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9970 + | self.max_range_long =
|
9971 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9972 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9973 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9974 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7791 9975 | self
|
9976 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7792 9977 | }
|
9978 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7793 9979 | #[allow(missing_docs)] // documentation missing in model
|
9980 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7794 9981 | pub fn fixed_value_long(mut self, input: i64) -> Self {
|
7795 - | self.fixed_value_long = Some(input);
|
9982 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9983 + | self.fixed_value_long =
|
9984 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9985 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9986 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
9987 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7796 9988 | self
|
9989 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7797 9990 | }
|
9991 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7798 9992 | #[allow(missing_docs)] // documentation missing in model
|
9993 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7799 9994 | pub fn range_byte(mut self, input: i8) -> Self {
|
7800 - | self.range_byte = Some(input);
|
9995 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
9996 + | self.range_byte =
|
9997 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
9998 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
9999 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
10000 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7801 10001 | self
|
10002 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7802 10003 | }
|
10004 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7803 10005 | #[allow(missing_docs)] // documentation missing in model
|
10006 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7804 10007 | pub fn min_range_byte(mut self, input: i8) -> Self {
|
7805 - | self.min_range_byte = Some(input);
|
10008 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10009 + | self.min_range_byte =
|
10010 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
10011 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10012 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
10013 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7806 10014 | self
|
10015 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7807 10016 | }
|
10017 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7808 10018 | #[allow(missing_docs)] // documentation missing in model
|
10019 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7809 10020 | pub fn max_range_byte(mut self, input: i8) -> Self {
|
7810 - | self.max_range_byte = Some(input);
|
10021 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10022 + | self.max_range_byte =
|
10023 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
10024 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10025 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
10026 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7811 10027 | self
|
10028 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7812 10029 | }
|
10030 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7813 10031 | #[allow(missing_docs)] // documentation missing in model
|
10032 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7814 10033 | pub fn fixed_value_byte(mut self, input: i8) -> Self {
|
7815 - | self.fixed_value_byte = Some(input);
|
10034 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10035 + | self.fixed_value_byte =
|
10036 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
10037 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10038 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
10039 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7816 10040 | self
|
10041 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7817 10042 | }
|
10043 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7818 10044 | #[allow(missing_docs)] // documentation missing in model
|
10045 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7819 10046 | pub fn con_b_list(
|
7820 10047 | mut self,
|
7821 10048 | input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>>,
|
7822 10049 | ) -> Self {
|
7823 - | self.con_b_list = input;
|
10050 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10051 + | self.con_b_list =
|
10052 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10053 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7824 10054 | self
|
10055 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7825 10056 | }
|
10057 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7826 10058 | #[allow(missing_docs)] // documentation missing in model
|
10059 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7827 10060 | pub fn length_list(
|
7828 10061 | mut self,
|
7829 10062 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
7830 10063 | ) -> Self {
|
7831 - | self.length_list = input;
|
10064 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10065 + | self.length_list =
|
10066 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10067 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7832 10068 | self
|
10069 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7833 10070 | }
|
10071 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7834 10072 | #[allow(missing_docs)] // documentation missing in model
|
10073 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7835 10074 | pub fn sensitive_length_list(
|
7836 10075 | mut self,
|
7837 10076 | input: ::std::option::Option<::std::vec::Vec<crate::model::SensitiveStructure>>,
|
7838 10077 | ) -> Self {
|
7839 - | self.sensitive_length_list = input;
|
10078 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10079 + | self.sensitive_length_list =
|
10080 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10081 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7840 10082 | self
|
10083 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7841 10084 | }
|
10085 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7842 10086 | #[allow(missing_docs)] // documentation missing in model
|
10087 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7843 10088 | pub fn con_b_set(
|
7844 10089 | mut self,
|
7845 10090 | input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
7846 10091 | ) -> Self {
|
7847 - | self.con_b_set = input;
|
10092 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10093 + | self.con_b_set =
|
10094 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10095 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7848 10096 | self
|
10097 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7849 10098 | }
|
10099 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7850 10100 | #[allow(missing_docs)] // documentation missing in model
|
10101 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7851 10102 | pub fn con_b_map(
|
7852 10103 | mut self,
|
7853 10104 | input: ::std::option::Option<
|
7854 10105 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7855 10106 | >,
|
7856 10107 | ) -> Self {
|
7857 - | self.con_b_map = input;
|
10108 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10109 + | self.con_b_map =
|
10110 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10111 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7858 10112 | self
|
10113 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7859 10114 | }
|
10115 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7860 10116 | #[allow(missing_docs)] // documentation missing in model
|
10117 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7861 10118 | pub fn length_map(
|
7862 10119 | mut self,
|
7863 10120 | input: ::std::option::Option<
|
7864 10121 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7865 10122 | >,
|
7866 10123 | ) -> Self {
|
7867 - | self.length_map = input;
|
10124 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10125 + | self.length_map =
|
10126 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10127 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7868 10128 | self
|
10129 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7869 10130 | }
|
10131 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7870 10132 | #[allow(missing_docs)] // documentation missing in model
|
10133 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7871 10134 | pub fn map_of_map_of_list_of_list_of_con_b(
|
7872 10135 | mut self,
|
7873 10136 | input: ::std::option::Option<
|
7874 10137 | ::std::collections::HashMap<
|
7875 10138 | ::std::string::String,
|
7876 10139 | ::std::collections::HashMap<
|
7877 10140 | ::std::string::String,
|
7878 10141 | ::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>,
|
7879 10142 | >,
|
7880 10143 | >,
|
7881 10144 | >,
|
7882 10145 | ) -> Self {
|
7883 - | self.map_of_map_of_list_of_list_of_con_b = input;
|
10146 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10147 + | self.map_of_map_of_list_of_list_of_con_b =
|
10148 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10149 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7884 10150 | self
|
10151 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7885 10152 | }
|
10153 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7886 10154 | #[allow(missing_docs)] // documentation missing in model
|
10155 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7887 10156 | pub fn sparse_map(
|
7888 10157 | mut self,
|
7889 10158 | input: ::std::option::Option<
|
7890 10159 | ::std::collections::HashMap<
|
7891 10160 | ::std::string::String,
|
7892 10161 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
7893 10162 | >,
|
7894 10163 | >,
|
7895 10164 | ) -> Self {
|
7896 - | self.sparse_map = input;
|
10165 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10166 + | self.sparse_map =
|
10167 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10168 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7897 10169 | self
|
10170 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7898 10171 | }
|
10172 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7899 10173 | #[allow(missing_docs)] // documentation missing in model
|
10174 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7900 10175 | pub fn sparse_list(
|
7901 10176 | mut self,
|
7902 10177 | input: ::std::option::Option<
|
7903 10178 | ::std::vec::Vec<::std::option::Option<::std::string::String>>,
|
7904 10179 | >,
|
7905 10180 | ) -> Self {
|
7906 - | self.sparse_list = input;
|
10181 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10182 + | self.sparse_list =
|
10183 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10184 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7907 10185 | self
|
10186 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7908 10187 | }
|
10188 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7909 10189 | #[allow(missing_docs)] // documentation missing in model
|
10190 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7910 10191 | pub fn sparse_length_map(
|
7911 10192 | mut self,
|
7912 10193 | input: ::std::option::Option<
|
7913 10194 | ::std::collections::HashMap<
|
7914 10195 | ::std::string::String,
|
7915 10196 | ::std::option::Option<::std::string::String>,
|
7916 10197 | >,
|
7917 10198 | >,
|
7918 10199 | ) -> Self {
|
7919 - | self.sparse_length_map = input;
|
10200 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10201 + | self.sparse_length_map =
|
10202 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10203 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7920 10204 | self
|
10205 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7921 10206 | }
|
10207 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7922 10208 | #[allow(missing_docs)] // documentation missing in model
|
10209 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7923 10210 | pub fn sparse_length_list(
|
7924 10211 | mut self,
|
7925 10212 | input: ::std::option::Option<
|
7926 10213 | ::std::vec::Vec<::std::option::Option<::std::string::String>>,
|
7927 10214 | >,
|
7928 10215 | ) -> Self {
|
7929 - | self.sparse_length_list = input;
|
10216 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10217 + | self.sparse_length_list =
|
10218 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10219 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7930 10220 | self
|
10221 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7931 10222 | }
|
7932 - | /// A union with constrained members.
|
10223 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A union with constrained members.
|
10224 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7933 10225 | pub fn constrained_union(
|
7934 10226 | mut self,
|
7935 10227 | input: ::std::option::Option<crate::model::ConstrainedUnion>,
|
7936 10228 | ) -> Self {
|
7937 - | self.constrained_union = input;
|
10229 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10230 + | self.constrained_union =
|
10231 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10232 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7938 10233 | self
|
10234 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7939 10235 | }
|
10236 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7940 10237 | #[allow(missing_docs)] // documentation missing in model
|
10238 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7941 10239 | pub fn enum_string(
|
7942 10240 | mut self,
|
7943 10241 | input: ::std::option::Option<crate::model::EnumString>,
|
7944 10242 | ) -> Self {
|
7945 - | self.enum_string = input;
|
10243 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10244 + | self.enum_string =
|
10245 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10246 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7946 10247 | self
|
10248 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7947 10249 | }
|
10250 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7948 10251 | #[allow(missing_docs)] // documentation missing in model
|
10252 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7949 10253 | pub fn list_of_length_string(
|
7950 10254 | mut self,
|
7951 10255 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
7952 10256 | ) -> Self {
|
7953 - | self.list_of_length_string = input;
|
10257 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10258 + | self.list_of_length_string =
|
10259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10260 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7954 10261 | self
|
10262 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7955 10263 | }
|
10264 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7956 10265 | #[allow(missing_docs)] // documentation missing in model
|
10266 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7957 10267 | pub fn set_of_length_string(
|
7958 10268 | mut self,
|
7959 10269 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
7960 10270 | ) -> Self {
|
7961 - | self.set_of_length_string = input;
|
10271 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10272 + | self.set_of_length_string =
|
10273 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10274 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7962 10275 | self
|
10276 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7963 10277 | }
|
10278 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7964 10279 | #[allow(missing_docs)] // documentation missing in model
|
10280 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7965 10281 | pub fn map_of_length_string(
|
7966 10282 | mut self,
|
7967 10283 | input: ::std::option::Option<
|
7968 10284 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7969 10285 | >,
|
7970 10286 | ) -> Self {
|
7971 - | self.map_of_length_string = input;
|
10287 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10288 + | self.map_of_length_string =
|
10289 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10290 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7972 10291 | self
|
10292 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7973 10293 | }
|
10294 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7974 10295 | #[allow(missing_docs)] // documentation missing in model
|
10296 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7975 10297 | pub fn list_of_length_blob(
|
7976 10298 | mut self,
|
7977 10299 | input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>>,
|
7978 10300 | ) -> Self {
|
7979 - | self.list_of_length_blob = input;
|
10301 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10302 + | self.list_of_length_blob =
|
10303 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10304 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7980 10305 | self
|
10306 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7981 10307 | }
|
10308 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7982 10309 | #[allow(missing_docs)] // documentation missing in model
|
10310 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7983 10311 | pub fn map_of_length_blob(
|
7984 10312 | mut self,
|
7985 10313 | input: ::std::option::Option<
|
7986 10314 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Blob>,
|
7987 10315 | >,
|
7988 10316 | ) -> Self {
|
7989 - | self.map_of_length_blob = input;
|
10317 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10318 + | self.map_of_length_blob =
|
10319 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10320 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7990 10321 | self
|
10322 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7991 10323 | }
|
10324 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7992 10325 | #[allow(missing_docs)] // documentation missing in model
|
10326 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7993 10327 | pub fn list_of_range_integer(
|
7994 10328 | mut self,
|
7995 10329 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
7996 10330 | ) -> Self {
|
7997 - | self.list_of_range_integer = input;
|
10331 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10332 + | self.list_of_range_integer =
|
10333 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10334 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7998 10335 | self
|
10336 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7999 10337 | }
|
10338 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8000 10339 | #[allow(missing_docs)] // documentation missing in model
|
10340 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8001 10341 | pub fn set_of_range_integer(
|
8002 10342 | mut self,
|
8003 10343 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
8004 10344 | ) -> Self {
|
8005 - | self.set_of_range_integer = input;
|
10345 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10346 + | self.set_of_range_integer =
|
10347 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10348 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8006 10349 | self
|
10350 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8007 10351 | }
|
10352 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8008 10353 | #[allow(missing_docs)] // documentation missing in model
|
10354 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8009 10355 | pub fn map_of_range_integer(
|
8010 10356 | mut self,
|
8011 10357 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
8012 10358 | ) -> Self {
|
8013 - | self.map_of_range_integer = input;
|
10359 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10360 + | self.map_of_range_integer =
|
10361 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10362 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8014 10363 | self
|
10364 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8015 10365 | }
|
10366 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8016 10367 | #[allow(missing_docs)] // documentation missing in model
|
10368 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8017 10369 | pub fn list_of_range_short(
|
8018 10370 | mut self,
|
8019 10371 | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
8020 10372 | ) -> Self {
|
8021 - | self.list_of_range_short = input;
|
10373 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10374 + | self.list_of_range_short =
|
10375 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10376 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8022 10377 | self
|
10378 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8023 10379 | }
|
10380 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8024 10381 | #[allow(missing_docs)] // documentation missing in model
|
10382 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8025 10383 | pub fn set_of_range_short(
|
8026 10384 | mut self,
|
8027 10385 | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
8028 10386 | ) -> Self {
|
8029 - | self.set_of_range_short = input;
|
10387 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10388 + | self.set_of_range_short =
|
10389 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10390 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8030 10391 | self
|
10392 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8031 10393 | }
|
10394 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8032 10395 | #[allow(missing_docs)] // documentation missing in model
|
10396 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8033 10397 | pub fn map_of_range_short(
|
8034 10398 | mut self,
|
8035 10399 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i16>>,
|
8036 10400 | ) -> Self {
|
8037 - | self.map_of_range_short = input;
|
10401 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10402 + | self.map_of_range_short =
|
10403 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10404 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8038 10405 | self
|
10406 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8039 10407 | }
|
10408 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8040 10409 | #[allow(missing_docs)] // documentation missing in model
|
10410 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8041 10411 | pub fn list_of_range_long(
|
8042 10412 | mut self,
|
8043 10413 | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
8044 10414 | ) -> Self {
|
8045 - | self.list_of_range_long = input;
|
10415 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10416 + | self.list_of_range_long =
|
10417 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10418 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8046 10419 | self
|
10420 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8047 10421 | }
|
10422 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8048 10423 | #[allow(missing_docs)] // documentation missing in model
|
10424 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8049 10425 | pub fn set_of_range_long(
|
8050 10426 | mut self,
|
8051 10427 | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
8052 10428 | ) -> Self {
|
8053 - | self.set_of_range_long = input;
|
10429 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10430 + | self.set_of_range_long =
|
10431 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10432 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8054 10433 | self
|
10434 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8055 10435 | }
|
10436 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8056 10437 | #[allow(missing_docs)] // documentation missing in model
|
10438 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8057 10439 | pub fn map_of_range_long(
|
8058 10440 | mut self,
|
8059 10441 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i64>>,
|
8060 10442 | ) -> Self {
|
8061 - | self.map_of_range_long = input;
|
10443 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10444 + | self.map_of_range_long =
|
10445 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10446 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8062 10447 | self
|
10448 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8063 10449 | }
|
10450 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8064 10451 | #[allow(missing_docs)] // documentation missing in model
|
10452 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8065 10453 | pub fn list_of_range_byte(
|
8066 10454 | mut self,
|
8067 10455 | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
8068 10456 | ) -> Self {
|
8069 - | self.list_of_range_byte = input;
|
10457 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10458 + | self.list_of_range_byte =
|
10459 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10460 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8070 10461 | self
|
10462 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8071 10463 | }
|
10464 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8072 10465 | #[allow(missing_docs)] // documentation missing in model
|
10466 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8073 10467 | pub fn set_of_range_byte(
|
8074 10468 | mut self,
|
8075 10469 | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
8076 10470 | ) -> Self {
|
8077 - | self.set_of_range_byte = input;
|
10471 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10472 + | self.set_of_range_byte =
|
10473 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10474 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8078 10475 | self
|
10476 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8079 10477 | }
|
10478 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8080 10479 | #[allow(missing_docs)] // documentation missing in model
|
10480 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8081 10481 | pub fn map_of_range_byte(
|
8082 10482 | mut self,
|
8083 10483 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i8>>,
|
8084 10484 | ) -> Self {
|
8085 - | self.map_of_range_byte = input;
|
10485 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10486 + | self.map_of_range_byte =
|
10487 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10488 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8086 10489 | self
|
10490 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8087 10491 | }
|
10492 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8088 10493 | #[allow(missing_docs)] // documentation missing in model
|
10494 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8089 10495 | pub fn non_streaming_blob(
|
8090 10496 | mut self,
|
8091 10497 | input: ::std::option::Option<::aws_smithy_types::Blob>,
|
8092 10498 | ) -> Self {
|
8093 - | self.non_streaming_blob = input;
|
10499 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10500 + | self.non_streaming_blob =
|
10501 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10502 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8094 10503 | self
|
10504 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8095 10505 | }
|
10506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8096 10507 | #[allow(missing_docs)] // documentation missing in model
|
10508 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8097 10509 | pub fn pattern_string(
|
8098 10510 | mut self,
|
8099 10511 | input: ::std::option::Option<::std::string::String>,
|
8100 10512 | ) -> Self {
|
8101 - | self.pattern_string = input;
|
10513 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10514 + | self.pattern_string =
|
10515 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10516 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8102 10517 | self
|
10518 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8103 10519 | }
|
10520 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8104 10521 | #[allow(missing_docs)] // documentation missing in model
|
10522 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8105 10523 | pub fn map_of_pattern_string(
|
8106 10524 | mut self,
|
8107 10525 | input: ::std::option::Option<
|
8108 10526 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
8109 10527 | >,
|
8110 10528 | ) -> Self {
|
8111 - | self.map_of_pattern_string = input;
|
10529 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10530 + | self.map_of_pattern_string =
|
10531 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10532 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8112 10533 | self
|
10534 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8113 10535 | }
|
10536 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8114 10537 | #[allow(missing_docs)] // documentation missing in model
|
10538 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8115 10539 | pub fn list_of_pattern_string(
|
8116 10540 | mut self,
|
8117 10541 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8118 10542 | ) -> Self {
|
8119 - | self.list_of_pattern_string = input;
|
10543 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10544 + | self.list_of_pattern_string =
|
10545 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10546 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8120 10547 | self
|
10548 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8121 10549 | }
|
10550 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8122 10551 | #[allow(missing_docs)] // documentation missing in model
|
10552 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8123 10553 | pub fn set_of_pattern_string(
|
8124 10554 | mut self,
|
8125 10555 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8126 10556 | ) -> Self {
|
8127 - | self.set_of_pattern_string = input;
|
10557 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10558 + | self.set_of_pattern_string =
|
10559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10560 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8128 10561 | self
|
10562 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8129 10563 | }
|
10564 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8130 10565 | #[allow(missing_docs)] // documentation missing in model
|
10566 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8131 10567 | pub fn length_length_pattern_string(
|
8132 10568 | mut self,
|
8133 10569 | input: ::std::option::Option<::std::string::String>,
|
8134 10570 | ) -> Self {
|
8135 - | self.length_length_pattern_string = input;
|
10571 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10572 + | self.length_length_pattern_string =
|
10573 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8136 10575 | self
|
10576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8137 10577 | }
|
10578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8138 10579 | #[allow(missing_docs)] // documentation missing in model
|
10580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8139 10581 | pub fn map_of_length_pattern_string(
|
8140 10582 | mut self,
|
8141 10583 | input: ::std::option::Option<
|
8142 10584 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
8143 10585 | >,
|
8144 10586 | ) -> Self {
|
8145 - | self.map_of_length_pattern_string = input;
|
10587 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10588 + | self.map_of_length_pattern_string =
|
10589 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10590 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8146 10591 | self
|
10592 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8147 10593 | }
|
10594 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8148 10595 | #[allow(missing_docs)] // documentation missing in model
|
10596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8149 10597 | pub fn list_of_length_pattern_string(
|
8150 10598 | mut self,
|
8151 10599 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8152 10600 | ) -> Self {
|
8153 - | self.list_of_length_pattern_string = input;
|
10601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10602 + | self.list_of_length_pattern_string =
|
10603 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10604 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8154 10605 | self
|
10606 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8155 10607 | }
|
10608 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8156 10609 | #[allow(missing_docs)] // documentation missing in model
|
10610 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8157 10611 | pub fn set_of_length_pattern_string(
|
8158 10612 | mut self,
|
8159 10613 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8160 10614 | ) -> Self {
|
8161 - | self.set_of_length_pattern_string = input;
|
10615 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10616 + | self.set_of_length_pattern_string =
|
10617 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10618 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8162 10619 | self
|
10620 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8163 10621 | }
|
10622 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8164 10623 | #[allow(missing_docs)] // documentation missing in model
|
10624 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8165 10625 | pub fn length_list_of_pattern_string(
|
8166 10626 | mut self,
|
8167 10627 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8168 10628 | ) -> Self {
|
8169 - | self.length_list_of_pattern_string = input;
|
10629 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10630 + | self.length_list_of_pattern_string =
|
10631 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10632 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8170 10633 | self
|
10634 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8171 10635 | }
|
10636 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8172 10637 | #[allow(missing_docs)] // documentation missing in model
|
10638 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8173 10639 | pub fn length_set_of_pattern_string(
|
8174 10640 | mut self,
|
8175 10641 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8176 10642 | ) -> Self {
|
8177 - | self.length_set_of_pattern_string = input;
|
10643 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
10644 + | self.length_set_of_pattern_string =
|
10645 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
10646 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8178 10647 | self
|
10648 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8179 10649 | }
|
8180 - | /// Consumes the builder and constructs a [`ConA`](crate::model::ConA).
|
8181 - | ///
|
10650 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConA`](crate::model::ConA).
|
10651 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
8182 10652 | /// The builder fails to construct a [`ConA`](crate::model::ConA) if you do not provide a value for all non-`Option`al members.
|
8183 10653 | ///
|
10654 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8184 10655 | pub fn build(self) -> Result<crate::model::ConA, ConstraintViolation> {
|
8185 10656 | self.build_enforcing_required_and_enum_traits()
|
8186 10657 | }
|
10658 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8187 10659 | fn build_enforcing_required_and_enum_traits(
|
8188 10660 | self,
|
8189 10661 | ) -> Result<crate::model::ConA, ConstraintViolation> {
|
8190 - | Ok(crate::model::ConA {
|
8191 - | con_b: self.con_b.ok_or(ConstraintViolation::MissingConB)?,
|
10662 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
10663 + | Ok(
|
10664 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
10665 + | crate::model::ConA {
|
10666 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10667 + | con_b: self
|
10668 + | .con_b
|
10669 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
10670 + | .ok_or(ConstraintViolation::MissingConB)?,
|
10671 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8192 10672 | opt_con_b: self.opt_con_b,
|
10673 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8193 10674 | length_string: self.length_string,
|
10675 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8194 10676 | min_length_string: self.min_length_string,
|
10677 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8195 10678 | max_length_string: self.max_length_string,
|
10679 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8196 10680 | fixed_length_string: self.fixed_length_string,
|
10681 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8197 10682 | length_blob: self.length_blob,
|
10683 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8198 10684 | min_length_blob: self.min_length_blob,
|
10685 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8199 10686 | max_length_blob: self.max_length_blob,
|
10687 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8200 10688 | fixed_length_blob: self.fixed_length_blob,
|
8201 - | range_integer: self.range_integer.unwrap_or(0i32),
|
8202 - | min_range_integer: self.min_range_integer.unwrap_or(0i32),
|
8203 - | max_range_integer: self.max_range_integer.unwrap_or(0i32),
|
8204 - | fixed_value_integer: self.fixed_value_integer.unwrap_or(0i32),
|
8205 - | range_short: self.range_short.unwrap_or(0i16),
|
8206 - | min_range_short: self.min_range_short.unwrap_or(0i16),
|
8207 - | max_range_short: self.max_range_short.unwrap_or(0i16),
|
8208 - | fixed_value_short: self.fixed_value_short.unwrap_or(0i16),
|
8209 - | range_long: self.range_long.unwrap_or(0i64),
|
8210 - | min_range_long: self.min_range_long.unwrap_or(0i64),
|
8211 - | max_range_long: self.max_range_long.unwrap_or(0i64),
|
8212 - | fixed_value_long: self.fixed_value_long.unwrap_or(0i64),
|
8213 - | range_byte: self.range_byte.unwrap_or(0i8),
|
8214 - | min_range_byte: self.min_range_byte.unwrap_or(0i8),
|
8215 - | max_range_byte: self.max_range_byte.unwrap_or(0i8),
|
8216 - | fixed_value_byte: self.fixed_value_byte.unwrap_or(0i8),
|
10689 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10690 + | range_integer: self
|
10691 + | .range_integer
|
10692 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10693 + | .unwrap_or(0i32),
|
10694 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10695 + | min_range_integer: self
|
10696 + | .min_range_integer
|
10697 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10698 + | .unwrap_or(0i32),
|
10699 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10700 + | max_range_integer: self
|
10701 + | .max_range_integer
|
10702 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10703 + | .unwrap_or(0i32),
|
10704 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10705 + | fixed_value_integer: self
|
10706 + | .fixed_value_integer
|
10707 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10708 + | .unwrap_or(0i32),
|
10709 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10710 + | range_short: self
|
10711 + | .range_short
|
10712 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10713 + | .unwrap_or(0i16),
|
10714 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10715 + | min_range_short: self
|
10716 + | .min_range_short
|
10717 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10718 + | .unwrap_or(0i16),
|
10719 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10720 + | max_range_short: self
|
10721 + | .max_range_short
|
10722 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10723 + | .unwrap_or(0i16),
|
10724 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10725 + | fixed_value_short: self
|
10726 + | .fixed_value_short
|
10727 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10728 + | .unwrap_or(0i16),
|
10729 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10730 + | range_long: self
|
10731 + | .range_long
|
10732 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10733 + | .unwrap_or(0i64),
|
10734 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10735 + | min_range_long: self
|
10736 + | .min_range_long
|
10737 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10738 + | .unwrap_or(0i64),
|
10739 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10740 + | max_range_long: self
|
10741 + | .max_range_long
|
10742 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10743 + | .unwrap_or(0i64),
|
10744 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10745 + | fixed_value_long: self
|
10746 + | .fixed_value_long
|
10747 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10748 + | .unwrap_or(0i64),
|
10749 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10750 + | range_byte: self
|
10751 + | .range_byte
|
10752 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10753 + | .unwrap_or(0i8),
|
10754 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10755 + | min_range_byte: self
|
10756 + | .min_range_byte
|
10757 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10758 + | .unwrap_or(0i8),
|
10759 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10760 + | max_range_byte: self
|
10761 + | .max_range_byte
|
10762 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10763 + | .unwrap_or(0i8),
|
10764 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10765 + | fixed_value_byte: self
|
10766 + | .fixed_value_byte
|
10767 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
10768 + | .unwrap_or(0i8),
|
10769 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8217 10770 | con_b_list: self.con_b_list,
|
10771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8218 10772 | length_list: self.length_list,
|
10773 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8219 10774 | sensitive_length_list: self.sensitive_length_list,
|
10775 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8220 10776 | con_b_set: self.con_b_set,
|
10777 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8221 10778 | con_b_map: self.con_b_map,
|
10779 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8222 10780 | length_map: self.length_map,
|
10781 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8223 10782 | map_of_map_of_list_of_list_of_con_b: self.map_of_map_of_list_of_list_of_con_b,
|
10783 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8224 10784 | sparse_map: self.sparse_map,
|
10785 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8225 10786 | sparse_list: self.sparse_list,
|
10787 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8226 10788 | sparse_length_map: self.sparse_length_map,
|
10789 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8227 10790 | sparse_length_list: self.sparse_length_list,
|
10791 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8228 10792 | constrained_union: self.constrained_union,
|
10793 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8229 10794 | enum_string: self.enum_string,
|
10795 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8230 10796 | list_of_length_string: self.list_of_length_string,
|
10797 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8231 10798 | set_of_length_string: self.set_of_length_string,
|
10799 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8232 10800 | map_of_length_string: self.map_of_length_string,
|
10801 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8233 10802 | list_of_length_blob: self.list_of_length_blob,
|
10803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8234 10804 | map_of_length_blob: self.map_of_length_blob,
|
10805 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8235 10806 | list_of_range_integer: self.list_of_range_integer,
|
10807 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8236 10808 | set_of_range_integer: self.set_of_range_integer,
|
10809 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8237 10810 | map_of_range_integer: self.map_of_range_integer,
|
10811 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8238 10812 | list_of_range_short: self.list_of_range_short,
|
10813 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8239 10814 | set_of_range_short: self.set_of_range_short,
|
10815 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8240 10816 | map_of_range_short: self.map_of_range_short,
|
10817 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8241 10818 | list_of_range_long: self.list_of_range_long,
|
10819 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8242 10820 | set_of_range_long: self.set_of_range_long,
|
10821 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8243 10822 | map_of_range_long: self.map_of_range_long,
|
10823 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8244 10824 | list_of_range_byte: self.list_of_range_byte,
|
10825 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8245 10826 | set_of_range_byte: self.set_of_range_byte,
|
10827 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8246 10828 | map_of_range_byte: self.map_of_range_byte,
|
10829 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8247 10830 | non_streaming_blob: self.non_streaming_blob,
|
10831 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8248 10832 | pattern_string: self.pattern_string,
|
10833 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8249 10834 | map_of_pattern_string: self.map_of_pattern_string,
|
10835 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8250 10836 | list_of_pattern_string: self.list_of_pattern_string,
|
10837 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8251 10838 | set_of_pattern_string: self.set_of_pattern_string,
|
10839 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8252 10840 | length_length_pattern_string: self.length_length_pattern_string,
|
10841 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8253 10842 | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
10843 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8254 10844 | list_of_length_pattern_string: self.list_of_length_pattern_string,
|
10845 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8255 10846 | set_of_length_pattern_string: self.set_of_length_pattern_string,
|
10847 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8256 10848 | length_list_of_pattern_string: self.length_list_of_pattern_string,
|
10849 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8257 10850 | length_set_of_pattern_string: self.length_set_of_pattern_string,
|
8258 - | })
|
10851 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
10852 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
10853 + | )
|
10854 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8259 10855 | }
|
10856 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8260 10857 | }
|
10858 + |
|
10859 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8261 10860 | }
|
8262 10861 | pub(crate) mod length_set_of_pattern_string_internal {
|
8263 10862 |
|
10863 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
8264 10864 | #[allow(clippy::enum_variant_names)]
|
8265 10865 | #[derive(Debug, PartialEq)]
|
8266 10866 | pub(crate) enum ConstraintViolation {
|
8267 10867 | /// Constraint violation error when the list doesn't have the required length
|
8268 10868 | Length(usize),
|
8269 10869 | /// Constraint violation error when the list does not contain unique items
|
8270 10870 | UniqueItems {
|
8271 10871 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
8272 10872 | /// at least two elements.
|
8273 10873 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
8274 10874 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
8275 10875 | /// Nothing is guaranteed about the order of the indices.
|
8276 10876 | duplicate_indices: ::std::vec::Vec<usize>,
|
8277 10877 | /// The original vector, that contains duplicate items.
|
8278 10878 | original: ::std::vec::Vec<crate::model::PatternString>,
|
8279 10879 | },
|
8280 10880 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
8281 10881 | /// The first component of the tuple is the index in the collection where the
|
8282 10882 | /// first constraint violation was found.
|
8283 10883 | #[doc(hidden)]
|
8284 10884 | Member(
|
8285 10885 | usize,
|
8286 10886 | crate::model::pattern_string_internal::ConstraintViolation,
|
8287 10887 | ),
|
8288 10888 | }
|
8289 10889 |
|
8290 10890 | impl ::std::fmt::Display for ConstraintViolation {
|
8291 10891 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8292 10892 | let message = match self {
|
8293 10893 | Self::Length(length) => {
|
8294 10894 | format!("Value with length {} provided for 'com.amazonaws.constraints#LengthSetOfPatternString' failed to satisfy constraint: Member must have length between 5 and 9, inclusive", length)
|
8295 10895 | },
|
8296 10896 | Self::UniqueItems { duplicate_indices, .. } =>
|
8297 10897 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#LengthSetOfPatternString' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
8298 10898 | Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
|
8299 10899 | failing_member)
|
8300 10900 | };
|
8301 10901 | write!(f, "{message}")
|
8302 10902 | }
|
8303 10903 | }
|
8304 10904 |
|
8305 10905 | impl ::std::error::Error for ConstraintViolation {}
|
10906 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
8306 10907 | impl ConstraintViolation {
|
8307 10908 | pub(crate) fn as_validation_exception_field(
|
8308 10909 | self,
|
8309 10910 | path: ::std::string::String,
|
8310 10911 | ) -> crate::model::ValidationExceptionField {
|
8311 10912 | match self {
|
8312 10913 | Self::Length(length) => crate::model::ValidationExceptionField {
|
8313 10914 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 5 and 9, inclusive", length, &path),
|
8314 10915 | path,
|
8315 10916 | },
|
8316 10917 | Self::UniqueItems { duplicate_indices, .. } =>
|
8317 10918 | crate::model::ValidationExceptionField {
|
8318 10919 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
8319 10920 | path,
|
8320 10921 | },
|
8321 10922 | Self::Member(index, member_constraint_violation) =>
|
8322 10923 | member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
|
8323 10924 | }
|
8324 10925 | }
|
8325 10926 | }
|
10927 + |
|
10928 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8326 10929 | }
|
8327 10930 | pub(crate) mod set_of_length_pattern_string_internal {
|
8328 10931 |
|
10932 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
8329 10933 | #[allow(clippy::enum_variant_names)]
|
8330 10934 | #[derive(Debug, PartialEq)]
|
8331 10935 | pub(crate) enum ConstraintViolation {
|
8332 10936 | /// Constraint violation error when the list does not contain unique items
|
8333 10937 | UniqueItems {
|
8334 10938 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
8335 10939 | /// at least two elements.
|
8336 10940 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
8337 10941 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
8338 10942 | /// Nothing is guaranteed about the order of the indices.
|
8339 10943 | duplicate_indices: ::std::vec::Vec<usize>,
|
8340 10944 | /// The original vector, that contains duplicate items.
|
8341 10945 | original: ::std::vec::Vec<crate::model::LengthPatternString>,
|
8342 10946 | },
|
8343 10947 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
8344 10948 | /// The first component of the tuple is the index in the collection where the
|
8345 10949 | /// first constraint violation was found.
|
8346 10950 | #[doc(hidden)]
|
8347 10951 | Member(
|
8348 10952 | usize,
|
8349 10953 | crate::model::length_pattern_string_internal::ConstraintViolation,
|
8350 10954 | ),
|
8351 10955 | }
|
8352 10956 |
|
8353 10957 | impl ::std::fmt::Display for ConstraintViolation {
|
8354 10958 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8355 10959 | let message = match self {
|
8356 10960 | Self::UniqueItems { duplicate_indices, .. } =>
|
8357 10961 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfLengthPatternString' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
8358 10962 | Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
|
8359 10963 | failing_member)
|
8360 10964 | };
|
8361 10965 | write!(f, "{message}")
|
8362 10966 | }
|
8363 10967 | }
|
8364 10968 |
|
8365 10969 | impl ::std::error::Error for ConstraintViolation {}
|
10970 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
8366 10971 | impl ConstraintViolation {
|
8367 10972 | pub(crate) fn as_validation_exception_field(
|
8368 10973 | self,
|
8369 10974 | path: ::std::string::String,
|
8370 10975 | ) -> crate::model::ValidationExceptionField {
|
8371 10976 | match self {
|
8372 10977 | Self::UniqueItems { duplicate_indices, .. } =>
|
8373 10978 | crate::model::ValidationExceptionField {
|
8374 10979 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
8375 10980 | path,
|
8376 10981 | },
|
8377 10982 | Self::Member(index, member_constraint_violation) =>
|
8378 10983 | member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
|
8379 10984 | }
|
8380 10985 | }
|
8381 10986 | }
|
10987 + |
|
10988 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8382 10989 | }
|
8383 10990 | pub(crate) mod set_of_pattern_string_internal {
|
8384 10991 |
|
10992 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
8385 10993 | #[allow(clippy::enum_variant_names)]
|
8386 10994 | #[derive(Debug, PartialEq)]
|
8387 10995 | pub(crate) enum ConstraintViolation {
|
8388 10996 | /// Constraint violation error when the list does not contain unique items
|
8389 10997 | UniqueItems {
|
8390 10998 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
8391 10999 | /// at least two elements.
|
8392 11000 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
8393 11001 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
8394 11002 | /// Nothing is guaranteed about the order of the indices.
|
8395 11003 | duplicate_indices: ::std::vec::Vec<usize>,
|
8396 11004 | /// The original vector, that contains duplicate items.
|
8397 11005 | original: ::std::vec::Vec<crate::model::PatternString>,
|
8398 11006 | },
|
8399 11007 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
8400 11008 | /// The first component of the tuple is the index in the collection where the
|
8401 11009 | /// first constraint violation was found.
|
8402 11010 | #[doc(hidden)]
|
8403 11011 | Member(
|
8404 11012 | usize,
|
8405 11013 | crate::model::pattern_string_internal::ConstraintViolation,
|
8406 11014 | ),
|
8407 11015 | }
|
8408 11016 |
|
8409 11017 | impl ::std::fmt::Display for ConstraintViolation {
|
8410 11018 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8411 11019 | let message = match self {
|
8412 11020 | Self::UniqueItems { duplicate_indices, .. } =>
|
8413 11021 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfPatternString' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
8414 11022 | Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
|
8415 11023 | failing_member)
|
8416 11024 | };
|
8417 11025 | write!(f, "{message}")
|
8418 11026 | }
|
8419 11027 | }
|
8420 11028 |
|
8421 11029 | impl ::std::error::Error for ConstraintViolation {}
|
11030 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
8422 11031 | impl ConstraintViolation {
|
8423 11032 | pub(crate) fn as_validation_exception_field(
|
8424 11033 | self,
|
8425 11034 | path: ::std::string::String,
|
8426 11035 | ) -> crate::model::ValidationExceptionField {
|
8427 11036 | match self {
|
8428 11037 | Self::UniqueItems { duplicate_indices, .. } =>
|
8429 11038 | crate::model::ValidationExceptionField {
|
8430 11039 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
8431 11040 | path,
|
8432 11041 | },
|
8433 11042 | Self::Member(index, member_constraint_violation) =>
|
8434 11043 | member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
|
8435 11044 | }
|
8436 11045 | }
|
8437 11046 | }
|
11047 + |
|
11048 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8438 11049 | }
|
8439 11050 | pub(crate) mod map_of_range_byte_internal {
|
8440 11051 |
|
11052 + | /* MapConstraintViolationGenerator.kt:82 */
|
8441 11053 | #[allow(clippy::enum_variant_names)]
|
8442 11054 | #[derive(Debug, PartialEq)]
|
8443 11055 | pub(crate) enum ConstraintViolation {
|
8444 11056 | #[doc(hidden)]
|
8445 11057 | Value(
|
8446 11058 | ::std::string::String,
|
8447 11059 | crate::model::range_byte_internal::ConstraintViolation,
|
8448 11060 | ),
|
8449 11061 | }
|
8450 11062 |
|
8451 11063 | impl ::std::fmt::Display for ConstraintViolation {
|
8452 11064 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8453 11065 | match self {
|
8454 11066 | Self::Value(_, value_constraint_violation) => {
|
8455 11067 | write!(f, "{}", value_constraint_violation)
|
8456 11068 | }
|
8457 11069 | }
|
8458 11070 | }
|
8459 11071 | }
|
8460 11072 |
|
8461 11073 | impl ::std::error::Error for ConstraintViolation {}
|
11074 + | /* MapConstraintViolationGenerator.kt:111 */
|
8462 11075 | impl ConstraintViolation {
|
8463 11076 | pub(crate) fn as_validation_exception_field(
|
8464 11077 | self,
|
8465 11078 | path: ::std::string::String,
|
8466 11079 | ) -> crate::model::ValidationExceptionField {
|
8467 11080 | match self {
|
8468 11081 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
8469 11082 | .as_validation_exception_field(path + "/" + key.as_str()),
|
8470 11083 | }
|
8471 11084 | }
|
8472 11085 | }
|
11086 + |
|
11087 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8473 11088 | }
|
8474 11089 | pub(crate) mod range_byte_internal {
|
8475 11090 |
|
11091 + | /* ConstrainedNumberGenerator.kt:139 */
|
8476 11092 | #[derive(Debug, PartialEq)]
|
8477 11093 | pub enum ConstraintViolation {
|
8478 11094 | Range(i8),
|
8479 11095 | }
|
8480 11096 |
|
8481 11097 | impl ::std::fmt::Display for ConstraintViolation {
|
8482 11098 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8483 11099 | write!(f, "Value for `com.amazonaws.constraints#RangeByte`failed to satisfy constraint: Member must be between 0 and 10, inclusive")
|
8484 11100 | }
|
8485 11101 | }
|
8486 11102 |
|
8487 11103 | impl ::std::error::Error for ConstraintViolation {}
|
11104 + | /* ConstrainedNumberGenerator.kt:159 */
|
8488 11105 | impl ConstraintViolation {
|
8489 11106 | pub(crate) fn as_validation_exception_field(
|
8490 11107 | self,
|
8491 11108 | path: ::std::string::String,
|
8492 11109 | ) -> crate::model::ValidationExceptionField {
|
8493 11110 | match self {
|
8494 11111 | Self::Range(_) => crate::model::ValidationExceptionField {
|
8495 11112 | message: format!("Value at '{}' failed to satisfy constraint: Member must be between 0 and 10, inclusive", &path),
|
8496 11113 | path,
|
8497 11114 | },
|
8498 11115 | }
|
8499 11116 | }
|
8500 11117 | }
|
11118 + |
|
11119 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8501 11120 | }
|
8502 11121 | pub(crate) mod set_of_range_byte_internal {
|
8503 11122 |
|
11123 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
8504 11124 | #[allow(clippy::enum_variant_names)]
|
8505 11125 | #[derive(Debug, PartialEq)]
|
8506 11126 | pub(crate) enum ConstraintViolation {
|
8507 11127 | /// Constraint violation error when the list does not contain unique items
|
8508 11128 | UniqueItems {
|
8509 11129 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
8510 11130 | /// at least two elements.
|
8511 11131 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
8512 11132 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
8513 11133 | /// Nothing is guaranteed about the order of the indices.
|
8514 11134 | duplicate_indices: ::std::vec::Vec<usize>,
|
8515 11135 | /// The original vector, that contains duplicate items.
|
8516 11136 | original: ::std::vec::Vec<crate::model::RangeByte>,
|
8517 11137 | },
|
8518 11138 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
8519 11139 | /// The first component of the tuple is the index in the collection where the
|
8520 11140 | /// first constraint violation was found.
|
8521 11141 | #[doc(hidden)]
|
8522 11142 | Member(
|
8523 11143 | usize,
|
8524 11144 | crate::model::range_byte_internal::ConstraintViolation,
|
8525 11145 | ),
|
8526 11146 | }
|
8527 11147 |
|
8528 11148 | impl ::std::fmt::Display for ConstraintViolation {
|
8529 11149 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8530 11150 | let message = match self {
|
8531 11151 | Self::UniqueItems { duplicate_indices, .. } =>
|
8532 11152 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfRangeByte' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
8533 11153 | Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
|
8534 11154 | failing_member)
|
8535 11155 | };
|
8536 11156 | write!(f, "{message}")
|
8537 11157 | }
|
8538 11158 | }
|
8539 11159 |
|
8540 11160 | impl ::std::error::Error for ConstraintViolation {}
|
11161 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
8541 11162 | impl ConstraintViolation {
|
8542 11163 | pub(crate) fn as_validation_exception_field(
|
8543 11164 | self,
|
8544 11165 | path: ::std::string::String,
|
8545 11166 | ) -> crate::model::ValidationExceptionField {
|
8546 11167 | match self {
|
8547 11168 | Self::UniqueItems { duplicate_indices, .. } =>
|
8548 11169 | crate::model::ValidationExceptionField {
|
8549 11170 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
8550 11171 | path,
|
8551 11172 | },
|
8552 11173 | Self::Member(index, member_constraint_violation) =>
|
8553 11174 | member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
|
8554 11175 | }
|
8555 11176 | }
|
8556 11177 | }
|
11178 + |
|
11179 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8557 11180 | }
|
8558 11181 | pub(crate) mod list_of_range_byte_internal {
|
8559 11182 |
|
11183 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
8560 11184 | #[allow(clippy::enum_variant_names)]
|
8561 11185 | #[derive(Debug, PartialEq)]
|
8562 11186 | pub(crate) enum ConstraintViolation {
|
8563 11187 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
8564 11188 | /// The first component of the tuple is the index in the collection where the
|
8565 11189 | /// first constraint violation was found.
|
8566 11190 | #[doc(hidden)]
|
8567 11191 | Member(
|
8568 11192 | usize,
|
8569 11193 | crate::model::range_byte_internal::ConstraintViolation,
|
8570 11194 | ),
|
8571 11195 | }
|
8572 11196 |
|
8573 11197 | impl ::std::fmt::Display for ConstraintViolation {
|
8574 11198 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8575 11199 | let message = match self {
|
8576 11200 | Self::Member(index, failing_member) => format!(
|
8577 11201 | "Value at index {index} failed to satisfy constraint. {}",
|
8578 11202 | failing_member
|
8579 11203 | ),
|
8580 11204 | };
|
8581 11205 | write!(f, "{message}")
|
8582 11206 | }
|
8583 11207 | }
|
8584 11208 |
|
8585 11209 | impl ::std::error::Error for ConstraintViolation {}
|
11210 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
8586 11211 | impl ConstraintViolation {
|
8587 11212 | pub(crate) fn as_validation_exception_field(
|
8588 11213 | self,
|
8589 11214 | path: ::std::string::String,
|
8590 11215 | ) -> crate::model::ValidationExceptionField {
|
8591 11216 | match self {
|
8592 11217 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
8593 11218 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
8594 11219 | }
|
8595 11220 | }
|
8596 11221 | }
|
11222 + |
|
11223 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8597 11224 | }
|
8598 11225 | pub(crate) mod map_of_range_long_internal {
|
8599 11226 |
|
11227 + | /* MapConstraintViolationGenerator.kt:82 */
|
8600 11228 | #[allow(clippy::enum_variant_names)]
|
8601 11229 | #[derive(Debug, PartialEq)]
|
8602 11230 | pub(crate) enum ConstraintViolation {
|
8603 11231 | #[doc(hidden)]
|
8604 11232 | Value(
|
8605 11233 | ::std::string::String,
|
8606 11234 | crate::model::range_long_internal::ConstraintViolation,
|
8607 11235 | ),
|
8608 11236 | }
|
8609 11237 |
|
8610 11238 | impl ::std::fmt::Display for ConstraintViolation {
|
8611 11239 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8612 11240 | match self {
|
8613 11241 | Self::Value(_, value_constraint_violation) => {
|
8614 11242 | write!(f, "{}", value_constraint_violation)
|
8615 11243 | }
|
8616 11244 | }
|
8617 11245 | }
|
8618 11246 | }
|
8619 11247 |
|
8620 11248 | impl ::std::error::Error for ConstraintViolation {}
|
11249 + | /* MapConstraintViolationGenerator.kt:111 */
|
8621 11250 | impl ConstraintViolation {
|
8622 11251 | pub(crate) fn as_validation_exception_field(
|
8623 11252 | self,
|
8624 11253 | path: ::std::string::String,
|
8625 11254 | ) -> crate::model::ValidationExceptionField {
|
8626 11255 | match self {
|
8627 11256 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
8628 11257 | .as_validation_exception_field(path + "/" + key.as_str()),
|
8629 11258 | }
|
8630 11259 | }
|
8631 11260 | }
|
11261 + |
|
11262 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8632 11263 | }
|
8633 11264 | pub(crate) mod range_long_internal {
|
8634 11265 |
|
11266 + | /* ConstrainedNumberGenerator.kt:139 */
|
8635 11267 | #[derive(Debug, PartialEq)]
|
8636 11268 | pub enum ConstraintViolation {
|
8637 11269 | Range(i64),
|
8638 11270 | }
|
8639 11271 |
|
8640 11272 | impl ::std::fmt::Display for ConstraintViolation {
|
8641 11273 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8642 11274 | write!(f, "Value for `com.amazonaws.constraints#RangeLong`failed to satisfy constraint: Member must be between 0 and 10, inclusive")
|
8643 11275 | }
|
8644 11276 | }
|
8645 11277 |
|
8646 11278 | impl ::std::error::Error for ConstraintViolation {}
|
11279 + | /* ConstrainedNumberGenerator.kt:159 */
|
8647 11280 | impl ConstraintViolation {
|
8648 11281 | pub(crate) fn as_validation_exception_field(
|
8649 11282 | self,
|
8650 11283 | path: ::std::string::String,
|
8651 11284 | ) -> crate::model::ValidationExceptionField {
|
8652 11285 | match self {
|
8653 11286 | Self::Range(_) => crate::model::ValidationExceptionField {
|
8654 11287 | message: format!("Value at '{}' failed to satisfy constraint: Member must be between 0 and 10, inclusive", &path),
|
8655 11288 | path,
|
8656 11289 | },
|
8657 11290 | }
|
8658 11291 | }
|
8659 11292 | }
|
11293 + |
|
11294 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8660 11295 | }
|
8661 11296 | pub(crate) mod set_of_range_long_internal {
|
8662 11297 |
|
11298 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
8663 11299 | #[allow(clippy::enum_variant_names)]
|
8664 11300 | #[derive(Debug, PartialEq)]
|
8665 11301 | pub(crate) enum ConstraintViolation {
|
8666 11302 | /// Constraint violation error when the list does not contain unique items
|
8667 11303 | UniqueItems {
|
8668 11304 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
8669 11305 | /// at least two elements.
|
8670 11306 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
8671 11307 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
8672 11308 | /// Nothing is guaranteed about the order of the indices.
|
8673 11309 | duplicate_indices: ::std::vec::Vec<usize>,
|
8674 11310 | /// The original vector, that contains duplicate items.
|
8675 11311 | original: ::std::vec::Vec<crate::model::RangeLong>,
|
8676 11312 | },
|
8677 11313 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
8678 11314 | /// The first component of the tuple is the index in the collection where the
|
8679 11315 | /// first constraint violation was found.
|
8680 11316 | #[doc(hidden)]
|
8681 11317 | Member(
|
8682 11318 | usize,
|
8683 11319 | crate::model::range_long_internal::ConstraintViolation,
|
8684 11320 | ),
|
8685 11321 | }
|
8686 11322 |
|
8687 11323 | impl ::std::fmt::Display for ConstraintViolation {
|
8688 11324 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8689 11325 | let message = match self {
|
8690 11326 | Self::UniqueItems { duplicate_indices, .. } =>
|
8691 11327 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfRangeLong' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
8692 11328 | Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
|
8693 11329 | failing_member)
|
8694 11330 | };
|
8695 11331 | write!(f, "{message}")
|
8696 11332 | }
|
8697 11333 | }
|
8698 11334 |
|
8699 11335 | impl ::std::error::Error for ConstraintViolation {}
|
11336 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
8700 11337 | impl ConstraintViolation {
|
8701 11338 | pub(crate) fn as_validation_exception_field(
|
8702 11339 | self,
|
8703 11340 | path: ::std::string::String,
|
8704 11341 | ) -> crate::model::ValidationExceptionField {
|
8705 11342 | match self {
|
8706 11343 | Self::UniqueItems { duplicate_indices, .. } =>
|
8707 11344 | crate::model::ValidationExceptionField {
|
8708 11345 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
8709 11346 | path,
|
8710 11347 | },
|
8711 11348 | Self::Member(index, member_constraint_violation) =>
|
8712 11349 | member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
|
8713 11350 | }
|
8714 11351 | }
|
8715 11352 | }
|
11353 + |
|
11354 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8716 11355 | }
|
8717 11356 | pub(crate) mod list_of_range_long_internal {
|
8718 11357 |
|
11358 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
8719 11359 | #[allow(clippy::enum_variant_names)]
|
8720 11360 | #[derive(Debug, PartialEq)]
|
8721 11361 | pub(crate) enum ConstraintViolation {
|
8722 11362 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
8723 11363 | /// The first component of the tuple is the index in the collection where the
|
8724 11364 | /// first constraint violation was found.
|
8725 11365 | #[doc(hidden)]
|
8726 11366 | Member(
|
8727 11367 | usize,
|
8728 11368 | crate::model::range_long_internal::ConstraintViolation,
|
8729 11369 | ),
|
8730 11370 | }
|
8731 11371 |
|
8732 11372 | impl ::std::fmt::Display for ConstraintViolation {
|
8733 11373 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8734 11374 | let message = match self {
|
8735 11375 | Self::Member(index, failing_member) => format!(
|
8736 11376 | "Value at index {index} failed to satisfy constraint. {}",
|
8737 11377 | failing_member
|
8738 11378 | ),
|
8739 11379 | };
|
8740 11380 | write!(f, "{message}")
|
8741 11381 | }
|
8742 11382 | }
|
8743 11383 |
|
8744 11384 | impl ::std::error::Error for ConstraintViolation {}
|
11385 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
8745 11386 | impl ConstraintViolation {
|
8746 11387 | pub(crate) fn as_validation_exception_field(
|
8747 11388 | self,
|
8748 11389 | path: ::std::string::String,
|
8749 11390 | ) -> crate::model::ValidationExceptionField {
|
8750 11391 | match self {
|
8751 11392 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
8752 11393 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
8753 11394 | }
|
8754 11395 | }
|
8755 11396 | }
|
11397 + |
|
11398 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8756 11399 | }
|
8757 11400 | pub(crate) mod map_of_range_short_internal {
|
8758 11401 |
|
11402 + | /* MapConstraintViolationGenerator.kt:82 */
|
8759 11403 | #[allow(clippy::enum_variant_names)]
|
8760 11404 | #[derive(Debug, PartialEq)]
|
8761 11405 | pub(crate) enum ConstraintViolation {
|
8762 11406 | #[doc(hidden)]
|
8763 11407 | Value(
|
8764 11408 | ::std::string::String,
|
8765 11409 | crate::model::range_short_internal::ConstraintViolation,
|
8766 11410 | ),
|
8767 11411 | }
|
8768 11412 |
|
8769 11413 | impl ::std::fmt::Display for ConstraintViolation {
|
8770 11414 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8771 11415 | match self {
|
8772 11416 | Self::Value(_, value_constraint_violation) => {
|
8773 11417 | write!(f, "{}", value_constraint_violation)
|
8774 11418 | }
|
8775 11419 | }
|
8776 11420 | }
|
8777 11421 | }
|
8778 11422 |
|
8779 11423 | impl ::std::error::Error for ConstraintViolation {}
|
11424 + | /* MapConstraintViolationGenerator.kt:111 */
|
8780 11425 | impl ConstraintViolation {
|
8781 11426 | pub(crate) fn as_validation_exception_field(
|
8782 11427 | self,
|
8783 11428 | path: ::std::string::String,
|
8784 11429 | ) -> crate::model::ValidationExceptionField {
|
8785 11430 | match self {
|
8786 11431 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
8787 11432 | .as_validation_exception_field(path + "/" + key.as_str()),
|
8788 11433 | }
|
8789 11434 | }
|
8790 11435 | }
|
11436 + |
|
11437 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8791 11438 | }
|
8792 11439 | pub(crate) mod range_short_internal {
|
8793 11440 |
|
11441 + | /* ConstrainedNumberGenerator.kt:139 */
|
8794 11442 | #[derive(Debug, PartialEq)]
|
8795 11443 | pub enum ConstraintViolation {
|
8796 11444 | Range(i16),
|
8797 11445 | }
|
8798 11446 |
|
8799 11447 | impl ::std::fmt::Display for ConstraintViolation {
|
8800 11448 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8801 11449 | write!(f, "Value for `com.amazonaws.constraints#RangeShort`failed to satisfy constraint: Member must be between 0 and 10, inclusive")
|
8802 11450 | }
|
8803 11451 | }
|
8804 11452 |
|
8805 11453 | impl ::std::error::Error for ConstraintViolation {}
|
11454 + | /* ConstrainedNumberGenerator.kt:159 */
|
8806 11455 | impl ConstraintViolation {
|
8807 11456 | pub(crate) fn as_validation_exception_field(
|
8808 11457 | self,
|
8809 11458 | path: ::std::string::String,
|
8810 11459 | ) -> crate::model::ValidationExceptionField {
|
8811 11460 | match self {
|
8812 11461 | Self::Range(_) => crate::model::ValidationExceptionField {
|
8813 11462 | message: format!("Value at '{}' failed to satisfy constraint: Member must be between 0 and 10, inclusive", &path),
|
8814 11463 | path,
|
8815 11464 | },
|
8816 11465 | }
|
8817 11466 | }
|
8818 11467 | }
|
11468 + |
|
11469 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8819 11470 | }
|
8820 11471 | pub(crate) mod set_of_range_short_internal {
|
8821 11472 |
|
11473 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
8822 11474 | #[allow(clippy::enum_variant_names)]
|
8823 11475 | #[derive(Debug, PartialEq)]
|
8824 11476 | pub(crate) enum ConstraintViolation {
|
8825 11477 | /// Constraint violation error when the list does not contain unique items
|
8826 11478 | UniqueItems {
|
8827 11479 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
8828 11480 | /// at least two elements.
|
8829 11481 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
8830 11482 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
8831 11483 | /// Nothing is guaranteed about the order of the indices.
|
8832 11484 | duplicate_indices: ::std::vec::Vec<usize>,
|
8833 11485 | /// The original vector, that contains duplicate items.
|
8834 11486 | original: ::std::vec::Vec<crate::model::RangeShort>,
|
8835 11487 | },
|
8836 11488 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
8837 11489 | /// The first component of the tuple is the index in the collection where the
|
8838 11490 | /// first constraint violation was found.
|
8839 11491 | #[doc(hidden)]
|
8840 11492 | Member(
|
8841 11493 | usize,
|
8842 11494 | crate::model::range_short_internal::ConstraintViolation,
|
8843 11495 | ),
|
8844 11496 | }
|
8845 11497 |
|
8846 11498 | impl ::std::fmt::Display for ConstraintViolation {
|
8847 11499 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8848 11500 | let message = match self {
|
8849 11501 | Self::UniqueItems { duplicate_indices, .. } =>
|
8850 11502 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfRangeShort' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
8851 11503 | Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
|
8852 11504 | failing_member)
|
8853 11505 | };
|
8854 11506 | write!(f, "{message}")
|
8855 11507 | }
|
8856 11508 | }
|
8857 11509 |
|
8858 11510 | impl ::std::error::Error for ConstraintViolation {}
|
11511 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
8859 11512 | impl ConstraintViolation {
|
8860 11513 | pub(crate) fn as_validation_exception_field(
|
8861 11514 | self,
|
8862 11515 | path: ::std::string::String,
|
8863 11516 | ) -> crate::model::ValidationExceptionField {
|
8864 11517 | match self {
|
8865 11518 | Self::UniqueItems { duplicate_indices, .. } =>
|
8866 11519 | crate::model::ValidationExceptionField {
|
8867 11520 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
8868 11521 | path,
|
8869 11522 | },
|
8870 11523 | Self::Member(index, member_constraint_violation) =>
|
8871 11524 | member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
|
8872 11525 | }
|
8873 11526 | }
|
8874 11527 | }
|
11528 + |
|
11529 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8875 11530 | }
|
8876 11531 | pub(crate) mod list_of_range_short_internal {
|
8877 11532 |
|
11533 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
8878 11534 | #[allow(clippy::enum_variant_names)]
|
8879 11535 | #[derive(Debug, PartialEq)]
|
8880 11536 | pub(crate) enum ConstraintViolation {
|
8881 11537 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
8882 11538 | /// The first component of the tuple is the index in the collection where the
|
8883 11539 | /// first constraint violation was found.
|
8884 11540 | #[doc(hidden)]
|
8885 11541 | Member(
|
8886 11542 | usize,
|
8887 11543 | crate::model::range_short_internal::ConstraintViolation,
|
8888 11544 | ),
|
8889 11545 | }
|
8890 11546 |
|
8891 11547 | impl ::std::fmt::Display for ConstraintViolation {
|
8892 11548 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8893 11549 | let message = match self {
|
8894 11550 | Self::Member(index, failing_member) => format!(
|
8895 11551 | "Value at index {index} failed to satisfy constraint. {}",
|
8896 11552 | failing_member
|
8897 11553 | ),
|
8898 11554 | };
|
8899 11555 | write!(f, "{message}")
|
8900 11556 | }
|
8901 11557 | }
|
8902 11558 |
|
8903 11559 | impl ::std::error::Error for ConstraintViolation {}
|
11560 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
8904 11561 | impl ConstraintViolation {
|
8905 11562 | pub(crate) fn as_validation_exception_field(
|
8906 11563 | self,
|
8907 11564 | path: ::std::string::String,
|
8908 11565 | ) -> crate::model::ValidationExceptionField {
|
8909 11566 | match self {
|
8910 11567 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
8911 11568 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
8912 11569 | }
|
8913 11570 | }
|
8914 11571 | }
|
11572 + |
|
11573 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8915 11574 | }
|
8916 11575 | pub(crate) mod map_of_range_integer_internal {
|
8917 11576 |
|
11577 + | /* MapConstraintViolationGenerator.kt:82 */
|
8918 11578 | #[allow(clippy::enum_variant_names)]
|
8919 11579 | #[derive(Debug, PartialEq)]
|
8920 11580 | pub(crate) enum ConstraintViolation {
|
8921 11581 | #[doc(hidden)]
|
8922 11582 | Value(
|
8923 11583 | ::std::string::String,
|
8924 11584 | crate::model::range_integer_internal::ConstraintViolation,
|
8925 11585 | ),
|
8926 11586 | }
|
8927 11587 |
|
8928 11588 | impl ::std::fmt::Display for ConstraintViolation {
|
8929 11589 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8930 11590 | match self {
|
8931 11591 | Self::Value(_, value_constraint_violation) => {
|
8932 11592 | write!(f, "{}", value_constraint_violation)
|
8933 11593 | }
|
8934 11594 | }
|
8935 11595 | }
|
8936 11596 | }
|
8937 11597 |
|
8938 11598 | impl ::std::error::Error for ConstraintViolation {}
|
11599 + | /* MapConstraintViolationGenerator.kt:111 */
|
8939 11600 | impl ConstraintViolation {
|
8940 11601 | pub(crate) fn as_validation_exception_field(
|
8941 11602 | self,
|
8942 11603 | path: ::std::string::String,
|
8943 11604 | ) -> crate::model::ValidationExceptionField {
|
8944 11605 | match self {
|
8945 11606 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
8946 11607 | .as_validation_exception_field(path + "/" + key.as_str()),
|
8947 11608 | }
|
8948 11609 | }
|
8949 11610 | }
|
11611 + |
|
11612 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8950 11613 | }
|
8951 11614 | pub(crate) mod range_integer_internal {
|
8952 11615 |
|
11616 + | /* ConstrainedNumberGenerator.kt:139 */
|
8953 11617 | #[derive(Debug, PartialEq)]
|
8954 11618 | pub enum ConstraintViolation {
|
8955 11619 | Range(i32),
|
8956 11620 | }
|
8957 11621 |
|
8958 11622 | impl ::std::fmt::Display for ConstraintViolation {
|
8959 11623 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8960 11624 | write!(f, "Value for `com.amazonaws.constraints#RangeInteger`failed to satisfy constraint: Member must be between 0 and 69, inclusive")
|
8961 11625 | }
|
8962 11626 | }
|
8963 11627 |
|
8964 11628 | impl ::std::error::Error for ConstraintViolation {}
|
11629 + | /* ConstrainedNumberGenerator.kt:159 */
|
8965 11630 | impl ConstraintViolation {
|
8966 11631 | pub(crate) fn as_validation_exception_field(
|
8967 11632 | self,
|
8968 11633 | path: ::std::string::String,
|
8969 11634 | ) -> crate::model::ValidationExceptionField {
|
8970 11635 | match self {
|
8971 11636 | Self::Range(_) => crate::model::ValidationExceptionField {
|
8972 11637 | message: format!("Value at '{}' failed to satisfy constraint: Member must be between 0 and 69, inclusive", &path),
|
8973 11638 | path,
|
8974 11639 | },
|
8975 11640 | }
|
8976 11641 | }
|
8977 11642 | }
|
11643 + |
|
11644 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8978 11645 | }
|
8979 11646 | pub(crate) mod set_of_range_integer_internal {
|
8980 11647 |
|
11648 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
8981 11649 | #[allow(clippy::enum_variant_names)]
|
8982 11650 | #[derive(Debug, PartialEq)]
|
8983 11651 | pub(crate) enum ConstraintViolation {
|
8984 11652 | /// Constraint violation error when the list does not contain unique items
|
8985 11653 | UniqueItems {
|
8986 11654 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
8987 11655 | /// at least two elements.
|
8988 11656 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
8989 11657 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
8990 11658 | /// Nothing is guaranteed about the order of the indices.
|
8991 11659 | duplicate_indices: ::std::vec::Vec<usize>,
|
8992 11660 | /// The original vector, that contains duplicate items.
|
8993 11661 | original: ::std::vec::Vec<crate::model::RangeInteger>,
|
8994 11662 | },
|
8995 11663 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
8996 11664 | /// The first component of the tuple is the index in the collection where the
|
8997 11665 | /// first constraint violation was found.
|
8998 11666 | #[doc(hidden)]
|
8999 11667 | Member(
|
9000 11668 | usize,
|
9001 11669 | crate::model::range_integer_internal::ConstraintViolation,
|
9002 11670 | ),
|
9003 11671 | }
|
9004 11672 |
|
9005 11673 | impl ::std::fmt::Display for ConstraintViolation {
|
9006 11674 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9007 11675 | let message = match self {
|
9008 11676 | Self::UniqueItems { duplicate_indices, .. } =>
|
9009 11677 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfRangeInteger' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
9010 11678 | Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
|
9011 11679 | failing_member)
|
9012 11680 | };
|
9013 11681 | write!(f, "{message}")
|
9014 11682 | }
|
9015 11683 | }
|
9016 11684 |
|
9017 11685 | impl ::std::error::Error for ConstraintViolation {}
|
11686 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9018 11687 | impl ConstraintViolation {
|
9019 11688 | pub(crate) fn as_validation_exception_field(
|
9020 11689 | self,
|
9021 11690 | path: ::std::string::String,
|
9022 11691 | ) -> crate::model::ValidationExceptionField {
|
9023 11692 | match self {
|
9024 11693 | Self::UniqueItems { duplicate_indices, .. } =>
|
9025 11694 | crate::model::ValidationExceptionField {
|
9026 11695 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
9027 11696 | path,
|
9028 11697 | },
|
9029 11698 | Self::Member(index, member_constraint_violation) =>
|
9030 11699 | member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
|
9031 11700 | }
|
9032 11701 | }
|
9033 11702 | }
|
11703 + |
|
11704 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9034 11705 | }
|
9035 11706 | pub(crate) mod list_of_range_integer_internal {
|
9036 11707 |
|
11708 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9037 11709 | #[allow(clippy::enum_variant_names)]
|
9038 11710 | #[derive(Debug, PartialEq)]
|
9039 11711 | pub(crate) enum ConstraintViolation {
|
9040 11712 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
9041 11713 | /// The first component of the tuple is the index in the collection where the
|
9042 11714 | /// first constraint violation was found.
|
9043 11715 | #[doc(hidden)]
|
9044 11716 | Member(
|
9045 11717 | usize,
|
9046 11718 | crate::model::range_integer_internal::ConstraintViolation,
|
9047 11719 | ),
|
9048 11720 | }
|
9049 11721 |
|
9050 11722 | impl ::std::fmt::Display for ConstraintViolation {
|
9051 11723 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9052 11724 | let message = match self {
|
9053 11725 | Self::Member(index, failing_member) => format!(
|
9054 11726 | "Value at index {index} failed to satisfy constraint. {}",
|
9055 11727 | failing_member
|
9056 11728 | ),
|
9057 11729 | };
|
9058 11730 | write!(f, "{message}")
|
9059 11731 | }
|
9060 11732 | }
|
9061 11733 |
|
9062 11734 | impl ::std::error::Error for ConstraintViolation {}
|
11735 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9063 11736 | impl ConstraintViolation {
|
9064 11737 | pub(crate) fn as_validation_exception_field(
|
9065 11738 | self,
|
9066 11739 | path: ::std::string::String,
|
9067 11740 | ) -> crate::model::ValidationExceptionField {
|
9068 11741 | match self {
|
9069 11742 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
9070 11743 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
9071 11744 | }
|
9072 11745 | }
|
9073 11746 | }
|
11747 + |
|
11748 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9074 11749 | }
|
9075 11750 | pub(crate) mod map_of_length_blob_internal {
|
9076 11751 |
|
11752 + | /* MapConstraintViolationGenerator.kt:82 */
|
9077 11753 | #[allow(clippy::enum_variant_names)]
|
9078 11754 | #[derive(Debug, PartialEq)]
|
9079 11755 | pub(crate) enum ConstraintViolation {
|
9080 11756 | #[doc(hidden)]
|
9081 11757 | Value(
|
9082 11758 | ::std::string::String,
|
9083 11759 | crate::model::length_blob_internal::ConstraintViolation,
|
9084 11760 | ),
|
9085 11761 | }
|
9086 11762 |
|
9087 11763 | impl ::std::fmt::Display for ConstraintViolation {
|
9088 11764 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9089 11765 | match self {
|
9090 11766 | Self::Value(_, value_constraint_violation) => {
|
9091 11767 | write!(f, "{}", value_constraint_violation)
|
9092 11768 | }
|
9093 11769 | }
|
9094 11770 | }
|
9095 11771 | }
|
9096 11772 |
|
9097 11773 | impl ::std::error::Error for ConstraintViolation {}
|
11774 + | /* MapConstraintViolationGenerator.kt:111 */
|
9098 11775 | impl ConstraintViolation {
|
9099 11776 | pub(crate) fn as_validation_exception_field(
|
9100 11777 | self,
|
9101 11778 | path: ::std::string::String,
|
9102 11779 | ) -> crate::model::ValidationExceptionField {
|
9103 11780 | match self {
|
9104 11781 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
9105 11782 | .as_validation_exception_field(path + "/" + key.as_str()),
|
9106 11783 | }
|
9107 11784 | }
|
9108 11785 | }
|
11786 + |
|
11787 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9109 11788 | }
|
9110 11789 | pub(crate) mod length_blob_internal {
|
9111 11790 |
|
11791 + | /* ConstrainedBlobGenerator.kt:129 */
|
9112 11792 | #[derive(Debug, PartialEq)]
|
9113 11793 | pub enum ConstraintViolation {
|
9114 11794 | /// Error when a blob doesn't satisfy its `@length` requirements.
|
9115 11795 | Length(usize),
|
9116 11796 | }
|
9117 11797 |
|
9118 11798 | impl ::std::fmt::Display for ConstraintViolation {
|
9119 11799 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9120 11800 | let message = match self {
|
9121 11801 | Self::Length(length) => {
|
9122 11802 | format!("Value with length {} provided for 'com.amazonaws.constraints#LengthBlob' failed to satisfy constraint: Member must have length between 2 and 70, inclusive", length)
|
9123 11803 | }
|
9124 11804 | };
|
9125 11805 | write!(f, "{message}")
|
9126 11806 | }
|
9127 11807 | }
|
9128 11808 |
|
9129 11809 | impl ::std::error::Error for ConstraintViolation {}
|
11810 + | /* ConstrainedBlobGenerator.kt:154 */
|
9130 11811 | impl ConstraintViolation {
|
9131 11812 | pub(crate) fn as_validation_exception_field(
|
9132 11813 | self,
|
9133 11814 | path: ::std::string::String,
|
9134 11815 | ) -> crate::model::ValidationExceptionField {
|
9135 11816 | match self {
|
9136 11817 | Self::Length(length) => crate::model::ValidationExceptionField {
|
9137 11818 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 2 and 70, inclusive", length, &path),
|
9138 11819 | path,
|
9139 11820 | },
|
9140 11821 | }
|
9141 11822 | }
|
9142 11823 | }
|
11824 + |
|
11825 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9143 11826 | }
|
9144 11827 | pub(crate) mod list_of_length_blob_internal {
|
9145 11828 |
|
11829 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9146 11830 | #[allow(clippy::enum_variant_names)]
|
9147 11831 | #[derive(Debug, PartialEq)]
|
9148 11832 | pub(crate) enum ConstraintViolation {
|
9149 11833 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
9150 11834 | /// The first component of the tuple is the index in the collection where the
|
9151 11835 | /// first constraint violation was found.
|
9152 11836 | #[doc(hidden)]
|
9153 11837 | Member(
|
9154 11838 | usize,
|
9155 11839 | crate::model::length_blob_internal::ConstraintViolation,
|
9156 11840 | ),
|
9157 11841 | }
|
9158 11842 |
|
9159 11843 | impl ::std::fmt::Display for ConstraintViolation {
|
9160 11844 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9161 11845 | let message = match self {
|
9162 11846 | Self::Member(index, failing_member) => format!(
|
9163 11847 | "Value at index {index} failed to satisfy constraint. {}",
|
9164 11848 | failing_member
|
9165 11849 | ),
|
9166 11850 | };
|
9167 11851 | write!(f, "{message}")
|
9168 11852 | }
|
9169 11853 | }
|
9170 11854 |
|
9171 11855 | impl ::std::error::Error for ConstraintViolation {}
|
11856 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9172 11857 | impl ConstraintViolation {
|
9173 11858 | pub(crate) fn as_validation_exception_field(
|
9174 11859 | self,
|
9175 11860 | path: ::std::string::String,
|
9176 11861 | ) -> crate::model::ValidationExceptionField {
|
9177 11862 | match self {
|
9178 11863 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
9179 11864 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
9180 11865 | }
|
9181 11866 | }
|
9182 11867 | }
|
11868 + |
|
11869 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9183 11870 | }
|
9184 11871 | pub(crate) mod constrained_union_internal {
|
9185 11872 |
|
11873 + | /* RustType.kt:516 */
|
9186 11874 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11875 + | /* UnconstrainedUnionGenerator.kt:150 */
|
9187 11876 | #[allow(clippy::enum_variant_names)]
|
9188 11877 | pub(crate) enum ConstraintViolation {
|
11878 + | /* UnconstrainedUnionGenerator.kt:218 */
|
9189 11879 | ConBList(crate::model::con_b_list_internal::ConstraintViolation),
|
11880 + | /* UnconstrainedUnionGenerator.kt:218 */
|
9190 11881 | ConBMap(crate::model::con_b_map_internal::ConstraintViolation),
|
11882 + | /* UnconstrainedUnionGenerator.kt:218 */
|
9191 11883 | ConBSet(crate::model::con_b_set_internal::ConstraintViolation),
|
11884 + | /* UnconstrainedUnionGenerator.kt:218 */
|
9192 11885 | ConstrainedStructure(crate::model::con_b_internal::ConstraintViolation),
|
11886 + | /* UnconstrainedUnionGenerator.kt:218 */
|
9193 11887 | EnumString(crate::model::enum_string_internal::ConstraintViolation),
|
11888 + | /* UnconstrainedUnionGenerator.kt:218 */
|
9194 11889 | LengthString(crate::model::length_string_internal::ConstraintViolation),
|
11890 + | /* UnconstrainedUnionGenerator.kt:150 */
|
9195 11891 | }
|
11892 + | /* UnconstrainedUnionGenerator.kt:158 */
|
9196 11893 | impl ::std::fmt::Display for ConstraintViolation {
|
9197 11894 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9198 11895 | match self {
|
9199 11896 | Self::ConBList(inner) => write!(f, "{inner}"),
|
9200 11897 | Self::ConBMap(inner) => write!(f, "{inner}"),
|
9201 11898 | Self::ConBSet(inner) => write!(f, "{inner}"),
|
9202 11899 | Self::ConstrainedStructure(inner) => write!(f, "{inner}"),
|
9203 11900 | Self::EnumString(inner) => write!(f, "{inner}"),
|
9204 11901 | Self::LengthString(inner) => write!(f, "{inner}"),
|
9205 11902 | }
|
9206 11903 | }
|
9207 11904 | }
|
9208 11905 |
|
9209 11906 | impl ::std::error::Error for ConstraintViolation {}
|
11907 + | /* UnconstrainedUnionGenerator.kt:176 */
|
9210 11908 | impl ConstraintViolation {
|
9211 11909 | pub(crate) fn as_validation_exception_field(
|
9212 11910 | self,
|
9213 11911 | path: ::std::string::String,
|
9214 11912 | ) -> crate::model::ValidationExceptionField {
|
9215 11913 | match self {
|
9216 11914 | Self::ConBList(inner) => inner.as_validation_exception_field(path + "/conBList"),
|
9217 11915 | Self::ConBMap(inner) => inner.as_validation_exception_field(path + "/conBMap"),
|
9218 11916 | Self::ConBSet(inner) => inner.as_validation_exception_field(path + "/conBSet"),
|
9219 11917 | Self::ConstrainedStructure(inner) => {
|
9220 11918 | inner.as_validation_exception_field(path + "/constrainedStructure")
|
9221 11919 | }
|
9222 11920 | Self::EnumString(inner) => {
|
9223 11921 | inner.as_validation_exception_field(path + "/enumString")
|
9224 11922 | }
|
9225 11923 | Self::LengthString(inner) => {
|
9226 11924 | inner.as_validation_exception_field(path + "/lengthString")
|
9227 11925 | }
|
9228 11926 | }
|
9229 11927 | }
|
9230 11928 | }
|
11929 + |
|
11930 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9231 11931 | }
|
9232 11932 | pub(crate) mod con_b_set_internal {
|
9233 11933 |
|
11934 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9234 11935 | #[allow(clippy::enum_variant_names)]
|
9235 11936 | #[derive(Debug, PartialEq)]
|
9236 11937 | pub(crate) enum ConstraintViolation {
|
9237 11938 | /// Constraint violation error when the list does not contain unique items
|
9238 11939 | UniqueItems {
|
9239 11940 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
9240 11941 | /// at least two elements.
|
9241 11942 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
9242 11943 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
9243 11944 | /// Nothing is guaranteed about the order of the indices.
|
9244 11945 | duplicate_indices: ::std::vec::Vec<usize>,
|
9245 11946 | /// The original vector, that contains duplicate items.
|
9246 11947 | original: ::std::vec::Vec<crate::model::ConBSetInner>,
|
9247 11948 | },
|
9248 11949 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
9249 11950 | /// The first component of the tuple is the index in the collection where the
|
9250 11951 | /// first constraint violation was found.
|
9251 11952 | #[doc(hidden)]
|
9252 11953 | Member(
|
9253 11954 | usize,
|
9254 11955 | crate::model::con_b_set_inner_internal::ConstraintViolation,
|
9255 11956 | ),
|
9256 11957 | }
|
9257 11958 |
|
9258 11959 | impl ::std::fmt::Display for ConstraintViolation {
|
9259 11960 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9260 11961 | let message = match self {
|
9261 11962 | Self::UniqueItems { duplicate_indices, .. } =>
|
9262 11963 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#ConBSet' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
9263 11964 | Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
|
9264 11965 | failing_member)
|
9265 11966 | };
|
9266 11967 | write!(f, "{message}")
|
9267 11968 | }
|
9268 11969 | }
|
9269 11970 |
|
9270 11971 | impl ::std::error::Error for ConstraintViolation {}
|
11972 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9271 11973 | impl ConstraintViolation {
|
9272 11974 | pub(crate) fn as_validation_exception_field(
|
9273 11975 | self,
|
9274 11976 | path: ::std::string::String,
|
9275 11977 | ) -> crate::model::ValidationExceptionField {
|
9276 11978 | match self {
|
9277 11979 | Self::UniqueItems { duplicate_indices, .. } =>
|
9278 11980 | crate::model::ValidationExceptionField {
|
9279 11981 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
9280 11982 | path,
|
9281 11983 | },
|
9282 11984 | Self::Member(index, member_constraint_violation) =>
|
9283 11985 | member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
|
9284 11986 | }
|
9285 11987 | }
|
9286 11988 | }
|
11989 + |
|
11990 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9287 11991 | }
|
9288 11992 | pub(crate) mod con_b_set_inner_internal {
|
9289 11993 |
|
11994 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9290 11995 | #[allow(clippy::enum_variant_names)]
|
9291 11996 | #[derive(Debug, PartialEq)]
|
9292 11997 | pub(crate) enum ConstraintViolation {
|
9293 11998 | /// Constraint violation error when the list does not contain unique items
|
9294 11999 | UniqueItems {
|
9295 12000 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
9296 12001 | /// at least two elements.
|
9297 12002 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
9298 12003 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
9299 12004 | /// Nothing is guaranteed about the order of the indices.
|
9300 12005 | duplicate_indices: ::std::vec::Vec<usize>,
|
9301 12006 | /// The original vector, that contains duplicate items.
|
9302 12007 | original: ::std::vec::Vec<::std::string::String>,
|
9303 12008 | },
|
9304 12009 | }
|
9305 12010 |
|
9306 12011 | impl ::std::fmt::Display for ConstraintViolation {
|
9307 12012 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9308 12013 | let message = match self {
|
9309 12014 | Self::UniqueItems { duplicate_indices, .. } =>
|
9310 12015 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#ConBSetInner' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
9311 12016 | };
|
9312 12017 | write!(f, "{message}")
|
9313 12018 | }
|
9314 12019 | }
|
9315 12020 |
|
9316 12021 | impl ::std::error::Error for ConstraintViolation {}
|
12022 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9317 12023 | impl ConstraintViolation {
|
9318 12024 | pub(crate) fn as_validation_exception_field(
|
9319 12025 | self,
|
9320 12026 | path: ::std::string::String,
|
9321 12027 | ) -> crate::model::ValidationExceptionField {
|
9322 12028 | match self {
|
9323 12029 | Self::UniqueItems { duplicate_indices, .. } =>
|
9324 12030 | crate::model::ValidationExceptionField {
|
9325 12031 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
9326 12032 | path,
|
9327 12033 | },
|
9328 12034 | }
|
9329 12035 | }
|
9330 12036 | }
|
12037 + |
|
12038 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9331 12039 | }
|
9332 12040 | pub(crate) mod con_b_list_internal {
|
9333 12041 |
|
12042 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9334 12043 | #[allow(clippy::enum_variant_names)]
|
9335 12044 | #[derive(Debug, PartialEq)]
|
9336 12045 | pub(crate) enum ConstraintViolation {
|
9337 12046 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
9338 12047 | /// The first component of the tuple is the index in the collection where the
|
9339 12048 | /// first constraint violation was found.
|
9340 12049 | #[doc(hidden)]
|
9341 12050 | Member(
|
9342 12051 | usize,
|
9343 12052 | crate::model::con_b_list_inner_internal::ConstraintViolation,
|
9344 12053 | ),
|
9345 12054 | }
|
9346 12055 |
|
9347 12056 | impl ::std::fmt::Display for ConstraintViolation {
|
9348 12057 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9349 12058 | let message = match self {
|
9350 12059 | Self::Member(index, failing_member) => format!(
|
9351 12060 | "Value at index {index} failed to satisfy constraint. {}",
|
9352 12061 | failing_member
|
9353 12062 | ),
|
9354 12063 | };
|
9355 12064 | write!(f, "{message}")
|
9356 12065 | }
|
9357 12066 | }
|
9358 12067 |
|
9359 12068 | impl ::std::error::Error for ConstraintViolation {}
|
12069 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9360 12070 | impl ConstraintViolation {
|
9361 12071 | pub(crate) fn as_validation_exception_field(
|
9362 12072 | self,
|
9363 12073 | path: ::std::string::String,
|
9364 12074 | ) -> crate::model::ValidationExceptionField {
|
9365 12075 | match self {
|
9366 12076 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
9367 12077 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
9368 12078 | }
|
9369 12079 | }
|
9370 12080 | }
|
12081 + |
|
12082 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9371 12083 | }
|
9372 12084 | pub(crate) mod con_b_list_inner_internal {
|
9373 12085 |
|
12086 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9374 12087 | #[allow(clippy::enum_variant_names)]
|
9375 12088 | #[derive(Debug, PartialEq)]
|
9376 12089 | pub(crate) enum ConstraintViolation {
|
9377 12090 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
9378 12091 | /// The first component of the tuple is the index in the collection where the
|
9379 12092 | /// first constraint violation was found.
|
9380 12093 | #[doc(hidden)]
|
9381 12094 | Member(usize, crate::model::con_b_internal::ConstraintViolation),
|
9382 12095 | }
|
9383 12096 |
|
9384 12097 | impl ::std::fmt::Display for ConstraintViolation {
|
9385 12098 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9386 12099 | let message = match self {
|
9387 12100 | Self::Member(index, failing_member) => format!(
|
9388 12101 | "Value at index {index} failed to satisfy constraint. {}",
|
9389 12102 | failing_member
|
9390 12103 | ),
|
9391 12104 | };
|
9392 12105 | write!(f, "{message}")
|
9393 12106 | }
|
9394 12107 | }
|
9395 12108 |
|
9396 12109 | impl ::std::error::Error for ConstraintViolation {}
|
12110 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9397 12111 | impl ConstraintViolation {
|
9398 12112 | pub(crate) fn as_validation_exception_field(
|
9399 12113 | self,
|
9400 12114 | path: ::std::string::String,
|
9401 12115 | ) -> crate::model::ValidationExceptionField {
|
9402 12116 | match self {
|
9403 12117 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
9404 12118 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
9405 12119 | }
|
9406 12120 | }
|
9407 12121 | }
|
12122 + |
|
12123 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9408 12124 | }
|
9409 - | /// See [`ConB`](crate::model::ConB).
|
12125 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConB`](crate::model::ConB).
|
9410 12126 | pub(crate) mod con_b_internal {
|
9411 12127 |
|
12128 + | /* RustType.kt:516 */
|
9412 12129 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9413 - | /// Holds one variant for each of the ways the builder can fail.
|
12130 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
12131 + | /* RustType.kt:516 */
|
9414 12132 | #[non_exhaustive]
|
12133 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9415 12134 | #[allow(clippy::enum_variant_names)]
|
9416 12135 | pub(crate) enum ConstraintViolation {
|
9417 - | /// `nice` was not provided but it is required when building `ConB`.
|
12136 + | /// /* ServerBuilderConstraintViolations.kt:138 */`nice` was not provided but it is required when building `ConB`.
|
12137 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9418 12138 | MissingNice,
|
9419 - | /// `int` was not provided but it is required when building `ConB`.
|
12139 + | /// /* ServerBuilderConstraintViolations.kt:138 */`int` was not provided but it is required when building `ConB`.
|
12140 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9420 12141 | MissingInt,
|
12142 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9421 12143 | }
|
12144 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9422 12145 | impl ::std::fmt::Display for ConstraintViolation {
|
12146 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9423 12147 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
12148 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9424 12149 | match self {
|
12150 + | /* ServerBuilderConstraintViolations.kt:127 */
|
9425 12151 | ConstraintViolation::MissingNice => write!(
|
9426 12152 | f,
|
9427 12153 | "`nice` was not provided but it is required when building `ConB`"
|
9428 12154 | ),
|
12155 + | /* ServerBuilderConstraintViolations.kt:127 */
|
9429 12156 | ConstraintViolation::MissingInt => write!(
|
9430 12157 | f,
|
9431 12158 | "`int` was not provided but it is required when building `ConB`"
|
9432 12159 | ),
|
12160 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9433 12161 | }
|
12162 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9434 12163 | }
|
12164 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9435 12165 | }
|
12166 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9436 12167 | impl ::std::error::Error for ConstraintViolation {}
|
12168 + | /* ServerBuilderConstraintViolations.kt:171 */
|
9437 12169 | impl ConstraintViolation {
|
9438 12170 | pub(crate) fn as_validation_exception_field(
|
9439 12171 | self,
|
9440 12172 | path: ::std::string::String,
|
9441 12173 | ) -> crate::model::ValidationExceptionField {
|
9442 12174 | match self {
|
9443 12175 | ConstraintViolation::MissingNice => crate::model::ValidationExceptionField {
|
9444 12176 | message: format!(
|
9445 12177 | "Value at '{}/nice' failed to satisfy constraint: Member must not be null",
|
9446 12178 | path
|
9447 12179 | ),
|
9448 12180 | path: path + "/nice",
|
9449 12181 | },
|
9450 12182 | ConstraintViolation::MissingInt => crate::model::ValidationExceptionField {
|
9451 12183 | message: format!(
|
9452 12184 | "Value at '{}/int' failed to satisfy constraint: Member must not be null",
|
9453 12185 | path
|
9454 12186 | ),
|
9455 12187 | path: path + "/int",
|
9456 12188 | },
|
9457 12189 | }
|
9458 12190 | }
|
9459 12191 | }
|
12192 + | /* ServerBuilderGenerator.kt:244 */
|
9460 12193 | impl ::std::convert::From<Builder> for crate::constrained::MaybeConstrained<crate::model::ConB> {
|
9461 12194 | fn from(builder: Builder) -> Self {
|
9462 12195 | Self::Unconstrained(builder)
|
9463 12196 | }
|
9464 12197 | }
|
12198 + | /* ServerBuilderGenerator.kt:446 */
|
9465 12199 | impl ::std::convert::TryFrom<Builder> for crate::model::ConB {
|
9466 12200 | type Error = ConstraintViolation;
|
9467 12201 |
|
9468 12202 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9469 12203 | builder.build()
|
9470 12204 | }
|
9471 12205 | }
|
9472 - | /// A builder for [`ConB`](crate::model::ConB).
|
12206 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConB`](crate::model::ConB).
|
12207 + | /* RustType.kt:516 */
|
9473 12208 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12209 + | /* ServerBuilderGenerator.kt:211 */
|
9474 12210 | pub(crate) struct Builder {
|
12211 + | /* ServerBuilderGenerator.kt:308 */
|
9475 12212 | pub(crate) nice: ::std::option::Option<::std::string::String>,
|
9476 - | pub(crate) int: ::std::option::Option<i32>,
|
12213 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) int: ::std::option::Option<i32>,
|
12214 + | /* ServerBuilderGenerator.kt:308 */
|
9477 12215 | pub(crate) opt_nice: ::std::option::Option<::std::string::String>,
|
12216 + | /* ServerBuilderGenerator.kt:308 */
|
9478 12217 | pub(crate) opt_int: ::std::option::Option<i32>,
|
12218 + | /* ServerBuilderGenerator.kt:211 */
|
9479 12219 | }
|
12220 + | /* ServerBuilderGenerator.kt:215 */
|
9480 12221 | impl Builder {
|
12222 + | /* ServerBuilderGenerator.kt:426 */
|
9481 12223 | #[allow(missing_docs)] // documentation missing in model
|
12224 + | /* ServerBuilderGenerator.kt:428 */
|
9482 12225 | pub(crate) fn set_nice(
|
9483 12226 | mut self,
|
9484 12227 | input: impl ::std::convert::Into<::std::string::String>,
|
9485 12228 | ) -> Self {
|
12229 + | /* ServerBuilderGenerator.kt:429 */
|
9486 12230 | self.nice = Some(input.into());
|
9487 12231 | self
|
12232 + | /* ServerBuilderGenerator.kt:428 */
|
9488 12233 | }
|
12234 + | /* ServerBuilderGenerator.kt:426 */
|
9489 12235 | #[allow(missing_docs)] // documentation missing in model
|
12236 + | /* ServerBuilderGenerator.kt:428 */
|
9490 12237 | pub(crate) fn set_int(mut self, input: impl ::std::convert::Into<i32>) -> Self {
|
12238 + | /* ServerBuilderGenerator.kt:429 */
|
9491 12239 | self.int = Some(input.into());
|
9492 12240 | self
|
12241 + | /* ServerBuilderGenerator.kt:428 */
|
9493 12242 | }
|
12243 + | /* ServerBuilderGenerator.kt:426 */
|
9494 12244 | #[allow(missing_docs)] // documentation missing in model
|
12245 + | /* ServerBuilderGenerator.kt:428 */
|
9495 12246 | pub(crate) fn set_opt_nice(
|
9496 12247 | mut self,
|
9497 12248 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9498 12249 | ) -> Self {
|
12250 + | /* ServerBuilderGenerator.kt:429 */
|
9499 12251 | self.opt_nice = input.map(|v| v.into());
|
9500 12252 | self
|
12253 + | /* ServerBuilderGenerator.kt:428 */
|
9501 12254 | }
|
12255 + | /* ServerBuilderGenerator.kt:426 */
|
9502 12256 | #[allow(missing_docs)] // documentation missing in model
|
12257 + | /* ServerBuilderGenerator.kt:428 */
|
9503 12258 | pub(crate) fn set_opt_int(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
12259 + | /* ServerBuilderGenerator.kt:429 */
|
9504 12260 | self.opt_int = input.map(|v| v.into());
|
9505 12261 | self
|
12262 + | /* ServerBuilderGenerator.kt:428 */
|
9506 12263 | }
|
9507 - | /// Consumes the builder and constructs a [`ConB`](crate::model::ConB).
|
9508 - | ///
|
12264 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConB`](crate::model::ConB).
|
12265 + | /// /* ServerBuilderGenerator.kt:260 */
|
9509 12266 | /// The builder fails to construct a [`ConB`](crate::model::ConB) if a [`ConstraintViolation`] occurs.
|
9510 12267 | ///
|
9511 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
12268 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
12269 + | /* ServerBuilderGenerator.kt:271 */
|
9512 12270 | pub fn build(self) -> Result<crate::model::ConB, ConstraintViolation> {
|
9513 12271 | self.build_enforcing_all_constraints()
|
9514 12272 | }
|
12273 + | /* ServerBuilderGenerator.kt:283 */
|
9515 12274 | fn build_enforcing_all_constraints(
|
9516 12275 | self,
|
9517 12276 | ) -> Result<crate::model::ConB, ConstraintViolation> {
|
9518 - | Ok(crate::model::ConB {
|
9519 - | nice: self.nice.ok_or(ConstraintViolation::MissingNice)?,
|
9520 - | int: self.int.ok_or(ConstraintViolation::MissingInt)?,
|
12277 + | /* ServerBuilderGenerator.kt:287 */
|
12278 + | Ok(
|
12279 + | /* ServerBuilderGenerator.kt:542 */
|
12280 + | crate::model::ConB {
|
12281 + | /* ServerBuilderGenerator.kt:546 */
|
12282 + | nice: self
|
12283 + | .nice
|
12284 + | /* ServerBuilderGenerator.kt:569 */
|
12285 + | .ok_or(ConstraintViolation::MissingNice)?,
|
12286 + | /* ServerBuilderGenerator.kt:546 */
|
12287 + | int: self
|
12288 + | .int
|
12289 + | /* ServerBuilderGenerator.kt:569 */
|
12290 + | .ok_or(ConstraintViolation::MissingInt)?,
|
12291 + | /* ServerBuilderGenerator.kt:546 */
|
9521 12292 | opt_nice: self.opt_nice,
|
12293 + | /* ServerBuilderGenerator.kt:546 */
|
9522 12294 | opt_int: self.opt_int,
|
9523 - | })
|
12295 + | /* ServerBuilderGenerator.kt:542 */
|
12296 + | }, /* ServerBuilderGenerator.kt:287 */
|
12297 + | )
|
12298 + | /* ServerBuilderGenerator.kt:283 */
|
9524 12299 | }
|
12300 + | /* ServerBuilderGenerator.kt:215 */
|
9525 12301 | }
|
12302 + |
|
12303 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9526 12304 | }
|
9527 - | /// See [`ConB`](crate::model::ConB).
|
12305 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConB`](crate::model::ConB).
|
9528 12306 | pub mod con_b {
|
9529 12307 |
|
12308 + | /* RustType.kt:516 */
|
9530 12309 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9531 - | /// Holds one variant for each of the ways the builder can fail.
|
9532 - |
|
12310 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
12311 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9533 12312 | #[allow(clippy::enum_variant_names)]
|
9534 12313 | pub enum ConstraintViolation {
|
9535 - | /// `nice` was not provided but it is required when building `ConB`.
|
12314 + | /// /* ServerBuilderConstraintViolations.kt:138 */`nice` was not provided but it is required when building `ConB`.
|
12315 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9536 12316 | MissingNice,
|
9537 - | /// `int` was not provided but it is required when building `ConB`.
|
12317 + | /// /* ServerBuilderConstraintViolations.kt:138 */`int` was not provided but it is required when building `ConB`.
|
12318 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9538 12319 | MissingInt,
|
12320 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9539 12321 | }
|
12322 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9540 12323 | impl ::std::fmt::Display for ConstraintViolation {
|
12324 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9541 12325 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
12326 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9542 12327 | match self {
|
12328 + | /* ServerBuilderConstraintViolations.kt:127 */
|
9543 12329 | ConstraintViolation::MissingNice => write!(
|
9544 12330 | f,
|
9545 12331 | "`nice` was not provided but it is required when building `ConB`"
|
9546 12332 | ),
|
12333 + | /* ServerBuilderConstraintViolations.kt:127 */
|
9547 12334 | ConstraintViolation::MissingInt => write!(
|
9548 12335 | f,
|
9549 12336 | "`int` was not provided but it is required when building `ConB`"
|
9550 12337 | ),
|
12338 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9551 12339 | }
|
12340 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9552 12341 | }
|
12342 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9553 12343 | }
|
12344 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9554 12345 | impl ::std::error::Error for ConstraintViolation {}
|
12346 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
9555 12347 | impl ::std::convert::TryFrom<Builder> for crate::model::ConB {
|
9556 12348 | type Error = ConstraintViolation;
|
9557 12349 |
|
9558 12350 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9559 12351 | builder.build()
|
9560 12352 | }
|
9561 12353 | }
|
9562 - | /// A builder for [`ConB`](crate::model::ConB).
|
12354 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConB`](crate::model::ConB).
|
12355 + | /* RustType.kt:516 */
|
9563 12356 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12357 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9564 12358 | pub struct Builder {
|
12359 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
9565 12360 | pub(crate) nice: ::std::option::Option<::std::string::String>,
|
12361 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
9566 12362 | pub(crate) int: ::std::option::Option<i32>,
|
12363 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
9567 12364 | pub(crate) opt_nice: ::std::option::Option<::std::string::String>,
|
12365 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
9568 12366 | pub(crate) opt_int: ::std::option::Option<i32>,
|
12367 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9569 12368 | }
|
12369 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9570 12370 | impl Builder {
|
12371 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
9571 12372 | #[allow(missing_docs)] // documentation missing in model
|
12373 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9572 12374 | pub fn nice(mut self, input: ::std::string::String) -> Self {
|
9573 - | self.nice = Some(input);
|
12375 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12376 + | self.nice =
|
12377 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
12378 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12379 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
12380 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
9574 12381 | self
|
12382 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9575 12383 | }
|
12384 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
9576 12385 | #[allow(missing_docs)] // documentation missing in model
|
12386 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9577 12387 | pub fn int(mut self, input: i32) -> Self {
|
9578 - | self.int = Some(input);
|
12388 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12389 + | self.int =
|
12390 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
12391 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12392 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
12393 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
9579 12394 | self
|
12395 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9580 12396 | }
|
12397 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
9581 12398 | #[allow(missing_docs)] // documentation missing in model
|
12399 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9582 12400 | pub fn opt_nice(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9583 - | self.opt_nice = input;
|
12401 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12402 + | self.opt_nice =
|
12403 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12404 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
9584 12405 | self
|
12406 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9585 12407 | }
|
12408 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
9586 12409 | #[allow(missing_docs)] // documentation missing in model
|
12410 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9587 12411 | pub fn opt_int(mut self, input: ::std::option::Option<i32>) -> Self {
|
9588 - | self.opt_int = input;
|
12412 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12413 + | self.opt_int =
|
12414 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12415 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
9589 12416 | self
|
12417 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9590 12418 | }
|
9591 - | /// Consumes the builder and constructs a [`ConB`](crate::model::ConB).
|
9592 - | ///
|
12419 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConB`](crate::model::ConB).
|
12420 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
9593 12421 | /// The builder fails to construct a [`ConB`](crate::model::ConB) if you do not provide a value for all non-`Option`al members.
|
9594 12422 | ///
|
12423 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
9595 12424 | pub fn build(self) -> Result<crate::model::ConB, ConstraintViolation> {
|
9596 12425 | self.build_enforcing_required_and_enum_traits()
|
9597 12426 | }
|
12427 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9598 12428 | fn build_enforcing_required_and_enum_traits(
|
9599 12429 | self,
|
9600 12430 | ) -> Result<crate::model::ConB, ConstraintViolation> {
|
9601 - | Ok(crate::model::ConB {
|
9602 - | nice: self.nice.ok_or(ConstraintViolation::MissingNice)?,
|
9603 - | int: self.int.ok_or(ConstraintViolation::MissingInt)?,
|
12431 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
12432 + | Ok(
|
12433 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12434 + | crate::model::ConB {
|
12435 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12436 + | nice: self
|
12437 + | .nice
|
12438 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
12439 + | .ok_or(ConstraintViolation::MissingNice)?,
|
12440 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12441 + | int: self
|
12442 + | .int
|
12443 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
12444 + | .ok_or(ConstraintViolation::MissingInt)?,
|
12445 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
9604 12446 | opt_nice: self.opt_nice,
|
12447 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
9605 12448 | opt_int: self.opt_int,
|
9606 - | })
|
12449 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12450 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
12451 + | )
|
12452 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9607 12453 | }
|
12454 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9608 12455 | }
|
12456 + |
|
12457 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9609 12458 | }
|
9610 12459 | pub(crate) mod sparse_length_list_internal {
|
9611 12460 |
|
12461 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9612 12462 | #[allow(clippy::enum_variant_names)]
|
9613 12463 | #[derive(Debug, PartialEq)]
|
9614 12464 | pub(crate) enum ConstraintViolation {
|
9615 12465 | /// Constraint violation error when the list doesn't have the required length
|
9616 12466 | Length(usize),
|
9617 12467 | }
|
9618 12468 |
|
9619 12469 | impl ::std::fmt::Display for ConstraintViolation {
|
9620 12470 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9621 12471 | let message = match self {
|
9622 12472 | Self::Length(length) => {
|
9623 12473 | format!("Value with length {} provided for 'com.amazonaws.constraints#SparseLengthList' failed to satisfy constraint: Member must have length greater than or equal to 69", length)
|
9624 12474 | }
|
9625 12475 | };
|
9626 12476 | write!(f, "{message}")
|
9627 12477 | }
|
9628 12478 | }
|
9629 12479 |
|
9630 12480 | impl ::std::error::Error for ConstraintViolation {}
|
12481 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9631 12482 | impl ConstraintViolation {
|
9632 12483 | pub(crate) fn as_validation_exception_field(
|
9633 12484 | self,
|
9634 12485 | path: ::std::string::String,
|
9635 12486 | ) -> crate::model::ValidationExceptionField {
|
9636 12487 | match self {
|
9637 12488 | Self::Length(length) => crate::model::ValidationExceptionField {
|
9638 12489 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length greater than or equal to 69", length, &path),
|
9639 12490 | path,
|
9640 12491 | },
|
9641 12492 | }
|
9642 12493 | }
|
9643 12494 | }
|
12495 + |
|
12496 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9644 12497 | }
|
9645 12498 | pub(crate) mod sparse_length_map_internal {
|
9646 12499 |
|
12500 + | /* MapConstraintViolationGenerator.kt:82 */
|
9647 12501 | #[allow(clippy::enum_variant_names)]
|
9648 12502 | #[derive(Debug, PartialEq)]
|
9649 12503 | pub(crate) enum ConstraintViolation {
|
9650 12504 | Length(usize),
|
9651 12505 | }
|
9652 12506 |
|
9653 12507 | impl ::std::fmt::Display for ConstraintViolation {
|
9654 12508 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9655 12509 | match self {
|
9656 12510 | Self::Length(length) => {
|
9657 12511 | write!(f, "Value with length {} provided for 'com.amazonaws.constraints#SparseLengthMap' failed to satisfy constraint: Member must have length greater than or equal to 69", length)
|
9658 12512 | }
|
9659 12513 | }
|
9660 12514 | }
|
9661 12515 | }
|
9662 12516 |
|
9663 12517 | impl ::std::error::Error for ConstraintViolation {}
|
12518 + | /* MapConstraintViolationGenerator.kt:111 */
|
9664 12519 | impl ConstraintViolation {
|
9665 12520 | pub(crate) fn as_validation_exception_field(
|
9666 12521 | self,
|
9667 12522 | path: ::std::string::String,
|
9668 12523 | ) -> crate::model::ValidationExceptionField {
|
9669 12524 | match self {
|
9670 12525 | Self::Length(length) => crate::model::ValidationExceptionField {
|
9671 12526 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length greater than or equal to 69", length, &path),
|
9672 12527 | path,
|
9673 12528 | },
|
9674 12529 | }
|
9675 12530 | }
|
9676 12531 | }
|
12532 + |
|
12533 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9677 12534 | }
|
9678 12535 | pub(crate) mod sparse_list_internal {
|
9679 12536 |
|
12537 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9680 12538 | #[allow(clippy::enum_variant_names)]
|
9681 12539 | #[derive(Debug, PartialEq)]
|
9682 12540 | pub(crate) enum ConstraintViolation {
|
9683 12541 | /// Constraint violation error when an element doesn't satisfy its own constraints.
|
9684 12542 | /// The first component of the tuple is the index in the collection where the
|
9685 12543 | /// first constraint violation was found.
|
9686 12544 | #[doc(hidden)]
|
9687 12545 | Member(
|
9688 12546 | usize,
|
9689 12547 | crate::model::length_string_internal::ConstraintViolation,
|
9690 12548 | ),
|
9691 12549 | }
|
9692 12550 |
|
9693 12551 | impl ::std::fmt::Display for ConstraintViolation {
|
9694 12552 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9695 12553 | let message = match self {
|
9696 12554 | Self::Member(index, failing_member) => format!(
|
9697 12555 | "Value at index {index} failed to satisfy constraint. {}",
|
9698 12556 | failing_member
|
9699 12557 | ),
|
9700 12558 | };
|
9701 12559 | write!(f, "{message}")
|
9702 12560 | }
|
9703 12561 | }
|
9704 12562 |
|
9705 12563 | impl ::std::error::Error for ConstraintViolation {}
|
12564 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9706 12565 | impl ConstraintViolation {
|
9707 12566 | pub(crate) fn as_validation_exception_field(
|
9708 12567 | self,
|
9709 12568 | path: ::std::string::String,
|
9710 12569 | ) -> crate::model::ValidationExceptionField {
|
9711 12570 | match self {
|
9712 12571 | Self::Member(index, member_constraint_violation) => member_constraint_violation
|
9713 12572 | .as_validation_exception_field(path + "/" + &index.to_string()),
|
9714 12573 | }
|
9715 12574 | }
|
9716 12575 | }
|
12576 + |
|
12577 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9717 12578 | }
|
9718 12579 | pub(crate) mod sparse_map_internal {
|
9719 12580 |
|
12581 + | /* MapConstraintViolationGenerator.kt:82 */
|
9720 12582 | #[allow(clippy::enum_variant_names)]
|
9721 12583 | #[derive(Debug, PartialEq)]
|
9722 12584 | pub(crate) enum ConstraintViolation {
|
9723 12585 | #[doc(hidden)]
|
9724 12586 | Value(
|
9725 12587 | ::std::string::String,
|
9726 12588 | crate::model::unique_items_list_internal::ConstraintViolation,
|
9727 12589 | ),
|
9728 12590 | }
|
9729 12591 |
|
9730 12592 | impl ::std::fmt::Display for ConstraintViolation {
|
9731 12593 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9732 12594 | match self {
|
9733 12595 | Self::Value(_, value_constraint_violation) => {
|
9734 12596 | write!(f, "{}", value_constraint_violation)
|
9735 12597 | }
|
9736 12598 | }
|
9737 12599 | }
|
9738 12600 | }
|
9739 12601 |
|
9740 12602 | impl ::std::error::Error for ConstraintViolation {}
|
12603 + | /* MapConstraintViolationGenerator.kt:111 */
|
9741 12604 | impl ConstraintViolation {
|
9742 12605 | pub(crate) fn as_validation_exception_field(
|
9743 12606 | self,
|
9744 12607 | path: ::std::string::String,
|
9745 12608 | ) -> crate::model::ValidationExceptionField {
|
9746 12609 | match self {
|
9747 12610 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
9748 12611 | .as_validation_exception_field(path + "/" + key.as_str()),
|
9749 12612 | }
|
9750 12613 | }
|
9751 12614 | }
|
12615 + |
|
12616 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9752 12617 | }
|
9753 12618 | pub(crate) mod unique_items_list_internal {
|
9754 12619 |
|
12620 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9755 12621 | #[allow(clippy::enum_variant_names)]
|
9756 12622 | #[derive(Debug, PartialEq)]
|
9757 12623 | pub(crate) enum ConstraintViolation {
|
9758 12624 | /// Constraint violation error when the list does not contain unique items
|
9759 12625 | UniqueItems {
|
9760 12626 | /// A vector of indices into `original` pointing to all duplicate items. This vector has
|
9761 12627 | /// at least two elements.
|
9762 12628 | /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
|
9763 12629 | /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
|
9764 12630 | /// Nothing is guaranteed about the order of the indices.
|
9765 12631 | duplicate_indices: ::std::vec::Vec<usize>,
|
9766 12632 | /// The original vector, that contains duplicate items.
|
9767 12633 | original: ::std::vec::Vec<::std::string::String>,
|
9768 12634 | },
|
9769 12635 | }
|
9770 12636 |
|
9771 12637 | impl ::std::fmt::Display for ConstraintViolation {
|
9772 12638 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9773 12639 | let message = match self {
|
9774 12640 | Self::UniqueItems { duplicate_indices, .. } =>
|
9775 12641 | format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#UniqueItemsList' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
|
9776 12642 | };
|
9777 12643 | write!(f, "{message}")
|
9778 12644 | }
|
9779 12645 | }
|
9780 12646 |
|
9781 12647 | impl ::std::error::Error for ConstraintViolation {}
|
12648 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9782 12649 | impl ConstraintViolation {
|
9783 12650 | pub(crate) fn as_validation_exception_field(
|
9784 12651 | self,
|
9785 12652 | path: ::std::string::String,
|
9786 12653 | ) -> crate::model::ValidationExceptionField {
|
9787 12654 | match self {
|
9788 12655 | Self::UniqueItems { duplicate_indices, .. } =>
|
9789 12656 | crate::model::ValidationExceptionField {
|
9790 12657 | message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
|
9791 12658 | path,
|
9792 12659 | },
|
9793 12660 | }
|
9794 12661 | }
|
9795 12662 | }
|
12663 + |
|
12664 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9796 12665 | }
|
9797 12666 | pub(crate) mod map_of_map_of_list_of_list_of_con_b_internal {
|
9798 12667 |
|
12668 + | /* MapConstraintViolationGenerator.kt:82 */
|
9799 12669 | #[allow(clippy::enum_variant_names)]
|
9800 12670 | #[derive(Debug, PartialEq)]
|
9801 12671 | pub(crate) enum ConstraintViolation {
|
9802 12672 | #[doc(hidden)]
|
9803 12673 | Value(
|
9804 12674 | ::std::string::String,
|
9805 12675 | crate::model::map_of_list_of_list_of_con_b_internal::ConstraintViolation,
|
9806 12676 | ),
|
9807 12677 | }
|
9808 12678 |
|
9809 12679 | impl ::std::fmt::Display for ConstraintViolation {
|
9810 12680 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9811 12681 | match self {
|
9812 12682 | Self::Value(_, value_constraint_violation) => {
|
9813 12683 | write!(f, "{}", value_constraint_violation)
|
9814 12684 | }
|
9815 12685 | }
|
9816 12686 | }
|
9817 12687 | }
|
9818 12688 |
|
9819 12689 | impl ::std::error::Error for ConstraintViolation {}
|
12690 + | /* MapConstraintViolationGenerator.kt:111 */
|
9820 12691 | impl ConstraintViolation {
|
9821 12692 | pub(crate) fn as_validation_exception_field(
|
9822 12693 | self,
|
9823 12694 | path: ::std::string::String,
|
9824 12695 | ) -> crate::model::ValidationExceptionField {
|
9825 12696 | match self {
|
9826 12697 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
9827 12698 | .as_validation_exception_field(path + "/" + key.as_str()),
|
9828 12699 | }
|
9829 12700 | }
|
9830 12701 | }
|
12702 + |
|
12703 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9831 12704 | }
|
9832 12705 | pub(crate) mod map_of_list_of_list_of_con_b_internal {
|
9833 12706 |
|
12707 + | /* MapConstraintViolationGenerator.kt:82 */
|
9834 12708 | #[allow(clippy::enum_variant_names)]
|
9835 12709 | #[derive(Debug, PartialEq)]
|
9836 12710 | pub(crate) enum ConstraintViolation {
|
9837 12711 | #[doc(hidden)]
|
9838 12712 | Value(
|
9839 12713 | ::std::string::String,
|
9840 12714 | crate::model::con_b_list_internal::ConstraintViolation,
|
9841 12715 | ),
|
9842 12716 | }
|
9843 12717 |
|
9844 12718 | impl ::std::fmt::Display for ConstraintViolation {
|
9845 12719 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9846 12720 | match self {
|
9847 12721 | Self::Value(_, value_constraint_violation) => {
|
9848 12722 | write!(f, "{}", value_constraint_violation)
|
9849 12723 | }
|
9850 12724 | }
|
9851 12725 | }
|
9852 12726 | }
|
9853 12727 |
|
9854 12728 | impl ::std::error::Error for ConstraintViolation {}
|
12729 + | /* MapConstraintViolationGenerator.kt:111 */
|
9855 12730 | impl ConstraintViolation {
|
9856 12731 | pub(crate) fn as_validation_exception_field(
|
9857 12732 | self,
|
9858 12733 | path: ::std::string::String,
|
9859 12734 | ) -> crate::model::ValidationExceptionField {
|
9860 12735 | match self {
|
9861 12736 | Self::Value(key, value_constraint_violation) => value_constraint_violation
|
9862 12737 | .as_validation_exception_field(path + "/" + key.as_str()),
|
9863 12738 | }
|
9864 12739 | }
|
9865 12740 | }
|
12741 + |
|
12742 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9866 12743 | }
|
9867 12744 | pub(crate) mod length_map_internal {
|
9868 12745 |
|
12746 + | /* MapConstraintViolationGenerator.kt:82 */
|
9869 12747 | #[allow(clippy::enum_variant_names)]
|
9870 12748 | #[derive(Debug, PartialEq)]
|
9871 12749 | pub(crate) enum ConstraintViolation {
|
9872 12750 | Length(usize),
|
9873 12751 | }
|
9874 12752 |
|
9875 12753 | impl ::std::fmt::Display for ConstraintViolation {
|
9876 12754 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9877 12755 | match self {
|
9878 12756 | Self::Length(length) => {
|
9879 12757 | write!(f, "Value with length {} provided for 'com.amazonaws.constraints#LengthMap' failed to satisfy constraint: Member must have length between 1 and 69, inclusive", length)
|
9880 12758 | }
|
9881 12759 | }
|
9882 12760 | }
|
9883 12761 | }
|
9884 12762 |
|
9885 12763 | impl ::std::error::Error for ConstraintViolation {}
|
12764 + | /* MapConstraintViolationGenerator.kt:111 */
|
9886 12765 | impl ConstraintViolation {
|
9887 12766 | pub(crate) fn as_validation_exception_field(
|
9888 12767 | self,
|
9889 12768 | path: ::std::string::String,
|
9890 12769 | ) -> crate::model::ValidationExceptionField {
|
9891 12770 | match self {
|
9892 12771 | Self::Length(length) => crate::model::ValidationExceptionField {
|
9893 12772 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 1 and 69, inclusive", length, &path),
|
9894 12773 | path,
|
9895 12774 | },
|
9896 12775 | }
|
9897 12776 | }
|
9898 12777 | }
|
12778 + |
|
12779 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9899 12780 | }
|
9900 12781 | pub(crate) mod sensitive_length_list_internal {
|
9901 12782 |
|
12783 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9902 12784 | #[allow(clippy::enum_variant_names)]
|
9903 12785 | #[derive(Debug, PartialEq)]
|
9904 12786 | pub(crate) enum ConstraintViolation {
|
9905 12787 | /// Constraint violation error when the list doesn't have the required length
|
9906 12788 | Length(usize),
|
9907 12789 | }
|
9908 12790 |
|
9909 12791 | impl ::std::fmt::Display for ConstraintViolation {
|
9910 12792 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9911 12793 | let message = match self {
|
9912 12794 | Self::Length(length) => {
|
9913 12795 | format!("Value with length {} provided for 'com.amazonaws.constraints#SensitiveLengthList' failed to satisfy constraint: Member must have length less than or equal to 69", length)
|
9914 12796 | }
|
9915 12797 | };
|
9916 12798 | write!(f, "{message}")
|
9917 12799 | }
|
9918 12800 | }
|
9919 12801 |
|
9920 12802 | impl ::std::error::Error for ConstraintViolation {}
|
12803 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
9921 12804 | impl ConstraintViolation {
|
9922 12805 | pub(crate) fn as_validation_exception_field(
|
9923 12806 | self,
|
9924 12807 | path: ::std::string::String,
|
9925 12808 | ) -> crate::model::ValidationExceptionField {
|
9926 12809 | match self {
|
9927 12810 | Self::Length(length) => crate::model::ValidationExceptionField {
|
9928 12811 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length less than or equal to 69", length, &path),
|
9929 12812 | path,
|
9930 12813 | },
|
9931 12814 | }
|
9932 12815 | }
|
9933 12816 | }
|
12817 + |
|
12818 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9934 12819 | }
|
9935 - | /// See [`SensitiveStructure`](crate::model::SensitiveStructure).
|
12820 + | /// /* ServerBuilderGenerator.kt:171 */See [`SensitiveStructure`](crate::model::SensitiveStructure).
|
9936 12821 | pub(crate) mod sensitive_structure_internal {
|
9937 12822 |
|
12823 + | /* ServerBuilderGenerator.kt:461 */
|
9938 12824 | impl ::std::convert::From<Builder> for crate::model::SensitiveStructure {
|
9939 12825 | fn from(builder: Builder) -> Self {
|
9940 12826 | builder.build()
|
9941 12827 | }
|
9942 12828 | }
|
9943 - | /// A builder for [`SensitiveStructure`](crate::model::SensitiveStructure).
|
12829 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SensitiveStructure`](crate::model::SensitiveStructure).
|
12830 + | /* RustType.kt:516 */
|
9944 12831 | #[derive(::std::clone::Clone, ::std::default::Default)]
|
9945 - | pub(crate) struct Builder {}
|
12832 + | /* ServerBuilderGenerator.kt:211 */
|
12833 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
12834 + | /* ServerBuilderGenerator.kt:215 */
|
9946 12835 | impl Builder {
|
9947 - | /// Consumes the builder and constructs a [`SensitiveStructure`](crate::model::SensitiveStructure).
|
12836 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SensitiveStructure`](crate::model::SensitiveStructure).
|
12837 + | /* ServerBuilderGenerator.kt:271 */
|
9948 12838 | pub fn build(self) -> crate::model::SensitiveStructure {
|
9949 12839 | self.build_enforcing_all_constraints()
|
9950 12840 | }
|
12841 + | /* ServerBuilderGenerator.kt:283 */
|
9951 12842 | fn build_enforcing_all_constraints(self) -> crate::model::SensitiveStructure {
|
9952 - | crate::model::SensitiveStructure {}
|
12843 + | /* ServerBuilderGenerator.kt:542 */
|
12844 + | crate::model::SensitiveStructure {
|
12845 + | /* ServerBuilderGenerator.kt:542 */}
|
12846 + | /* ServerBuilderGenerator.kt:283 */
|
9953 12847 | }
|
12848 + | /* ServerBuilderGenerator.kt:215 */
|
9954 12849 | }
|
12850 + | /* ServerBuilderGenerator.kt:474 */
|
9955 12851 | impl ::std::fmt::Debug for Builder {
|
12852 + | /* ServerBuilderGenerator.kt:475 */
|
9956 12853 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
12854 + | /* ServerBuilderGenerator.kt:476 */
|
9957 12855 | let mut formatter = f.debug_struct("Builder");
|
12856 + | /* ServerBuilderGenerator.kt:485 */
|
9958 12857 | formatter.finish()
|
12858 + | /* ServerBuilderGenerator.kt:475 */
|
9959 12859 | }
|
12860 + | /* ServerBuilderGenerator.kt:474 */
|
9960 12861 | }
|
12862 + |
|
12863 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9961 12864 | }
|
9962 - | /// See [`SensitiveStructure`](crate::model::SensitiveStructure).
|
12865 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`SensitiveStructure`](crate::model::SensitiveStructure).
|
9963 12866 | pub mod sensitive_structure {
|
9964 12867 |
|
12868 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
9965 12869 | impl ::std::convert::From<Builder> for crate::model::SensitiveStructure {
|
9966 12870 | fn from(builder: Builder) -> Self {
|
9967 12871 | builder.build()
|
9968 12872 | }
|
9969 12873 | }
|
9970 - | /// A builder for [`SensitiveStructure`](crate::model::SensitiveStructure).
|
12874 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`SensitiveStructure`](crate::model::SensitiveStructure).
|
12875 + | /* RustType.kt:516 */
|
9971 12876 | #[derive(::std::clone::Clone, ::std::default::Default)]
|
9972 - | pub struct Builder {}
|
12877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12878 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
12879 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9973 12880 | impl Builder {
|
9974 - | /// Consumes the builder and constructs a [`SensitiveStructure`](crate::model::SensitiveStructure).
|
12881 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`SensitiveStructure`](crate::model::SensitiveStructure).
|
12882 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
9975 12883 | pub fn build(self) -> crate::model::SensitiveStructure {
|
9976 12884 | self.build_enforcing_required_and_enum_traits()
|
9977 12885 | }
|
12886 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9978 12887 | fn build_enforcing_required_and_enum_traits(self) -> crate::model::SensitiveStructure {
|
9979 - | crate::model::SensitiveStructure {}
|
12888 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12889 + | crate::model::SensitiveStructure {
|
12890 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
12891 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9980 12892 | }
|
12893 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9981 12894 | }
|
12895 + |
|
12896 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9982 12897 | }
|
9983 12898 | pub(crate) mod length_list_internal {
|
9984 12899 |
|
12900 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
9985 12901 | #[allow(clippy::enum_variant_names)]
|
9986 12902 | #[derive(Debug, PartialEq)]
|
9987 12903 | pub(crate) enum ConstraintViolation {
|
9988 12904 | /// Constraint violation error when the list doesn't have the required length
|
9989 12905 | Length(usize),
|
9990 12906 | }
|
9991 12907 |
|
9992 12908 | impl ::std::fmt::Display for ConstraintViolation {
|
9993 12909 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9994 12910 | let message = match self {
|
9995 12911 | Self::Length(length) => {
|
9996 12912 | format!("Value with length {} provided for 'com.amazonaws.constraints#LengthList' failed to satisfy constraint: Member must have length less than or equal to 69", length)
|
9997 12913 | }
|
9998 12914 | };
|
9999 12915 | write!(f, "{message}")
|
10000 12916 | }
|
10001 12917 | }
|
10002 12918 |
|
10003 12919 | impl ::std::error::Error for ConstraintViolation {}
|
12920 + | /* CollectionConstraintViolationGenerator.kt:104 */
|
10004 12921 | impl ConstraintViolation {
|
10005 12922 | pub(crate) fn as_validation_exception_field(
|
10006 12923 | self,
|
10007 12924 | path: ::std::string::String,
|
10008 12925 | ) -> crate::model::ValidationExceptionField {
|
10009 12926 | match self {
|
10010 12927 | Self::Length(length) => crate::model::ValidationExceptionField {
|
10011 12928 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length less than or equal to 69", length, &path),
|
10012 12929 | path,
|
10013 12930 | },
|
10014 12931 | }
|
10015 12932 | }
|
10016 12933 | }
|
12934 + |
|
12935 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10017 12936 | }
|
10018 12937 | pub(crate) mod fixed_value_byte_internal {
|
10019 12938 |
|
12939 + | /* ConstrainedNumberGenerator.kt:139 */
|
10020 12940 | #[derive(Debug, PartialEq)]
|
10021 12941 | pub enum ConstraintViolation {
|
10022 12942 | Range(i8),
|
10023 12943 | }
|
10024 12944 |
|
10025 12945 | impl ::std::fmt::Display for ConstraintViolation {
|
10026 12946 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10027 12947 | write!(f, "Value for `com.amazonaws.constraints#FixedValueByte`failed to satisfy constraint: Member must be between 10 and 10, inclusive")
|
10028 12948 | }
|
10029 12949 | }
|
10030 12950 |
|
10031 12951 | impl ::std::error::Error for ConstraintViolation {}
|
12952 + | /* ConstrainedNumberGenerator.kt:159 */
|
10032 12953 | impl ConstraintViolation {
|
10033 12954 | pub(crate) fn as_validation_exception_field(
|
10034 12955 | self,
|
10035 12956 | path: ::std::string::String,
|
10036 12957 | ) -> crate::model::ValidationExceptionField {
|
10037 12958 | match self {
|
10038 12959 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10039 12960 | message: format!("Value at '{}' failed to satisfy constraint: Member must be between 10 and 10, inclusive", &path),
|
10040 12961 | path,
|
10041 12962 | },
|
10042 12963 | }
|
10043 12964 | }
|
10044 12965 | }
|
12966 + |
|
12967 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10045 12968 | }
|
10046 12969 | pub(crate) mod max_range_byte_internal {
|
10047 12970 |
|
12971 + | /* ConstrainedNumberGenerator.kt:139 */
|
10048 12972 | #[derive(Debug, PartialEq)]
|
10049 12973 | pub enum ConstraintViolation {
|
10050 12974 | Range(i8),
|
10051 12975 | }
|
10052 12976 |
|
10053 12977 | impl ::std::fmt::Display for ConstraintViolation {
|
10054 12978 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10055 12979 | write!(f, "Value for `com.amazonaws.constraints#MaxRangeByte`failed to satisfy constraint: Member must be less than or equal to 11")
|
10056 12980 | }
|
10057 12981 | }
|
10058 12982 |
|
10059 12983 | impl ::std::error::Error for ConstraintViolation {}
|
12984 + | /* ConstrainedNumberGenerator.kt:159 */
|
10060 12985 | impl ConstraintViolation {
|
10061 12986 | pub(crate) fn as_validation_exception_field(
|
10062 12987 | self,
|
10063 12988 | path: ::std::string::String,
|
10064 12989 | ) -> crate::model::ValidationExceptionField {
|
10065 12990 | match self {
|
10066 12991 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10067 12992 | message: format!("Value at '{}' failed to satisfy constraint: Member must be less than or equal to 11", &path),
|
10068 12993 | path,
|
10069 12994 | },
|
10070 12995 | }
|
10071 12996 | }
|
10072 12997 | }
|
12998 + |
|
12999 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10073 13000 | }
|
10074 13001 | pub(crate) mod min_range_byte_internal {
|
10075 13002 |
|
13003 + | /* ConstrainedNumberGenerator.kt:139 */
|
10076 13004 | #[derive(Debug, PartialEq)]
|
10077 13005 | pub enum ConstraintViolation {
|
10078 13006 | Range(i8),
|
10079 13007 | }
|
10080 13008 |
|
10081 13009 | impl ::std::fmt::Display for ConstraintViolation {
|
10082 13010 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10083 13011 | write!(f, "Value for `com.amazonaws.constraints#MinRangeByte`failed to satisfy constraint: Member must be greater than or equal to -10")
|
10084 13012 | }
|
10085 13013 | }
|
10086 13014 |
|
10087 13015 | impl ::std::error::Error for ConstraintViolation {}
|
13016 + | /* ConstrainedNumberGenerator.kt:159 */
|
10088 13017 | impl ConstraintViolation {
|
10089 13018 | pub(crate) fn as_validation_exception_field(
|
10090 13019 | self,
|
10091 13020 | path: ::std::string::String,
|
10092 13021 | ) -> crate::model::ValidationExceptionField {
|
10093 13022 | match self {
|
10094 13023 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10095 13024 | message: format!("Value at '{}' failed to satisfy constraint: Member must be greater than or equal to -10", &path),
|
10096 13025 | path,
|
10097 13026 | },
|
10098 13027 | }
|
10099 13028 | }
|
10100 13029 | }
|
13030 + |
|
13031 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10101 13032 | }
|
10102 13033 | pub(crate) mod fixed_value_long_internal {
|
10103 13034 |
|
13035 + | /* ConstrainedNumberGenerator.kt:139 */
|
10104 13036 | #[derive(Debug, PartialEq)]
|
10105 13037 | pub enum ConstraintViolation {
|
10106 13038 | Range(i64),
|
10107 13039 | }
|
10108 13040 |
|
10109 13041 | impl ::std::fmt::Display for ConstraintViolation {
|
10110 13042 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10111 13043 | write!(f, "Value for `com.amazonaws.constraints#FixedValueLong`failed to satisfy constraint: Member must be between 10 and 10, inclusive")
|
10112 13044 | }
|
10113 13045 | }
|
10114 13046 |
|
10115 13047 | impl ::std::error::Error for ConstraintViolation {}
|
13048 + | /* ConstrainedNumberGenerator.kt:159 */
|
10116 13049 | impl ConstraintViolation {
|
10117 13050 | pub(crate) fn as_validation_exception_field(
|
10118 13051 | self,
|
10119 13052 | path: ::std::string::String,
|
10120 13053 | ) -> crate::model::ValidationExceptionField {
|
10121 13054 | match self {
|
10122 13055 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10123 13056 | message: format!("Value at '{}' failed to satisfy constraint: Member must be between 10 and 10, inclusive", &path),
|
10124 13057 | path,
|
10125 13058 | },
|
10126 13059 | }
|
10127 13060 | }
|
10128 13061 | }
|
13062 + |
|
13063 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10129 13064 | }
|
10130 13065 | pub(crate) mod max_range_long_internal {
|
10131 13066 |
|
13067 + | /* ConstrainedNumberGenerator.kt:139 */
|
10132 13068 | #[derive(Debug, PartialEq)]
|
10133 13069 | pub enum ConstraintViolation {
|
10134 13070 | Range(i64),
|
10135 13071 | }
|
10136 13072 |
|
10137 13073 | impl ::std::fmt::Display for ConstraintViolation {
|
10138 13074 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10139 13075 | write!(f, "Value for `com.amazonaws.constraints#MaxRangeLong`failed to satisfy constraint: Member must be less than or equal to 11")
|
10140 13076 | }
|
10141 13077 | }
|
10142 13078 |
|
10143 13079 | impl ::std::error::Error for ConstraintViolation {}
|
13080 + | /* ConstrainedNumberGenerator.kt:159 */
|
10144 13081 | impl ConstraintViolation {
|
10145 13082 | pub(crate) fn as_validation_exception_field(
|
10146 13083 | self,
|
10147 13084 | path: ::std::string::String,
|
10148 13085 | ) -> crate::model::ValidationExceptionField {
|
10149 13086 | match self {
|
10150 13087 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10151 13088 | message: format!("Value at '{}' failed to satisfy constraint: Member must be less than or equal to 11", &path),
|
10152 13089 | path,
|
10153 13090 | },
|
10154 13091 | }
|
10155 13092 | }
|
10156 13093 | }
|
13094 + |
|
13095 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10157 13096 | }
|
10158 13097 | pub(crate) mod min_range_long_internal {
|
10159 13098 |
|
13099 + | /* ConstrainedNumberGenerator.kt:139 */
|
10160 13100 | #[derive(Debug, PartialEq)]
|
10161 13101 | pub enum ConstraintViolation {
|
10162 13102 | Range(i64),
|
10163 13103 | }
|
10164 13104 |
|
10165 13105 | impl ::std::fmt::Display for ConstraintViolation {
|
10166 13106 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10167 13107 | write!(f, "Value for `com.amazonaws.constraints#MinRangeLong`failed to satisfy constraint: Member must be greater than or equal to -10")
|
10168 13108 | }
|
10169 13109 | }
|
10170 13110 |
|
10171 13111 | impl ::std::error::Error for ConstraintViolation {}
|
13112 + | /* ConstrainedNumberGenerator.kt:159 */
|
10172 13113 | impl ConstraintViolation {
|
10173 13114 | pub(crate) fn as_validation_exception_field(
|
10174 13115 | self,
|
10175 13116 | path: ::std::string::String,
|
10176 13117 | ) -> crate::model::ValidationExceptionField {
|
10177 13118 | match self {
|
10178 13119 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10179 13120 | message: format!("Value at '{}' failed to satisfy constraint: Member must be greater than or equal to -10", &path),
|
10180 13121 | path,
|
10181 13122 | },
|
10182 13123 | }
|
10183 13124 | }
|
10184 13125 | }
|
13126 + |
|
13127 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10185 13128 | }
|
10186 13129 | pub(crate) mod fixed_value_short_internal {
|
10187 13130 |
|
13131 + | /* ConstrainedNumberGenerator.kt:139 */
|
10188 13132 | #[derive(Debug, PartialEq)]
|
10189 13133 | pub enum ConstraintViolation {
|
10190 13134 | Range(i16),
|
10191 13135 | }
|
10192 13136 |
|
10193 13137 | impl ::std::fmt::Display for ConstraintViolation {
|
10194 13138 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10195 13139 | write!(f, "Value for `com.amazonaws.constraints#FixedValueShort`failed to satisfy constraint: Member must be between 10 and 10, inclusive")
|
10196 13140 | }
|
10197 13141 | }
|
10198 13142 |
|
10199 13143 | impl ::std::error::Error for ConstraintViolation {}
|
13144 + | /* ConstrainedNumberGenerator.kt:159 */
|
10200 13145 | impl ConstraintViolation {
|
10201 13146 | pub(crate) fn as_validation_exception_field(
|
10202 13147 | self,
|
10203 13148 | path: ::std::string::String,
|
10204 13149 | ) -> crate::model::ValidationExceptionField {
|
10205 13150 | match self {
|
10206 13151 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10207 13152 | message: format!("Value at '{}' failed to satisfy constraint: Member must be between 10 and 10, inclusive", &path),
|
10208 13153 | path,
|
10209 13154 | },
|
10210 13155 | }
|
10211 13156 | }
|
10212 13157 | }
|
13158 + |
|
13159 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10213 13160 | }
|
10214 13161 | pub(crate) mod max_range_short_internal {
|
10215 13162 |
|
13163 + | /* ConstrainedNumberGenerator.kt:139 */
|
10216 13164 | #[derive(Debug, PartialEq)]
|
10217 13165 | pub enum ConstraintViolation {
|
10218 13166 | Range(i16),
|
10219 13167 | }
|
10220 13168 |
|
10221 13169 | impl ::std::fmt::Display for ConstraintViolation {
|
10222 13170 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10223 13171 | write!(f, "Value for `com.amazonaws.constraints#MaxRangeShort`failed to satisfy constraint: Member must be less than or equal to 11")
|
10224 13172 | }
|
10225 13173 | }
|
10226 13174 |
|
10227 13175 | impl ::std::error::Error for ConstraintViolation {}
|
13176 + | /* ConstrainedNumberGenerator.kt:159 */
|
10228 13177 | impl ConstraintViolation {
|
10229 13178 | pub(crate) fn as_validation_exception_field(
|
10230 13179 | self,
|
10231 13180 | path: ::std::string::String,
|
10232 13181 | ) -> crate::model::ValidationExceptionField {
|
10233 13182 | match self {
|
10234 13183 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10235 13184 | message: format!("Value at '{}' failed to satisfy constraint: Member must be less than or equal to 11", &path),
|
10236 13185 | path,
|
10237 13186 | },
|
10238 13187 | }
|
10239 13188 | }
|
10240 13189 | }
|
13190 + |
|
13191 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10241 13192 | }
|
10242 13193 | pub(crate) mod min_range_short_internal {
|
10243 13194 |
|
13195 + | /* ConstrainedNumberGenerator.kt:139 */
|
10244 13196 | #[derive(Debug, PartialEq)]
|
10245 13197 | pub enum ConstraintViolation {
|
10246 13198 | Range(i16),
|
10247 13199 | }
|
10248 13200 |
|
10249 13201 | impl ::std::fmt::Display for ConstraintViolation {
|
10250 13202 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10251 13203 | write!(f, "Value for `com.amazonaws.constraints#MinRangeShort`failed to satisfy constraint: Member must be greater than or equal to -10")
|
10252 13204 | }
|
10253 13205 | }
|
10254 13206 |
|
10255 13207 | impl ::std::error::Error for ConstraintViolation {}
|
13208 + | /* ConstrainedNumberGenerator.kt:159 */
|
10256 13209 | impl ConstraintViolation {
|
10257 13210 | pub(crate) fn as_validation_exception_field(
|
10258 13211 | self,
|
10259 13212 | path: ::std::string::String,
|
10260 13213 | ) -> crate::model::ValidationExceptionField {
|
10261 13214 | match self {
|
10262 13215 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10263 13216 | message: format!("Value at '{}' failed to satisfy constraint: Member must be greater than or equal to -10", &path),
|
10264 13217 | path,
|
10265 13218 | },
|
10266 13219 | }
|
10267 13220 | }
|
10268 13221 | }
|
13222 + |
|
13223 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10269 13224 | }
|
10270 13225 | pub(crate) mod fixed_value_integer_internal {
|
10271 13226 |
|
13227 + | /* ConstrainedNumberGenerator.kt:139 */
|
10272 13228 | #[derive(Debug, PartialEq)]
|
10273 13229 | pub enum ConstraintViolation {
|
10274 13230 | Range(i32),
|
10275 13231 | }
|
10276 13232 |
|
10277 13233 | impl ::std::fmt::Display for ConstraintViolation {
|
10278 13234 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10279 13235 | write!(f, "Value for `com.amazonaws.constraints#FixedValueInteger`failed to satisfy constraint: Member must be between 69 and 69, inclusive")
|
10280 13236 | }
|
10281 13237 | }
|
10282 13238 |
|
10283 13239 | impl ::std::error::Error for ConstraintViolation {}
|
13240 + | /* ConstrainedNumberGenerator.kt:159 */
|
10284 13241 | impl ConstraintViolation {
|
10285 13242 | pub(crate) fn as_validation_exception_field(
|
10286 13243 | self,
|
10287 13244 | path: ::std::string::String,
|
10288 13245 | ) -> crate::model::ValidationExceptionField {
|
10289 13246 | match self {
|
10290 13247 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10291 13248 | message: format!("Value at '{}' failed to satisfy constraint: Member must be between 69 and 69, inclusive", &path),
|
10292 13249 | path,
|
10293 13250 | },
|
10294 13251 | }
|
10295 13252 | }
|
10296 13253 | }
|
13254 + |
|
13255 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10297 13256 | }
|
10298 13257 | pub(crate) mod max_range_integer_internal {
|
10299 13258 |
|
13259 + | /* ConstrainedNumberGenerator.kt:139 */
|
10300 13260 | #[derive(Debug, PartialEq)]
|
10301 13261 | pub enum ConstraintViolation {
|
10302 13262 | Range(i32),
|
10303 13263 | }
|
10304 13264 |
|
10305 13265 | impl ::std::fmt::Display for ConstraintViolation {
|
10306 13266 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10307 13267 | write!(f, "Value for `com.amazonaws.constraints#MaxRangeInteger`failed to satisfy constraint: Member must be less than or equal to 69")
|
10308 13268 | }
|
10309 13269 | }
|
10310 13270 |
|
10311 13271 | impl ::std::error::Error for ConstraintViolation {}
|
13272 + | /* ConstrainedNumberGenerator.kt:159 */
|
10312 13273 | impl ConstraintViolation {
|
10313 13274 | pub(crate) fn as_validation_exception_field(
|
10314 13275 | self,
|
10315 13276 | path: ::std::string::String,
|
10316 13277 | ) -> crate::model::ValidationExceptionField {
|
10317 13278 | match self {
|
10318 13279 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10319 13280 | message: format!("Value at '{}' failed to satisfy constraint: Member must be less than or equal to 69", &path),
|
10320 13281 | path,
|
10321 13282 | },
|
10322 13283 | }
|
10323 13284 | }
|
10324 13285 | }
|
13286 + |
|
13287 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10325 13288 | }
|
10326 13289 | pub(crate) mod min_range_integer_internal {
|
10327 13290 |
|
13291 + | /* ConstrainedNumberGenerator.kt:139 */
|
10328 13292 | #[derive(Debug, PartialEq)]
|
10329 13293 | pub enum ConstraintViolation {
|
10330 13294 | Range(i32),
|
10331 13295 | }
|
10332 13296 |
|
10333 13297 | impl ::std::fmt::Display for ConstraintViolation {
|
10334 13298 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10335 13299 | write!(f, "Value for `com.amazonaws.constraints#MinRangeInteger`failed to satisfy constraint: Member must be greater than or equal to -10")
|
10336 13300 | }
|
10337 13301 | }
|
10338 13302 |
|
10339 13303 | impl ::std::error::Error for ConstraintViolation {}
|
13304 + | /* ConstrainedNumberGenerator.kt:159 */
|
10340 13305 | impl ConstraintViolation {
|
10341 13306 | pub(crate) fn as_validation_exception_field(
|
10342 13307 | self,
|
10343 13308 | path: ::std::string::String,
|
10344 13309 | ) -> crate::model::ValidationExceptionField {
|
10345 13310 | match self {
|
10346 13311 | Self::Range(_) => crate::model::ValidationExceptionField {
|
10347 13312 | message: format!("Value at '{}' failed to satisfy constraint: Member must be greater than or equal to -10", &path),
|
10348 13313 | path,
|
10349 13314 | },
|
10350 13315 | }
|
10351 13316 | }
|
10352 13317 | }
|
13318 + |
|
13319 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10353 13320 | }
|
10354 13321 | pub(crate) mod fixed_length_blob_internal {
|
10355 13322 |
|
13323 + | /* ConstrainedBlobGenerator.kt:129 */
|
10356 13324 | #[derive(Debug, PartialEq)]
|
10357 13325 | pub enum ConstraintViolation {
|
10358 13326 | /// Error when a blob doesn't satisfy its `@length` requirements.
|
10359 13327 | Length(usize),
|
10360 13328 | }
|
10361 13329 |
|
10362 13330 | impl ::std::fmt::Display for ConstraintViolation {
|
10363 13331 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10364 13332 | let message = match self {
|
10365 13333 | Self::Length(length) => {
|
10366 13334 | format!("Value with length {} provided for 'com.amazonaws.constraints#FixedLengthBlob' failed to satisfy constraint: Member must have length between 70 and 70, inclusive", length)
|
10367 13335 | }
|
10368 13336 | };
|
10369 13337 | write!(f, "{message}")
|
10370 13338 | }
|
10371 13339 | }
|
10372 13340 |
|
10373 13341 | impl ::std::error::Error for ConstraintViolation {}
|
13342 + | /* ConstrainedBlobGenerator.kt:154 */
|
10374 13343 | impl ConstraintViolation {
|
10375 13344 | pub(crate) fn as_validation_exception_field(
|
10376 13345 | self,
|
10377 13346 | path: ::std::string::String,
|
10378 13347 | ) -> crate::model::ValidationExceptionField {
|
10379 13348 | match self {
|
10380 13349 | Self::Length(length) => crate::model::ValidationExceptionField {
|
10381 13350 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 70 and 70, inclusive", length, &path),
|
10382 13351 | path,
|
10383 13352 | },
|
10384 13353 | }
|
10385 13354 | }
|
10386 13355 | }
|
13356 + |
|
13357 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10387 13358 | }
|
10388 13359 | pub(crate) mod max_length_blob_internal {
|
10389 13360 |
|
13361 + | /* ConstrainedBlobGenerator.kt:129 */
|
10390 13362 | #[derive(Debug, PartialEq)]
|
10391 13363 | pub enum ConstraintViolation {
|
10392 13364 | /// Error when a blob doesn't satisfy its `@length` requirements.
|
10393 13365 | Length(usize),
|
10394 13366 | }
|
10395 13367 |
|
10396 13368 | impl ::std::fmt::Display for ConstraintViolation {
|
10397 13369 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10398 13370 | let message = match self {
|
10399 13371 | Self::Length(length) => {
|
10400 13372 | format!("Value with length {} provided for 'com.amazonaws.constraints#MaxLengthBlob' failed to satisfy constraint: Member must have length less than or equal to 70", length)
|
10401 13373 | }
|
10402 13374 | };
|
10403 13375 | write!(f, "{message}")
|
10404 13376 | }
|
10405 13377 | }
|
10406 13378 |
|
10407 13379 | impl ::std::error::Error for ConstraintViolation {}
|
13380 + | /* ConstrainedBlobGenerator.kt:154 */
|
10408 13381 | impl ConstraintViolation {
|
10409 13382 | pub(crate) fn as_validation_exception_field(
|
10410 13383 | self,
|
10411 13384 | path: ::std::string::String,
|
10412 13385 | ) -> crate::model::ValidationExceptionField {
|
10413 13386 | match self {
|
10414 13387 | Self::Length(length) => crate::model::ValidationExceptionField {
|
10415 13388 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length less than or equal to 70", length, &path),
|
10416 13389 | path,
|
10417 13390 | },
|
10418 13391 | }
|
10419 13392 | }
|
10420 13393 | }
|
13394 + |
|
13395 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10421 13396 | }
|
10422 13397 | pub(crate) mod min_length_blob_internal {
|
10423 13398 |
|
13399 + | /* ConstrainedBlobGenerator.kt:129 */
|
10424 13400 | #[derive(Debug, PartialEq)]
|
10425 13401 | pub enum ConstraintViolation {
|
10426 13402 | /// Error when a blob doesn't satisfy its `@length` requirements.
|
10427 13403 | Length(usize),
|
10428 13404 | }
|
10429 13405 |
|
10430 13406 | impl ::std::fmt::Display for ConstraintViolation {
|
10431 13407 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10432 13408 | let message = match self {
|
10433 13409 | Self::Length(length) => {
|
10434 13410 | format!("Value with length {} provided for 'com.amazonaws.constraints#MinLengthBlob' failed to satisfy constraint: Member must have length greater than or equal to 2", length)
|
10435 13411 | }
|
10436 13412 | };
|
10437 13413 | write!(f, "{message}")
|
10438 13414 | }
|
10439 13415 | }
|
10440 13416 |
|
10441 13417 | impl ::std::error::Error for ConstraintViolation {}
|
13418 + | /* ConstrainedBlobGenerator.kt:154 */
|
10442 13419 | impl ConstraintViolation {
|
10443 13420 | pub(crate) fn as_validation_exception_field(
|
10444 13421 | self,
|
10445 13422 | path: ::std::string::String,
|
10446 13423 | ) -> crate::model::ValidationExceptionField {
|
10447 13424 | match self {
|
10448 13425 | Self::Length(length) => crate::model::ValidationExceptionField {
|
10449 13426 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length greater than or equal to 2", length, &path),
|
10450 13427 | path,
|
10451 13428 | },
|
10452 13429 | }
|
10453 13430 | }
|
10454 13431 | }
|
13432 + |
|
13433 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10455 13434 | }
|
10456 13435 | pub(crate) mod fixed_length_string_internal {
|
10457 13436 |
|
13437 + | /* ConstrainedStringGenerator.kt:155 */
|
10458 13438 | #[derive(Debug, PartialEq)]
|
10459 13439 | pub enum ConstraintViolation {
|
10460 13440 | /// Error when a string doesn't satisfy its `@length` requirements.
|
10461 13441 | Length(usize),
|
10462 13442 | }
|
10463 13443 |
|
10464 13444 | impl ::std::fmt::Display for ConstraintViolation {
|
10465 13445 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10466 13446 | let message = match self {
|
10467 13447 | Self::Length(length) => {
|
10468 13448 | format!("Value with length {} provided for 'com.amazonaws.constraints#FixedLengthString' failed to satisfy constraint: Member must have length between 69 and 69, inclusive", length)
|
10469 13449 | }
|
10470 13450 | };
|
10471 13451 | write!(f, "{message}")
|
10472 13452 | }
|
10473 13453 | }
|
10474 13454 |
|
10475 13455 | impl ::std::error::Error for ConstraintViolation {}
|
13456 + | /* ConstrainedStringGenerator.kt:180 */
|
10476 13457 | impl ConstraintViolation {
|
10477 13458 | pub(crate) fn as_validation_exception_field(
|
10478 13459 | self,
|
10479 13460 | path: ::std::string::String,
|
10480 13461 | ) -> crate::model::ValidationExceptionField {
|
10481 13462 | match self {
|
10482 13463 | Self::Length(length) => crate::model::ValidationExceptionField {
|
10483 13464 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 69 and 69, inclusive", length, &path),
|
10484 13465 | path,
|
10485 13466 | },
|
10486 13467 | }
|
10487 13468 | }
|
10488 13469 | }
|
13470 + |
|
13471 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10489 13472 | }
|
10490 13473 | pub(crate) mod max_length_string_internal {
|
10491 13474 |
|
13475 + | /* ConstrainedStringGenerator.kt:155 */
|
10492 13476 | #[derive(Debug, PartialEq)]
|
10493 13477 | pub enum ConstraintViolation {
|
10494 13478 | /// Error when a string doesn't satisfy its `@length` requirements.
|
10495 13479 | Length(usize),
|
10496 13480 | }
|
10497 13481 |
|
10498 13482 | impl ::std::fmt::Display for ConstraintViolation {
|
10499 13483 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10500 13484 | let message = match self {
|
10501 13485 | Self::Length(length) => {
|
10502 13486 | format!("Value with length {} provided for 'com.amazonaws.constraints#MaxLengthString' failed to satisfy constraint: Member must have length less than or equal to 69", length)
|
10503 13487 | }
|
10504 13488 | };
|
10505 13489 | write!(f, "{message}")
|
10506 13490 | }
|
10507 13491 | }
|
10508 13492 |
|
10509 13493 | impl ::std::error::Error for ConstraintViolation {}
|
13494 + | /* ConstrainedStringGenerator.kt:180 */
|
10510 13495 | impl ConstraintViolation {
|
10511 13496 | pub(crate) fn as_validation_exception_field(
|
10512 13497 | self,
|
10513 13498 | path: ::std::string::String,
|
10514 13499 | ) -> crate::model::ValidationExceptionField {
|
10515 13500 | match self {
|
10516 13501 | Self::Length(length) => crate::model::ValidationExceptionField {
|
10517 13502 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length less than or equal to 69", length, &path),
|
10518 13503 | path,
|
10519 13504 | },
|
10520 13505 | }
|
10521 13506 | }
|
10522 13507 | }
|
13508 + |
|
13509 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10523 13510 | }
|
10524 13511 | pub(crate) mod min_length_string_internal {
|
10525 13512 |
|
13513 + | /* ConstrainedStringGenerator.kt:155 */
|
10526 13514 | #[derive(Debug, PartialEq)]
|
10527 13515 | pub enum ConstraintViolation {
|
10528 13516 | /// Error when a string doesn't satisfy its `@length` requirements.
|
10529 13517 | Length(usize),
|
10530 13518 | }
|
10531 13519 |
|
10532 13520 | impl ::std::fmt::Display for ConstraintViolation {
|
10533 13521 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10534 13522 | let message = match self {
|
10535 13523 | Self::Length(length) => {
|
10536 13524 | format!("Value with length {} provided for 'com.amazonaws.constraints#MinLengthString' failed to satisfy constraint: Member must have length greater than or equal to 2", length)
|
10537 13525 | }
|
10538 13526 | };
|
10539 13527 | write!(f, "{message}")
|
10540 13528 | }
|
10541 13529 | }
|
10542 13530 |
|
10543 13531 | impl ::std::error::Error for ConstraintViolation {}
|
13532 + | /* ConstrainedStringGenerator.kt:180 */
|
10544 13533 | impl ConstraintViolation {
|
10545 13534 | pub(crate) fn as_validation_exception_field(
|
10546 13535 | self,
|
10547 13536 | path: ::std::string::String,
|
10548 13537 | ) -> crate::model::ValidationExceptionField {
|
10549 13538 | match self {
|
10550 13539 | Self::Length(length) => crate::model::ValidationExceptionField {
|
10551 13540 | message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length greater than or equal to 2", length, &path),
|
10552 13541 | path,
|
10553 13542 | },
|
10554 13543 | }
|
10555 13544 | }
|
10556 13545 | }
|
13546 + |
|
13547 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10557 13548 | }
|
10558 - | /// See [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
|
13549 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
|
10559 13550 | pub mod transitively_constrained_structure_in_output {
|
10560 13551 |
|
13552 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
10561 13553 | impl ::std::convert::From<Builder> for crate::model::TransitivelyConstrainedStructureInOutput {
|
10562 13554 | fn from(builder: Builder) -> Self {
|
10563 13555 | builder.build()
|
10564 13556 | }
|
10565 13557 | }
|
10566 - | /// A builder for [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
|
13558 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
|
13559 + | /* RustType.kt:516 */
|
10567 13560 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10568 13562 | pub struct Builder {
|
13563 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
10569 13564 | pub(crate) length_string: ::std::option::Option<::std::string::String>,
|
13565 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10570 13566 | }
|
13567 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10571 13568 | impl Builder {
|
13569 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
10572 13570 | #[allow(missing_docs)] // documentation missing in model
|
13571 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10573 13572 | pub fn length_string(
|
10574 13573 | mut self,
|
10575 13574 | input: ::std::option::Option<::std::string::String>,
|
10576 13575 | ) -> Self {
|
10577 - | self.length_string = input;
|
13576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
13577 + | self.length_string =
|
13578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
13579 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
10578 13580 | self
|
13581 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10579 13582 | }
|
10580 - | /// Consumes the builder and constructs a [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
|
13583 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
|
13584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
10581 13585 | pub fn build(self) -> crate::model::TransitivelyConstrainedStructureInOutput {
|
10582 13586 | self.build_enforcing_required_and_enum_traits()
|
10583 13587 | }
|
13588 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10584 13589 | fn build_enforcing_required_and_enum_traits(
|
10585 13590 | self,
|
10586 13591 | ) -> crate::model::TransitivelyConstrainedStructureInOutput {
|
13592 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
10587 13593 | crate::model::TransitivelyConstrainedStructureInOutput {
|
13594 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10588 13595 | length_string: self.length_string,
|
13596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
10589 13597 | }
|
13598 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10590 13599 | }
|
13600 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10591 13601 | }
|
13602 + |
|
13603 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10592 13604 | }
|
10593 13605 | pub(crate) mod constrained_map_in_output_internal {
|
10594 13606 |
|
13607 + | /* MapConstraintViolationGenerator.kt:82 */
|
10595 13608 | #[allow(clippy::enum_variant_names)]
|
10596 13609 | #[derive(Debug, PartialEq)]
|
10597 13610 | pub(crate) enum ConstraintViolation {
|
10598 13611 | Length(usize),
|
10599 13612 | }
|
10600 13613 |
|
10601 13614 | impl ::std::fmt::Display for ConstraintViolation {
|
10602 13615 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10603 13616 | match self {
|
10604 13617 | Self::Length(length) => {
|
10605 13618 | write!(f, "Value with length {} provided for 'com.amazonaws.constraints#ConstrainedMapInOutput' failed to satisfy constraint: Member must have length greater than or equal to 69", length)
|
10606 13619 | }
|
10607 13620 | }
|
10608 13621 | }
|
10609 13622 | }
|
10610 13623 |
|
10611 13624 | impl ::std::error::Error for ConstraintViolation {}
|
13625 + |
|
13626 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10612 13627 | }
|
10613 13628 | pub(crate) mod constrained_list_in_output_internal {
|
10614 13629 |
|
13630 + | /* CollectionConstraintViolationGenerator.kt:78 */
|
10615 13631 | #[allow(clippy::enum_variant_names)]
|
10616 13632 | #[derive(Debug, PartialEq)]
|
10617 13633 | pub(crate) enum ConstraintViolation {
|
10618 13634 | /// Constraint violation error when the list doesn't have the required length
|
10619 13635 | Length(usize),
|
10620 13636 | }
|
10621 13637 |
|
10622 13638 | impl ::std::fmt::Display for ConstraintViolation {
|
10623 13639 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10624 13640 | let message = match self {
|
10625 13641 | Self::Length(length) => {
|
10626 13642 | format!("Value with length {} provided for 'com.amazonaws.constraints#ConstrainedListInOutput' failed to satisfy constraint: Member must have length greater than or equal to 69", length)
|
10627 13643 | }
|
10628 13644 | };
|
10629 13645 | write!(f, "{message}")
|
10630 13646 | }
|
10631 13647 | }
|
10632 13648 |
|
10633 13649 | impl ::std::error::Error for ConstraintViolation {}
|
13650 + |
|
13651 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10634 13652 | }
|