1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* StructureGenerator.kt:197 */
|
2 3 | #[allow(missing_docs)] // documentation missing in model
|
4 + | /* RustType.kt:516 */
|
3 5 | #[derive(
|
4 6 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5 7 | )]
|
6 - | pub struct SomethingElse {
|
8 + | pub /* StructureGenerator.kt:201 */ struct SomethingElse {
|
9 + | /* StructureGenerator.kt:231 */
|
7 10 | #[allow(missing_docs)] // documentation missing in model
|
8 11 | pub result: ::std::option::Option<crate::model::Result>,
|
12 + | /* StructureGenerator.kt:231 */
|
9 13 | #[allow(missing_docs)] // documentation missing in model
|
10 14 | pub result_list: ::std::option::Option<::std::vec::Vec<crate::model::Result>>,
|
15 + | /* StructureGenerator.kt:231 */
|
11 16 | #[allow(missing_docs)] // documentation missing in model
|
12 17 | pub option: ::std::option::Option<crate::model::Option>,
|
18 + | /* StructureGenerator.kt:231 */
|
13 19 | #[allow(missing_docs)] // documentation missing in model
|
14 20 | pub option_list: ::std::option::Option<::std::vec::Vec<crate::model::Result>>,
|
21 + | /* StructureGenerator.kt:231 */
|
15 22 | #[allow(missing_docs)] // documentation missing in model
|
16 23 | pub some_union: ::std::option::Option<crate::model::SomeUnion>,
|
24 + | /* StructureGenerator.kt:201 */
|
17 25 | }
|
26 + | /* StructureGenerator.kt:135 */
|
18 27 | impl SomethingElse {
|
28 + | /* StructureGenerator.kt:231 */
|
19 29 | #[allow(missing_docs)] // documentation missing in model
|
30 + | /* StructureGenerator.kt:166 */
|
20 31 | pub fn result(&self) -> ::std::option::Option<&crate::model::Result> {
|
32 + | /* StructureGenerator.kt:170 */
|
21 33 | self.result.as_ref()
|
34 + | /* StructureGenerator.kt:166 */
|
22 35 | }
|
36 + | /* StructureGenerator.kt:231 */
|
23 37 | #[allow(missing_docs)] // documentation missing in model
|
38 + | /* StructureGenerator.kt:166 */
|
24 39 | pub fn result_list(&self) -> ::std::option::Option<&[crate::model::Result]> {
|
40 + | /* StructureGenerator.kt:169 */
|
25 41 | self.result_list.as_deref()
|
42 + | /* StructureGenerator.kt:166 */
|
26 43 | }
|
44 + | /* StructureGenerator.kt:231 */
|
27 45 | #[allow(missing_docs)] // documentation missing in model
|
46 + | /* StructureGenerator.kt:166 */
|
28 47 | pub fn option(&self) -> ::std::option::Option<&crate::model::Option> {
|
48 + | /* StructureGenerator.kt:170 */
|
29 49 | self.option.as_ref()
|
50 + | /* StructureGenerator.kt:166 */
|
30 51 | }
|
52 + | /* StructureGenerator.kt:231 */
|
31 53 | #[allow(missing_docs)] // documentation missing in model
|
54 + | /* StructureGenerator.kt:166 */
|
32 55 | pub fn option_list(&self) -> ::std::option::Option<&[crate::model::Result]> {
|
56 + | /* StructureGenerator.kt:169 */
|
33 57 | self.option_list.as_deref()
|
58 + | /* StructureGenerator.kt:166 */
|
34 59 | }
|
60 + | /* StructureGenerator.kt:231 */
|
35 61 | #[allow(missing_docs)] // documentation missing in model
|
62 + | /* StructureGenerator.kt:166 */
|
36 63 | pub fn some_union(&self) -> ::std::option::Option<&crate::model::SomeUnion> {
|
64 + | /* StructureGenerator.kt:170 */
|
37 65 | self.some_union.as_ref()
|
66 + | /* StructureGenerator.kt:166 */
|
38 67 | }
|
68 + | /* StructureGenerator.kt:135 */
|
39 69 | }
|
70 + | /* ServerCodegenVisitor.kt:345 */
|
40 71 | impl SomethingElse {
|
41 - | /// Creates a new builder-style object to manufacture [`SomethingElse`](crate::model::SomethingElse).
|
72 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`SomethingElse`](crate::model::SomethingElse).
|
73 + | /* ServerBuilderGenerator.kt:295 */
|
42 74 | pub fn builder() -> crate::model::something_else::Builder {
|
75 + | /* ServerBuilderGenerator.kt:296 */
|
43 76 | crate::model::something_else::Builder::default()
|
77 + | /* ServerBuilderGenerator.kt:295 */
|
44 78 | }
|
79 + | /* ServerCodegenVisitor.kt:345 */
|
45 80 | }
|
81 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
46 82 | impl crate::constrained::Constrained for crate::model::SomethingElse {
|
47 83 | type Unconstrained = crate::model::something_else::Builder;
|
48 84 | }
|
49 85 |
|
86 + | /* UnionGenerator.kt:67 */
|
50 87 | #[allow(missing_docs)] // documentation missing in model
|
88 + | /* RustType.kt:516 */
|
51 89 | #[derive(
|
52 90 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
53 91 | )]
|
54 - | pub enum SomeUnion {
|
92 + | pub /* UnionGenerator.kt:85 */ enum SomeUnion {
|
93 + | /* UnionGenerator.kt:90 */
|
55 94 | #[allow(missing_docs)] // documentation missing in model
|
95 + | /* UnionGenerator.kt:190 */
|
56 96 | Option(crate::model::Option),
|
97 + | /* UnionGenerator.kt:90 */
|
57 98 | #[allow(missing_docs)] // documentation missing in model
|
99 + | /* UnionGenerator.kt:190 */
|
58 100 | Result(crate::model::Result),
|
101 + | /* UnionGenerator.kt:85 */
|
59 102 | }
|
103 + | /* UnionGenerator.kt:111 */
|
60 104 | impl SomeUnion {
|
105 + | /* UnionGenerator.kt:217 */
|
61 106 | /// Tries to convert the enum instance into [`Option`](crate::model::SomeUnion::Option), extracting the inner [`Option`](crate::model::Option).
|
107 + | /* UnionGenerator.kt:222 */
|
62 108 | /// Returns `Err(&Self)` if it can't be converted.
|
109 + | /* UnionGenerator.kt:223 */
|
63 110 | pub fn as_option(&self) -> ::std::result::Result<&crate::model::Option, &Self> {
|
111 + | /* UnionGenerator.kt:227 */
|
64 112 | if let SomeUnion::Option(val) = &self {
|
65 113 | ::std::result::Result::Ok(val)
|
66 114 | } else {
|
67 115 | ::std::result::Result::Err(self)
|
68 116 | }
|
117 + | /* UnionGenerator.kt:223 */
|
69 118 | }
|
119 + | /* UnionGenerator.kt:121 */
|
70 120 | /// Returns true if this is a [`Option`](crate::model::SomeUnion::Option).
|
121 + | /* UnionGenerator.kt:122 */
|
71 122 | pub fn is_option(&self) -> bool {
|
123 + | /* UnionGenerator.kt:123 */
|
72 124 | self.as_option().is_ok()
|
125 + | /* UnionGenerator.kt:122 */
|
73 126 | }
|
127 + | /* UnionGenerator.kt:217 */
|
74 128 | /// Tries to convert the enum instance into [`Result`](crate::model::SomeUnion::Result), extracting the inner [`Result`](crate::model::Result).
|
129 + | /* UnionGenerator.kt:222 */
|
75 130 | /// Returns `Err(&Self)` if it can't be converted.
|
131 + | /* UnionGenerator.kt:223 */
|
76 132 | pub fn as_result(&self) -> ::std::result::Result<&crate::model::Result, &Self> {
|
133 + | /* UnionGenerator.kt:227 */
|
77 134 | if let SomeUnion::Result(val) = &self {
|
78 135 | ::std::result::Result::Ok(val)
|
79 136 | } else {
|
80 137 | ::std::result::Result::Err(self)
|
81 138 | }
|
139 + | /* UnionGenerator.kt:223 */
|
82 140 | }
|
141 + | /* UnionGenerator.kt:121 */
|
83 142 | /// Returns true if this is a [`Result`](crate::model::SomeUnion::Result).
|
143 + | /* UnionGenerator.kt:122 */
|
84 144 | pub fn is_result(&self) -> bool {
|
145 + | /* UnionGenerator.kt:123 */
|
85 146 | self.as_result().is_ok()
|
147 + | /* UnionGenerator.kt:122 */
|
86 148 | }
|
149 + | /* UnionGenerator.kt:111 */
|
87 150 | }
|
88 151 |
|
152 + | /* StructureGenerator.kt:197 */
|
89 153 | #[allow(missing_docs)] // documentation missing in model
|
154 + | /* RustType.kt:516 */
|
90 155 | #[derive(
|
91 156 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
92 157 | )]
|
93 - | pub struct Option {
|
158 + | pub /* StructureGenerator.kt:201 */ struct Option {
|
159 + | /* StructureGenerator.kt:231 */
|
94 160 | #[allow(missing_docs)] // documentation missing in model
|
95 161 | pub value: ::std::option::Option<::std::string::String>,
|
162 + | /* StructureGenerator.kt:201 */
|
96 163 | }
|
164 + | /* StructureGenerator.kt:135 */
|
97 165 | impl Option {
|
166 + | /* StructureGenerator.kt:231 */
|
98 167 | #[allow(missing_docs)] // documentation missing in model
|
168 + | /* StructureGenerator.kt:166 */
|
99 169 | pub fn value(&self) -> ::std::option::Option<&str> {
|
170 + | /* StructureGenerator.kt:169 */
|
100 171 | self.value.as_deref()
|
172 + | /* StructureGenerator.kt:166 */
|
101 173 | }
|
174 + | /* StructureGenerator.kt:135 */
|
102 175 | }
|
176 + | /* ServerCodegenVisitor.kt:345 */
|
103 177 | impl Option {
|
104 - | /// Creates a new builder-style object to manufacture [`Option`](crate::model::Option).
|
178 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`Option`](crate::model::Option).
|
179 + | /* ServerBuilderGenerator.kt:295 */
|
105 180 | pub fn builder() -> crate::model::option::Builder {
|
181 + | /* ServerBuilderGenerator.kt:296 */
|
106 182 | crate::model::option::Builder::default()
|
183 + | /* ServerBuilderGenerator.kt:295 */
|
107 184 | }
|
185 + | /* ServerCodegenVisitor.kt:345 */
|
108 186 | }
|
187 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
109 188 | impl crate::constrained::Constrained for crate::model::Option {
|
110 189 | type Unconstrained = crate::model::option::Builder;
|
111 190 | }
|
112 191 |
|
192 + | /* StructureGenerator.kt:197 */
|
113 193 | #[allow(missing_docs)] // documentation missing in model
|
194 + | /* RustType.kt:516 */
|
114 195 | #[derive(
|
115 196 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
116 197 | )]
|
117 - | pub struct Result {
|
198 + | pub /* StructureGenerator.kt:201 */ struct Result {
|
199 + | /* StructureGenerator.kt:231 */
|
118 200 | #[allow(missing_docs)] // documentation missing in model
|
119 201 | pub value: ::std::option::Option<::std::string::String>,
|
202 + | /* StructureGenerator.kt:201 */
|
120 203 | }
|
204 + | /* StructureGenerator.kt:135 */
|
121 205 | impl Result {
|
206 + | /* StructureGenerator.kt:231 */
|
122 207 | #[allow(missing_docs)] // documentation missing in model
|
208 + | /* StructureGenerator.kt:166 */
|
123 209 | pub fn value(&self) -> ::std::option::Option<&str> {
|
210 + | /* StructureGenerator.kt:169 */
|
124 211 | self.value.as_deref()
|
212 + | /* StructureGenerator.kt:166 */
|
125 213 | }
|
214 + | /* StructureGenerator.kt:135 */
|
126 215 | }
|
216 + | /* ServerCodegenVisitor.kt:345 */
|
127 217 | impl Result {
|
128 - | /// Creates a new builder-style object to manufacture [`Result`](crate::model::Result).
|
218 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`Result`](crate::model::Result).
|
219 + | /* ServerBuilderGenerator.kt:295 */
|
129 220 | pub fn builder() -> crate::model::result::Builder {
|
221 + | /* ServerBuilderGenerator.kt:296 */
|
130 222 | crate::model::result::Builder::default()
|
223 + | /* ServerBuilderGenerator.kt:295 */
|
131 224 | }
|
225 + | /* ServerCodegenVisitor.kt:345 */
|
132 226 | }
|
227 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
133 228 | impl crate::constrained::Constrained for crate::model::Result {
|
134 229 | type Unconstrained = crate::model::result::Builder;
|
135 230 | }
|
136 - | /// See [`SomethingElse`](crate::model::SomethingElse).
|
231 + | /// /* ServerBuilderGenerator.kt:171 */See [`SomethingElse`](crate::model::SomethingElse).
|
137 232 | pub mod something_else {
|
138 233 |
|
234 + | /* ServerBuilderGenerator.kt:461 */
|
139 235 | impl ::std::convert::From<Builder> for crate::model::SomethingElse {
|
140 236 | fn from(builder: Builder) -> Self {
|
141 237 | builder.build()
|
142 238 | }
|
143 239 | }
|
144 - | /// A builder for [`SomethingElse`](crate::model::SomethingElse).
|
240 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SomethingElse`](crate::model::SomethingElse).
|
241 + | /* RustType.kt:516 */
|
145 242 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
243 + | /* ServerBuilderGenerator.kt:211 */
|
146 244 | pub struct Builder {
|
245 + | /* ServerBuilderGenerator.kt:308 */
|
147 246 | pub(crate) result: ::std::option::Option<crate::model::Result>,
|
247 + | /* ServerBuilderGenerator.kt:308 */
|
148 248 | pub(crate) result_list: ::std::option::Option<::std::vec::Vec<crate::model::Result>>,
|
249 + | /* ServerBuilderGenerator.kt:308 */
|
149 250 | pub(crate) option: ::std::option::Option<crate::model::Option>,
|
251 + | /* ServerBuilderGenerator.kt:308 */
|
150 252 | pub(crate) option_list: ::std::option::Option<::std::vec::Vec<crate::model::Result>>,
|
253 + | /* ServerBuilderGenerator.kt:308 */
|
151 254 | pub(crate) some_union: ::std::option::Option<crate::model::SomeUnion>,
|
255 + | /* ServerBuilderGenerator.kt:211 */
|
152 256 | }
|
257 + | /* ServerBuilderGenerator.kt:215 */
|
153 258 | impl Builder {
|
259 + | /* ServerBuilderGenerator.kt:331 */
|
154 260 | #[allow(missing_docs)] // documentation missing in model
|
261 + | /* ServerBuilderGenerator.kt:343 */
|
155 262 | pub fn result(mut self, input: ::std::option::Option<crate::model::Result>) -> Self {
|
156 - | self.result = input;
|
263 + | /* ServerBuilderGenerator.kt:344 */
|
264 + | self.result =
|
265 + | /* ServerBuilderGenerator.kt:376 */input
|
266 + | /* ServerBuilderGenerator.kt:344 */;
|
157 267 | self
|
268 + | /* ServerBuilderGenerator.kt:343 */
|
158 269 | }
|
270 + | /* ServerBuilderGenerator.kt:426 */
|
159 271 | #[allow(missing_docs)] // documentation missing in model
|
272 + | /* ServerBuilderGenerator.kt:428 */
|
160 273 | pub(crate) fn set_result(
|
161 274 | mut self,
|
162 275 | input: Option<impl ::std::convert::Into<crate::model::Result>>,
|
163 276 | ) -> Self {
|
277 + | /* ServerBuilderGenerator.kt:429 */
|
164 278 | self.result = input.map(|v| v.into());
|
165 279 | self
|
280 + | /* ServerBuilderGenerator.kt:428 */
|
166 281 | }
|
282 + | /* ServerBuilderGenerator.kt:331 */
|
167 283 | #[allow(missing_docs)] // documentation missing in model
|
284 + | /* ServerBuilderGenerator.kt:343 */
|
168 285 | pub fn result_list(
|
169 286 | mut self,
|
170 287 | input: ::std::option::Option<::std::vec::Vec<crate::model::Result>>,
|
171 288 | ) -> Self {
|
172 - | self.result_list = input;
|
289 + | /* ServerBuilderGenerator.kt:344 */
|
290 + | self.result_list =
|
291 + | /* ServerBuilderGenerator.kt:376 */input
|
292 + | /* ServerBuilderGenerator.kt:344 */;
|
173 293 | self
|
294 + | /* ServerBuilderGenerator.kt:343 */
|
174 295 | }
|
296 + | /* ServerBuilderGenerator.kt:426 */
|
175 297 | #[allow(missing_docs)] // documentation missing in model
|
298 + | /* ServerBuilderGenerator.kt:428 */
|
176 299 | pub(crate) fn set_result_list(
|
177 300 | mut self,
|
178 301 | input: Option<impl ::std::convert::Into<::std::vec::Vec<crate::model::Result>>>,
|
179 302 | ) -> Self {
|
303 + | /* ServerBuilderGenerator.kt:429 */
|
180 304 | self.result_list = input.map(|v| v.into());
|
181 305 | self
|
306 + | /* ServerBuilderGenerator.kt:428 */
|
182 307 | }
|
308 + | /* ServerBuilderGenerator.kt:331 */
|
183 309 | #[allow(missing_docs)] // documentation missing in model
|
310 + | /* ServerBuilderGenerator.kt:343 */
|
184 311 | pub fn option(mut self, input: ::std::option::Option<crate::model::Option>) -> Self {
|
185 - | self.option = input;
|
312 + | /* ServerBuilderGenerator.kt:344 */
|
313 + | self.option =
|
314 + | /* ServerBuilderGenerator.kt:376 */input
|
315 + | /* ServerBuilderGenerator.kt:344 */;
|
186 316 | self
|
317 + | /* ServerBuilderGenerator.kt:343 */
|
187 318 | }
|
319 + | /* ServerBuilderGenerator.kt:426 */
|
188 320 | #[allow(missing_docs)] // documentation missing in model
|
321 + | /* ServerBuilderGenerator.kt:428 */
|
189 322 | pub(crate) fn set_option(
|
190 323 | mut self,
|
191 324 | input: Option<impl ::std::convert::Into<crate::model::Option>>,
|
192 325 | ) -> Self {
|
326 + | /* ServerBuilderGenerator.kt:429 */
|
193 327 | self.option = input.map(|v| v.into());
|
194 328 | self
|
329 + | /* ServerBuilderGenerator.kt:428 */
|
195 330 | }
|
331 + | /* ServerBuilderGenerator.kt:331 */
|
196 332 | #[allow(missing_docs)] // documentation missing in model
|
333 + | /* ServerBuilderGenerator.kt:343 */
|
197 334 | pub fn option_list(
|
198 335 | mut self,
|
199 336 | input: ::std::option::Option<::std::vec::Vec<crate::model::Result>>,
|
200 337 | ) -> Self {
|
201 - | self.option_list = input;
|
338 + | /* ServerBuilderGenerator.kt:344 */
|
339 + | self.option_list =
|
340 + | /* ServerBuilderGenerator.kt:376 */input
|
341 + | /* ServerBuilderGenerator.kt:344 */;
|
202 342 | self
|
343 + | /* ServerBuilderGenerator.kt:343 */
|
203 344 | }
|
345 + | /* ServerBuilderGenerator.kt:426 */
|
204 346 | #[allow(missing_docs)] // documentation missing in model
|
347 + | /* ServerBuilderGenerator.kt:428 */
|
205 348 | pub(crate) fn set_option_list(
|
206 349 | mut self,
|
207 350 | input: Option<impl ::std::convert::Into<::std::vec::Vec<crate::model::Result>>>,
|
208 351 | ) -> Self {
|
352 + | /* ServerBuilderGenerator.kt:429 */
|
209 353 | self.option_list = input.map(|v| v.into());
|
210 354 | self
|
355 + | /* ServerBuilderGenerator.kt:428 */
|
211 356 | }
|
357 + | /* ServerBuilderGenerator.kt:331 */
|
212 358 | #[allow(missing_docs)] // documentation missing in model
|
359 + | /* ServerBuilderGenerator.kt:343 */
|
213 360 | pub fn some_union(mut self, input: ::std::option::Option<crate::model::SomeUnion>) -> Self {
|
214 - | self.some_union = input;
|
361 + | /* ServerBuilderGenerator.kt:344 */
|
362 + | self.some_union =
|
363 + | /* ServerBuilderGenerator.kt:376 */input
|
364 + | /* ServerBuilderGenerator.kt:344 */;
|
215 365 | self
|
366 + | /* ServerBuilderGenerator.kt:343 */
|
216 367 | }
|
368 + | /* ServerBuilderGenerator.kt:426 */
|
217 369 | #[allow(missing_docs)] // documentation missing in model
|
370 + | /* ServerBuilderGenerator.kt:428 */
|
218 371 | pub(crate) fn set_some_union(
|
219 372 | mut self,
|
220 373 | input: Option<impl ::std::convert::Into<crate::model::SomeUnion>>,
|
221 374 | ) -> Self {
|
375 + | /* ServerBuilderGenerator.kt:429 */
|
222 376 | self.some_union = input.map(|v| v.into());
|
223 377 | self
|
378 + | /* ServerBuilderGenerator.kt:428 */
|
224 379 | }
|
225 - | /// Consumes the builder and constructs a [`SomethingElse`](crate::model::SomethingElse).
|
380 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SomethingElse`](crate::model::SomethingElse).
|
381 + | /* ServerBuilderGenerator.kt:271 */
|
226 382 | pub fn build(self) -> crate::model::SomethingElse {
|
227 383 | self.build_enforcing_all_constraints()
|
228 384 | }
|
385 + | /* ServerBuilderGenerator.kt:283 */
|
229 386 | fn build_enforcing_all_constraints(self) -> crate::model::SomethingElse {
|
387 + | /* ServerBuilderGenerator.kt:542 */
|
230 388 | crate::model::SomethingElse {
|
389 + | /* ServerBuilderGenerator.kt:546 */
|
231 390 | result: self.result,
|
391 + | /* ServerBuilderGenerator.kt:546 */
|
232 392 | result_list: self.result_list,
|
393 + | /* ServerBuilderGenerator.kt:546 */
|
233 394 | option: self.option,
|
395 + | /* ServerBuilderGenerator.kt:546 */
|
234 396 | option_list: self.option_list,
|
397 + | /* ServerBuilderGenerator.kt:546 */
|
235 398 | some_union: self.some_union,
|
399 + | /* ServerBuilderGenerator.kt:542 */
|
236 400 | }
|
401 + | /* ServerBuilderGenerator.kt:283 */
|
237 402 | }
|
403 + | /* ServerBuilderGenerator.kt:215 */
|
238 404 | }
|
405 + |
|
406 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
239 407 | }
|
240 - | /// See [`Option`](crate::model::Option).
|
408 + | /// /* ServerBuilderGenerator.kt:171 */See [`Option`](crate::model::Option).
|
241 409 | pub mod option {
|
242 410 |
|
411 + | /* ServerBuilderGenerator.kt:461 */
|
243 412 | impl ::std::convert::From<Builder> for crate::model::Option {
|
244 413 | fn from(builder: Builder) -> Self {
|
245 414 | builder.build()
|
246 415 | }
|
247 416 | }
|
248 - | /// A builder for [`Option`](crate::model::Option).
|
417 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`Option`](crate::model::Option).
|
418 + | /* RustType.kt:516 */
|
249 419 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
420 + | /* ServerBuilderGenerator.kt:211 */
|
250 421 | pub struct Builder {
|
422 + | /* ServerBuilderGenerator.kt:308 */
|
251 423 | pub(crate) value: ::std::option::Option<::std::string::String>,
|
424 + | /* ServerBuilderGenerator.kt:211 */
|
252 425 | }
|
426 + | /* ServerBuilderGenerator.kt:215 */
|
253 427 | impl Builder {
|
428 + | /* ServerBuilderGenerator.kt:331 */
|
254 429 | #[allow(missing_docs)] // documentation missing in model
|
430 + | /* ServerBuilderGenerator.kt:343 */
|
255 431 | pub fn value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
256 - | self.value = input;
|
432 + | /* ServerBuilderGenerator.kt:344 */
|
433 + | self.value =
|
434 + | /* ServerBuilderGenerator.kt:376 */input
|
435 + | /* ServerBuilderGenerator.kt:344 */;
|
257 436 | self
|
437 + | /* ServerBuilderGenerator.kt:343 */
|
258 438 | }
|
439 + | /* ServerBuilderGenerator.kt:426 */
|
259 440 | #[allow(missing_docs)] // documentation missing in model
|
441 + | /* ServerBuilderGenerator.kt:428 */
|
260 442 | pub(crate) fn set_value(
|
261 443 | mut self,
|
262 444 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
263 445 | ) -> Self {
|
446 + | /* ServerBuilderGenerator.kt:429 */
|
264 447 | self.value = input.map(|v| v.into());
|
265 448 | self
|
449 + | /* ServerBuilderGenerator.kt:428 */
|
266 450 | }
|
267 - | /// Consumes the builder and constructs a [`Option`](crate::model::Option).
|
451 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`Option`](crate::model::Option).
|
452 + | /* ServerBuilderGenerator.kt:271 */
|
268 453 | pub fn build(self) -> crate::model::Option {
|
269 454 | self.build_enforcing_all_constraints()
|
270 455 | }
|
456 + | /* ServerBuilderGenerator.kt:283 */
|
271 457 | fn build_enforcing_all_constraints(self) -> crate::model::Option {
|
272 - | crate::model::Option { value: self.value }
|
458 + | /* ServerBuilderGenerator.kt:542 */
|
459 + | crate::model::Option {
|
460 + | /* ServerBuilderGenerator.kt:546 */
|
461 + | value: self.value,
|
462 + | /* ServerBuilderGenerator.kt:542 */
|
463 + | }
|
464 + | /* ServerBuilderGenerator.kt:283 */
|
273 465 | }
|
466 + | /* ServerBuilderGenerator.kt:215 */
|
274 467 | }
|
468 + |
|
469 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
275 470 | }
|
276 - | /// See [`Result`](crate::model::Result).
|
471 + | /// /* ServerBuilderGenerator.kt:171 */See [`Result`](crate::model::Result).
|
277 472 | pub mod result {
|
278 473 |
|
474 + | /* ServerBuilderGenerator.kt:461 */
|
279 475 | impl ::std::convert::From<Builder> for crate::model::Result {
|
280 476 | fn from(builder: Builder) -> Self {
|
281 477 | builder.build()
|
282 478 | }
|
283 479 | }
|
284 - | /// A builder for [`Result`](crate::model::Result).
|
480 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`Result`](crate::model::Result).
|
481 + | /* RustType.kt:516 */
|
285 482 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
483 + | /* ServerBuilderGenerator.kt:211 */
|
286 484 | pub struct Builder {
|
485 + | /* ServerBuilderGenerator.kt:308 */
|
287 486 | pub(crate) value: ::std::option::Option<::std::string::String>,
|
487 + | /* ServerBuilderGenerator.kt:211 */
|
288 488 | }
|
489 + | /* ServerBuilderGenerator.kt:215 */
|
289 490 | impl Builder {
|
491 + | /* ServerBuilderGenerator.kt:331 */
|
290 492 | #[allow(missing_docs)] // documentation missing in model
|
493 + | /* ServerBuilderGenerator.kt:343 */
|
291 494 | pub fn value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
292 - | self.value = input;
|
495 + | /* ServerBuilderGenerator.kt:344 */
|
496 + | self.value =
|
497 + | /* ServerBuilderGenerator.kt:376 */input
|
498 + | /* ServerBuilderGenerator.kt:344 */;
|
293 499 | self
|
500 + | /* ServerBuilderGenerator.kt:343 */
|
294 501 | }
|
502 + | /* ServerBuilderGenerator.kt:426 */
|
295 503 | #[allow(missing_docs)] // documentation missing in model
|
504 + | /* ServerBuilderGenerator.kt:428 */
|
296 505 | pub(crate) fn set_value(
|
297 506 | mut self,
|
298 507 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
299 508 | ) -> Self {
|
509 + | /* ServerBuilderGenerator.kt:429 */
|
300 510 | self.value = input.map(|v| v.into());
|
301 511 | self
|
512 + | /* ServerBuilderGenerator.kt:428 */
|
302 513 | }
|
303 - | /// Consumes the builder and constructs a [`Result`](crate::model::Result).
|
514 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`Result`](crate::model::Result).
|
515 + | /* ServerBuilderGenerator.kt:271 */
|
304 516 | pub fn build(self) -> crate::model::Result {
|
305 517 | self.build_enforcing_all_constraints()
|
306 518 | }
|
519 + | /* ServerBuilderGenerator.kt:283 */
|
307 520 | fn build_enforcing_all_constraints(self) -> crate::model::Result {
|
308 - | crate::model::Result { value: self.value }
|
521 + | /* ServerBuilderGenerator.kt:542 */
|
522 + | crate::model::Result {
|
523 + | /* ServerBuilderGenerator.kt:546 */
|
524 + | value: self.value,
|
525 + | /* ServerBuilderGenerator.kt:542 */
|
309 526 | }
|
527 + | /* ServerBuilderGenerator.kt:283 */
|
310 528 | }
|
529 + | /* ServerBuilderGenerator.kt:215 */
|
530 + | }
|
531 + |
|
532 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
311 533 | }
|