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