1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// Contents of the Pokémon storage.
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */Contents of the Pokémon storage.
|
4 + | /* RustType.kt:516 */
|
4 5 | #[derive(
|
5 6 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
6 7 | )]
|
7 - | pub struct GetStorageOutput {
|
8 - | /// A list of Pokémon species.
|
8 + | pub /* StructureGenerator.kt:201 */ struct GetStorageOutput {
|
9 + | /// /* StructureGenerator.kt:231 */A list of Pokémon species.
|
9 10 | pub collection: ::std::vec::Vec<::std::string::String>,
|
11 + | /* StructureGenerator.kt:201 */
|
10 12 | }
|
13 + | /* StructureGenerator.kt:135 */
|
11 14 | impl GetStorageOutput {
|
12 - | /// A list of Pokémon species.
|
15 + | /// /* StructureGenerator.kt:231 */A list of Pokémon species.
|
16 + | /* StructureGenerator.kt:166 */
|
13 17 | pub fn collection(&self) -> &[::std::string::String] {
|
18 + | /* StructureGenerator.kt:171 */
|
14 19 | use std::ops::Deref;
|
15 20 | self.collection.deref()
|
21 + | /* StructureGenerator.kt:166 */
|
16 22 | }
|
23 + | /* StructureGenerator.kt:135 */
|
17 24 | }
|
25 + | /* ServerCodegenVisitor.kt:345 */
|
18 26 | impl GetStorageOutput {
|
19 - | /// Creates a new builder-style object to manufacture [`GetStorageOutput`](crate::output::GetStorageOutput).
|
27 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`GetStorageOutput`](crate::output::GetStorageOutput).
|
28 + | /* ServerBuilderGenerator.kt:295 */
|
20 29 | pub fn builder() -> crate::output::get_storage_output::Builder {
|
30 + | /* ServerBuilderGenerator.kt:296 */
|
21 31 | crate::output::get_storage_output::Builder::default()
|
32 + | /* ServerBuilderGenerator.kt:295 */
|
22 33 | }
|
34 + | /* ServerCodegenVisitor.kt:345 */
|
23 35 | }
|
24 36 |
|
37 + | /* StructureGenerator.kt:197 */
|
25 38 | #[allow(missing_docs)] // documentation missing in model
|
39 + | /* RustType.kt:516 */
|
26 40 | #[derive(
|
27 41 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
28 42 | )]
|
29 - | pub struct GetPokemonSpeciesOutput {
|
30 - | /// The name for this resource.
|
43 + | pub /* StructureGenerator.kt:201 */ struct GetPokemonSpeciesOutput {
|
44 + | /// /* StructureGenerator.kt:231 */The name for this resource.
|
31 45 | pub name: ::std::string::String,
|
32 - | /// A list of flavor text entries for this Pokémon species.
|
46 + | /// /* StructureGenerator.kt:231 */A list of flavor text entries for this Pokémon species.
|
33 47 | pub flavor_text_entries: ::std::vec::Vec<crate::model::FlavorText>,
|
48 + | /* StructureGenerator.kt:201 */
|
34 49 | }
|
50 + | /* StructureGenerator.kt:135 */
|
35 51 | impl GetPokemonSpeciesOutput {
|
36 - | /// The name for this resource.
|
52 + | /// /* StructureGenerator.kt:231 */The name for this resource.
|
53 + | /* StructureGenerator.kt:166 */
|
37 54 | pub fn name(&self) -> &str {
|
55 + | /* StructureGenerator.kt:171 */
|
38 56 | use std::ops::Deref;
|
39 57 | self.name.deref()
|
58 + | /* StructureGenerator.kt:166 */
|
40 59 | }
|
41 - | /// A list of flavor text entries for this Pokémon species.
|
60 + | /// /* StructureGenerator.kt:231 */A list of flavor text entries for this Pokémon species.
|
61 + | /* StructureGenerator.kt:166 */
|
42 62 | pub fn flavor_text_entries(&self) -> &[crate::model::FlavorText] {
|
63 + | /* StructureGenerator.kt:171 */
|
43 64 | use std::ops::Deref;
|
44 65 | self.flavor_text_entries.deref()
|
66 + | /* StructureGenerator.kt:166 */
|
45 67 | }
|
68 + | /* StructureGenerator.kt:135 */
|
46 69 | }
|
70 + | /* ServerCodegenVisitor.kt:345 */
|
47 71 | impl GetPokemonSpeciesOutput {
|
48 - | /// Creates a new builder-style object to manufacture [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
|
72 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
|
73 + | /* ServerBuilderGenerator.kt:295 */
|
49 74 | pub fn builder() -> crate::output::get_pokemon_species_output::Builder {
|
75 + | /* ServerBuilderGenerator.kt:296 */
|
50 76 | crate::output::get_pokemon_species_output::Builder::default()
|
77 + | /* ServerBuilderGenerator.kt:295 */
|
51 78 | }
|
79 + | /* ServerCodegenVisitor.kt:345 */
|
52 80 | }
|
53 81 |
|
82 + | /* StructureGenerator.kt:197 */
|
54 83 | #[allow(missing_docs)] // documentation missing in model
|
84 + | /* RustType.kt:516 */
|
55 85 | #[derive(::std::fmt::Debug)]
|
56 - | pub struct StreamPokemonRadioOutput {
|
86 + | pub /* StructureGenerator.kt:201 */ struct StreamPokemonRadioOutput {
|
87 + | /* StructureGenerator.kt:231 */
|
57 88 | #[allow(missing_docs)] // documentation missing in model
|
58 89 | pub data: ::aws_smithy_types::byte_stream::ByteStream,
|
90 + | /* StructureGenerator.kt:201 */
|
59 91 | }
|
92 + | /* StructureGenerator.kt:135 */
|
60 93 | impl StreamPokemonRadioOutput {
|
94 + | /* StructureGenerator.kt:231 */
|
61 95 | #[allow(missing_docs)] // documentation missing in model
|
96 + | /* StructureGenerator.kt:166 */
|
62 97 | pub fn data(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
98 + | /* StructureGenerator.kt:172 */
|
63 99 | &self.data
|
100 + | /* StructureGenerator.kt:166 */
|
64 101 | }
|
102 + | /* StructureGenerator.kt:135 */
|
65 103 | }
|
104 + | /* ServerCodegenVisitor.kt:345 */
|
66 105 | impl StreamPokemonRadioOutput {
|
67 - | /// Creates a new builder-style object to manufacture [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
|
106 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
|
107 + | /* ServerBuilderGenerator.kt:295 */
|
68 108 | pub fn builder() -> crate::output::stream_pokemon_radio_output::Builder {
|
109 + | /* ServerBuilderGenerator.kt:296 */
|
69 110 | crate::output::stream_pokemon_radio_output::Builder::default()
|
111 + | /* ServerBuilderGenerator.kt:295 */
|
70 112 | }
|
113 + | /* ServerCodegenVisitor.kt:345 */
|
71 114 | }
|
72 115 |
|
116 + | /* StructureGenerator.kt:197 */
|
73 117 | #[allow(missing_docs)] // documentation missing in model
|
118 + | /* RustType.kt:516 */
|
74 119 | #[derive(
|
75 120 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
76 121 | )]
|
77 - | pub struct CheckHealthOutput {}
|
122 + | pub /* StructureGenerator.kt:201 */ struct CheckHealthOutput {/* StructureGenerator.kt:201 */}
|
123 + | /* ServerCodegenVisitor.kt:345 */
|
78 124 | impl CheckHealthOutput {
|
79 - | /// Creates a new builder-style object to manufacture [`CheckHealthOutput`](crate::output::CheckHealthOutput).
|
125 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`CheckHealthOutput`](crate::output::CheckHealthOutput).
|
126 + | /* ServerBuilderGenerator.kt:295 */
|
80 127 | pub fn builder() -> crate::output::check_health_output::Builder {
|
128 + | /* ServerBuilderGenerator.kt:296 */
|
81 129 | crate::output::check_health_output::Builder::default()
|
130 + | /* ServerBuilderGenerator.kt:295 */
|
82 131 | }
|
132 + | /* ServerCodegenVisitor.kt:345 */
|
83 133 | }
|
84 134 |
|
135 + | /* StructureGenerator.kt:197 */
|
85 136 | #[allow(missing_docs)] // documentation missing in model
|
137 + | /* RustType.kt:516 */
|
86 138 | #[derive(::std::fmt::Debug)]
|
87 - | pub struct CapturePokemonOutput {
|
139 + | pub /* StructureGenerator.kt:201 */ struct CapturePokemonOutput {
|
140 + | /* StructureGenerator.kt:231 */
|
88 141 | #[allow(missing_docs)] // documentation missing in model
|
89 142 | pub events: ::aws_smithy_http::event_stream::EventStreamSender<
|
90 143 | crate::model::CapturePokemonEvents,
|
91 144 | crate::error::CapturePokemonEventsError,
|
92 145 | >,
|
146 + | /* StructureGenerator.kt:201 */
|
93 147 | }
|
148 + | /* StructureGenerator.kt:135 */
|
94 149 | impl CapturePokemonOutput {
|
150 + | /* StructureGenerator.kt:231 */
|
95 151 | #[allow(missing_docs)] // documentation missing in model
|
152 + | /* StructureGenerator.kt:166 */
|
96 153 | pub fn events(
|
97 154 | &self,
|
98 155 | ) -> &::aws_smithy_http::event_stream::EventStreamSender<
|
99 156 | crate::model::CapturePokemonEvents,
|
100 157 | crate::error::CapturePokemonEventsError,
|
101 158 | > {
|
159 + | /* StructureGenerator.kt:172 */
|
102 160 | &self.events
|
161 + | /* StructureGenerator.kt:166 */
|
103 162 | }
|
163 + | /* StructureGenerator.kt:135 */
|
104 164 | }
|
165 + | /* ServerCodegenVisitor.kt:345 */
|
105 166 | impl CapturePokemonOutput {
|
106 - | /// Creates a new builder-style object to manufacture [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
|
167 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
|
168 + | /* ServerBuilderGenerator.kt:295 */
|
107 169 | pub fn builder() -> crate::output::capture_pokemon_output::Builder {
|
170 + | /* ServerBuilderGenerator.kt:296 */
|
108 171 | crate::output::capture_pokemon_output::Builder::default()
|
172 + | /* ServerBuilderGenerator.kt:295 */
|
109 173 | }
|
174 + | /* ServerCodegenVisitor.kt:345 */
|
110 175 | }
|
111 176 |
|
177 + | /* StructureGenerator.kt:197 */
|
112 178 | #[allow(missing_docs)] // documentation missing in model
|
179 + | /* RustType.kt:516 */
|
113 180 | #[derive(
|
114 181 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
115 182 | )]
|
116 - | pub struct DoNothingOutput {}
|
183 + | pub /* StructureGenerator.kt:201 */ struct DoNothingOutput {/* StructureGenerator.kt:201 */}
|
184 + | /* ServerCodegenVisitor.kt:345 */
|
117 185 | impl DoNothingOutput {
|
118 - | /// Creates a new builder-style object to manufacture [`DoNothingOutput`](crate::output::DoNothingOutput).
|
186 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`DoNothingOutput`](crate::output::DoNothingOutput).
|
187 + | /* ServerBuilderGenerator.kt:295 */
|
119 188 | pub fn builder() -> crate::output::do_nothing_output::Builder {
|
189 + | /* ServerBuilderGenerator.kt:296 */
|
120 190 | crate::output::do_nothing_output::Builder::default()
|
191 + | /* ServerBuilderGenerator.kt:295 */
|
121 192 | }
|
193 + | /* ServerCodegenVisitor.kt:345 */
|
122 194 | }
|
123 195 |
|
196 + | /* StructureGenerator.kt:197 */
|
124 197 | #[allow(missing_docs)] // documentation missing in model
|
198 + | /* RustType.kt:516 */
|
125 199 | #[derive(
|
126 200 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
127 201 | )]
|
128 - | pub struct GetServerStatisticsOutput {
|
129 - | /// The number of calls executed by the server.
|
202 + | pub /* StructureGenerator.kt:201 */ struct GetServerStatisticsOutput {
|
203 + | /// /* StructureGenerator.kt:231 */The number of calls executed by the server.
|
130 204 | pub calls_count: i64,
|
205 + | /* StructureGenerator.kt:201 */
|
131 206 | }
|
207 + | /* StructureGenerator.kt:135 */
|
132 208 | impl GetServerStatisticsOutput {
|
133 - | /// The number of calls executed by the server.
|
209 + | /// /* StructureGenerator.kt:231 */The number of calls executed by the server.
|
210 + | /* StructureGenerator.kt:166 */
|
134 211 | pub fn calls_count(&self) -> i64 {
|
212 + | /* StructureGenerator.kt:168 */
|
135 213 | self.calls_count
|
214 + | /* StructureGenerator.kt:166 */
|
136 215 | }
|
216 + | /* StructureGenerator.kt:135 */
|
137 217 | }
|
218 + | /* ServerCodegenVisitor.kt:345 */
|
138 219 | impl GetServerStatisticsOutput {
|
139 - | /// Creates a new builder-style object to manufacture [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
|
220 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
|
221 + | /* ServerBuilderGenerator.kt:295 */
|
140 222 | pub fn builder() -> crate::output::get_server_statistics_output::Builder {
|
223 + | /* ServerBuilderGenerator.kt:296 */
|
141 224 | crate::output::get_server_statistics_output::Builder::default()
|
225 + | /* ServerBuilderGenerator.kt:295 */
|
142 226 | }
|
227 + | /* ServerCodegenVisitor.kt:345 */
|
143 228 | }
|
144 - | /// See [`GetStorageOutput`](crate::output::GetStorageOutput).
|
229 + | /// /* ServerBuilderGenerator.kt:171 */See [`GetStorageOutput`](crate::output::GetStorageOutput).
|
145 230 | pub mod get_storage_output {
|
146 231 |
|
232 + | /* RustType.kt:516 */
|
147 233 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
148 - | /// Holds one variant for each of the ways the builder can fail.
|
234 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
235 + | /* RustType.kt:516 */
|
149 236 | #[non_exhaustive]
|
237 + | /* ServerBuilderConstraintViolations.kt:75 */
|
150 238 | #[allow(clippy::enum_variant_names)]
|
151 239 | pub enum ConstraintViolation {
|
152 - | /// `collection` was not provided but it is required when building `GetStorageOutput`.
|
240 + | /// /* ServerBuilderConstraintViolations.kt:138 */`collection` was not provided but it is required when building `GetStorageOutput`.
|
241 + | /* ServerBuilderConstraintViolations.kt:143 */
|
153 242 | MissingCollection,
|
243 + | /* ServerBuilderConstraintViolations.kt:75 */
|
154 244 | }
|
245 + | /* ServerBuilderConstraintViolations.kt:117 */
|
155 246 | impl ::std::fmt::Display for ConstraintViolation {
|
247 + | /* ServerBuilderConstraintViolations.kt:118 */
|
156 248 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
249 + | /* ServerBuilderConstraintViolations.kt:119 */
|
157 250 | match self {
|
158 - | ConstraintViolation::MissingCollection => write!(f, "`collection` was not provided but it is required when building `GetStorageOutput`"),
|
159 - | }
|
251 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingCollection => write!(f, "`collection` was not provided but it is required when building `GetStorageOutput`"),
|
252 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
253 + | /* ServerBuilderConstraintViolations.kt:118 */
|
160 254 | }
|
255 + | /* ServerBuilderConstraintViolations.kt:117 */
|
161 256 | }
|
257 + | /* ServerBuilderConstraintViolations.kt:84 */
|
162 258 | impl ::std::error::Error for ConstraintViolation {}
|
259 + | /* ServerBuilderGenerator.kt:446 */
|
163 260 | impl ::std::convert::TryFrom<Builder> for crate::output::GetStorageOutput {
|
164 261 | type Error = ConstraintViolation;
|
165 262 |
|
166 263 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
167 264 | builder.build()
|
168 265 | }
|
169 266 | }
|
170 - | /// A builder for [`GetStorageOutput`](crate::output::GetStorageOutput).
|
267 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`GetStorageOutput`](crate::output::GetStorageOutput).
|
268 + | /* RustType.kt:516 */
|
171 269 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
270 + | /* ServerBuilderGenerator.kt:211 */
|
172 271 | pub struct Builder {
|
272 + | /* ServerBuilderGenerator.kt:308 */
|
173 273 | pub(crate) collection: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
274 + | /* ServerBuilderGenerator.kt:211 */
|
174 275 | }
|
276 + | /* ServerBuilderGenerator.kt:215 */
|
175 277 | impl Builder {
|
176 - | /// A list of Pokémon species.
|
278 + | /// /* ServerBuilderGenerator.kt:331 */A list of Pokémon species.
|
279 + | /* ServerBuilderGenerator.kt:343 */
|
177 280 | pub fn collection(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
|
178 - | self.collection = Some(input);
|
281 + | /* ServerBuilderGenerator.kt:344 */
|
282 + | self.collection =
|
283 + | /* ServerBuilderGenerator.kt:345 */Some(
|
284 + | /* ServerBuilderGenerator.kt:376 */input
|
285 + | /* ServerBuilderGenerator.kt:345 */)
|
286 + | /* ServerBuilderGenerator.kt:344 */;
|
179 287 | self
|
288 + | /* ServerBuilderGenerator.kt:343 */
|
180 289 | }
|
181 - | /// Consumes the builder and constructs a [`GetStorageOutput`](crate::output::GetStorageOutput).
|
182 - | ///
|
290 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GetStorageOutput`](crate::output::GetStorageOutput).
|
291 + | /// /* ServerBuilderGenerator.kt:260 */
|
183 292 | /// The builder fails to construct a [`GetStorageOutput`](crate::output::GetStorageOutput) if a [`ConstraintViolation`] occurs.
|
184 293 | ///
|
294 + | /* ServerBuilderGenerator.kt:271 */
|
185 295 | pub fn build(self) -> Result<crate::output::GetStorageOutput, ConstraintViolation> {
|
186 296 | self.build_enforcing_all_constraints()
|
187 297 | }
|
298 + | /* ServerBuilderGenerator.kt:283 */
|
188 299 | fn build_enforcing_all_constraints(
|
189 300 | self,
|
190 301 | ) -> Result<crate::output::GetStorageOutput, ConstraintViolation> {
|
191 - | Ok(crate::output::GetStorageOutput {
|
302 + | /* ServerBuilderGenerator.kt:287 */
|
303 + | Ok(
|
304 + | /* ServerBuilderGenerator.kt:542 */
|
305 + | crate::output::GetStorageOutput {
|
306 + | /* ServerBuilderGenerator.kt:546 */
|
192 307 | collection: self
|
193 308 | .collection
|
309 + | /* ServerBuilderGenerator.kt:569 */
|
194 310 | .ok_or(ConstraintViolation::MissingCollection)?,
|
195 - | })
|
311 + | /* ServerBuilderGenerator.kt:542 */
|
312 + | }, /* ServerBuilderGenerator.kt:287 */
|
313 + | )
|
314 + | /* ServerBuilderGenerator.kt:283 */
|
196 315 | }
|
316 + | /* ServerBuilderGenerator.kt:215 */
|
197 317 | }
|
318 + |
|
319 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
198 320 | }
|
199 - | /// See [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
|
321 + | /// /* ServerBuilderGenerator.kt:171 */See [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
|
200 322 | pub mod get_pokemon_species_output {
|
201 323 |
|
324 + | /* RustType.kt:516 */
|
202 325 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
203 - | /// Holds one variant for each of the ways the builder can fail.
|
326 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
327 + | /* RustType.kt:516 */
|
204 328 | #[non_exhaustive]
|
329 + | /* ServerBuilderConstraintViolations.kt:75 */
|
205 330 | #[allow(clippy::enum_variant_names)]
|
206 331 | pub enum ConstraintViolation {
|
207 - | /// `name` was not provided but it is required when building `GetPokemonSpeciesOutput`.
|
332 + | /// /* ServerBuilderConstraintViolations.kt:138 */`name` was not provided but it is required when building `GetPokemonSpeciesOutput`.
|
333 + | /* ServerBuilderConstraintViolations.kt:143 */
|
208 334 | MissingName,
|
209 - | /// `flavor_text_entries` was not provided but it is required when building `GetPokemonSpeciesOutput`.
|
335 + | /// /* ServerBuilderConstraintViolations.kt:138 */`flavor_text_entries` was not provided but it is required when building `GetPokemonSpeciesOutput`.
|
336 + | /* ServerBuilderConstraintViolations.kt:143 */
|
210 337 | MissingFlavorTextEntries,
|
338 + | /* ServerBuilderConstraintViolations.kt:75 */
|
211 339 | }
|
340 + | /* ServerBuilderConstraintViolations.kt:117 */
|
212 341 | impl ::std::fmt::Display for ConstraintViolation {
|
342 + | /* ServerBuilderConstraintViolations.kt:118 */
|
213 343 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
344 + | /* ServerBuilderConstraintViolations.kt:119 */
|
214 345 | match self {
|
215 - | ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesOutput`"),
|
216 - | ConstraintViolation::MissingFlavorTextEntries => write!(f, "`flavor_text_entries` was not provided but it is required when building `GetPokemonSpeciesOutput`"),
|
217 - | }
|
346 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesOutput`"),
|
347 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFlavorTextEntries => write!(f, "`flavor_text_entries` was not provided but it is required when building `GetPokemonSpeciesOutput`"),
|
348 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
349 + | /* ServerBuilderConstraintViolations.kt:118 */
|
218 350 | }
|
351 + | /* ServerBuilderConstraintViolations.kt:117 */
|
219 352 | }
|
353 + | /* ServerBuilderConstraintViolations.kt:84 */
|
220 354 | impl ::std::error::Error for ConstraintViolation {}
|
355 + | /* ServerBuilderGenerator.kt:446 */
|
221 356 | impl ::std::convert::TryFrom<Builder> for crate::output::GetPokemonSpeciesOutput {
|
222 357 | type Error = ConstraintViolation;
|
223 358 |
|
224 359 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
225 360 | builder.build()
|
226 361 | }
|
227 362 | }
|
228 - | /// A builder for [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
|
363 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
|
364 + | /* RustType.kt:516 */
|
229 365 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
366 + | /* ServerBuilderGenerator.kt:211 */
|
230 367 | pub struct Builder {
|
368 + | /* ServerBuilderGenerator.kt:308 */
|
231 369 | pub(crate) name: ::std::option::Option<::std::string::String>,
|
370 + | /* ServerBuilderGenerator.kt:308 */
|
232 371 | pub(crate) flavor_text_entries:
|
233 372 | ::std::option::Option<::std::vec::Vec<crate::model::FlavorText>>,
|
373 + | /* ServerBuilderGenerator.kt:211 */
|
234 374 | }
|
375 + | /* ServerBuilderGenerator.kt:215 */
|
235 376 | impl Builder {
|
236 - | /// The name for this resource.
|
377 + | /// /* ServerBuilderGenerator.kt:331 */The name for this resource.
|
378 + | /* ServerBuilderGenerator.kt:343 */
|
237 379 | pub fn name(mut self, input: ::std::string::String) -> Self {
|
238 - | self.name = Some(input);
|
380 + | /* ServerBuilderGenerator.kt:344 */
|
381 + | self.name =
|
382 + | /* ServerBuilderGenerator.kt:345 */Some(
|
383 + | /* ServerBuilderGenerator.kt:376 */input
|
384 + | /* ServerBuilderGenerator.kt:345 */)
|
385 + | /* ServerBuilderGenerator.kt:344 */;
|
239 386 | self
|
387 + | /* ServerBuilderGenerator.kt:343 */
|
240 388 | }
|
241 - | /// A list of flavor text entries for this Pokémon species.
|
389 + | /// /* ServerBuilderGenerator.kt:331 */A list of flavor text entries for this Pokémon species.
|
390 + | /* ServerBuilderGenerator.kt:343 */
|
242 391 | pub fn flavor_text_entries(
|
243 392 | mut self,
|
244 393 | input: ::std::vec::Vec<crate::model::FlavorText>,
|
245 394 | ) -> Self {
|
246 - | self.flavor_text_entries = Some(input);
|
395 + | /* ServerBuilderGenerator.kt:344 */
|
396 + | self.flavor_text_entries =
|
397 + | /* ServerBuilderGenerator.kt:345 */Some(
|
398 + | /* ServerBuilderGenerator.kt:376 */input
|
399 + | /* ServerBuilderGenerator.kt:345 */)
|
400 + | /* ServerBuilderGenerator.kt:344 */;
|
247 401 | self
|
402 + | /* ServerBuilderGenerator.kt:343 */
|
248 403 | }
|
249 - | /// Consumes the builder and constructs a [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
|
250 - | ///
|
404 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
|
405 + | /// /* ServerBuilderGenerator.kt:260 */
|
251 406 | /// The builder fails to construct a [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput) if a [`ConstraintViolation`] occurs.
|
252 407 | ///
|
253 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
408 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
409 + | /* ServerBuilderGenerator.kt:271 */
|
254 410 | pub fn build(self) -> Result<crate::output::GetPokemonSpeciesOutput, ConstraintViolation> {
|
255 411 | self.build_enforcing_all_constraints()
|
256 412 | }
|
413 + | /* ServerBuilderGenerator.kt:283 */
|
257 414 | fn build_enforcing_all_constraints(
|
258 415 | self,
|
259 416 | ) -> Result<crate::output::GetPokemonSpeciesOutput, ConstraintViolation> {
|
260 - | Ok(crate::output::GetPokemonSpeciesOutput {
|
261 - | name: self.name.ok_or(ConstraintViolation::MissingName)?,
|
417 + | /* ServerBuilderGenerator.kt:287 */
|
418 + | Ok(
|
419 + | /* ServerBuilderGenerator.kt:542 */
|
420 + | crate::output::GetPokemonSpeciesOutput {
|
421 + | /* ServerBuilderGenerator.kt:546 */
|
422 + | name: self
|
423 + | .name
|
424 + | /* ServerBuilderGenerator.kt:569 */
|
425 + | .ok_or(ConstraintViolation::MissingName)?,
|
426 + | /* ServerBuilderGenerator.kt:546 */
|
262 427 | flavor_text_entries: self
|
263 428 | .flavor_text_entries
|
429 + | /* ServerBuilderGenerator.kt:569 */
|
264 430 | .ok_or(ConstraintViolation::MissingFlavorTextEntries)?,
|
265 - | })
|
431 + | /* ServerBuilderGenerator.kt:542 */
|
432 + | }, /* ServerBuilderGenerator.kt:287 */
|
433 + | )
|
434 + | /* ServerBuilderGenerator.kt:283 */
|
266 435 | }
|
436 + | /* ServerBuilderGenerator.kt:215 */
|
267 437 | }
|
438 + |
|
439 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
268 440 | }
|
269 - | /// See [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
|
441 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
|
270 442 | pub mod stream_pokemon_radio_output {
|
271 443 |
|
444 + | /* ServerBuilderGenerator.kt:461 */
|
272 445 | impl ::std::convert::From<Builder> for crate::output::StreamPokemonRadioOutput {
|
273 446 | fn from(builder: Builder) -> Self {
|
274 447 | builder.build()
|
275 448 | }
|
276 449 | }
|
277 - | /// A builder for [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
|
450 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
|
451 + | /* RustType.kt:516 */
|
278 452 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
453 + | /* ServerBuilderGenerator.kt:211 */
|
279 454 | pub struct Builder {
|
455 + | /* ServerBuilderGenerator.kt:308 */
|
280 456 | pub(crate) data: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
457 + | /* ServerBuilderGenerator.kt:211 */
|
281 458 | }
|
459 + | /* ServerBuilderGenerator.kt:215 */
|
282 460 | impl Builder {
|
461 + | /* ServerBuilderGenerator.kt:331 */
|
283 462 | #[allow(missing_docs)] // documentation missing in model
|
463 + | /* ServerBuilderGenerator.kt:343 */
|
284 464 | pub fn data(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
|
285 - | self.data = Some(input);
|
465 + | /* ServerBuilderGenerator.kt:344 */
|
466 + | self.data =
|
467 + | /* ServerBuilderGenerator.kt:345 */Some(
|
468 + | /* ServerBuilderGenerator.kt:376 */input
|
469 + | /* ServerBuilderGenerator.kt:345 */)
|
470 + | /* ServerBuilderGenerator.kt:344 */;
|
286 471 | self
|
472 + | /* ServerBuilderGenerator.kt:343 */
|
287 473 | }
|
288 - | /// Consumes the builder and constructs a [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
|
474 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
|
475 + | /* ServerBuilderGenerator.kt:271 */
|
289 476 | pub fn build(self) -> crate::output::StreamPokemonRadioOutput {
|
290 477 | self.build_enforcing_all_constraints()
|
291 478 | }
|
479 + | /* ServerBuilderGenerator.kt:283 */
|
292 480 | fn build_enforcing_all_constraints(self) -> crate::output::StreamPokemonRadioOutput {
|
481 + | /* ServerBuilderGenerator.kt:542 */
|
293 482 | crate::output::StreamPokemonRadioOutput {
|
294 - | data: self.data.unwrap_or_default(),
|
483 + | /* ServerBuilderGenerator.kt:546 */
|
484 + | data: self
|
485 + | .data
|
486 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
487 + | .unwrap_or_default(),
|
488 + | /* ServerBuilderGenerator.kt:542 */
|
295 489 | }
|
490 + | /* ServerBuilderGenerator.kt:283 */
|
296 491 | }
|
492 + | /* ServerBuilderGenerator.kt:215 */
|
297 493 | }
|
494 + |
|
495 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
298 496 | }
|
299 - | /// See [`CheckHealthOutput`](crate::output::CheckHealthOutput).
|
497 + | /// /* ServerBuilderGenerator.kt:171 */See [`CheckHealthOutput`](crate::output::CheckHealthOutput).
|
300 498 | pub mod check_health_output {
|
301 499 |
|
500 + | /* ServerBuilderGenerator.kt:461 */
|
302 501 | impl ::std::convert::From<Builder> for crate::output::CheckHealthOutput {
|
303 502 | fn from(builder: Builder) -> Self {
|
304 503 | builder.build()
|
305 504 | }
|
306 505 | }
|
307 - | /// A builder for [`CheckHealthOutput`](crate::output::CheckHealthOutput).
|
506 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`CheckHealthOutput`](crate::output::CheckHealthOutput).
|
507 + | /* RustType.kt:516 */
|
308 508 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
309 - | pub struct Builder {}
|
509 + | /* ServerBuilderGenerator.kt:211 */
|
510 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
511 + | /* ServerBuilderGenerator.kt:215 */
|
310 512 | impl Builder {
|
311 - | /// Consumes the builder and constructs a [`CheckHealthOutput`](crate::output::CheckHealthOutput).
|
513 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`CheckHealthOutput`](crate::output::CheckHealthOutput).
|
514 + | /* ServerBuilderGenerator.kt:271 */
|
312 515 | pub fn build(self) -> crate::output::CheckHealthOutput {
|
313 516 | self.build_enforcing_all_constraints()
|
314 517 | }
|
518 + | /* ServerBuilderGenerator.kt:283 */
|
315 519 | fn build_enforcing_all_constraints(self) -> crate::output::CheckHealthOutput {
|
316 - | crate::output::CheckHealthOutput {}
|
520 + | /* ServerBuilderGenerator.kt:542 */
|
521 + | crate::output::CheckHealthOutput {
|
522 + | /* ServerBuilderGenerator.kt:542 */}
|
523 + | /* ServerBuilderGenerator.kt:283 */
|
317 524 | }
|
525 + | /* ServerBuilderGenerator.kt:215 */
|
318 526 | }
|
527 + |
|
528 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
319 529 | }
|
320 - | /// See [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
|
530 + | /// /* ServerBuilderGenerator.kt:171 */See [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
|
321 531 | pub mod capture_pokemon_output {
|
322 532 |
|
533 + | /* RustType.kt:516 */
|
323 534 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
324 - | /// Holds one variant for each of the ways the builder can fail.
|
535 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
536 + | /* RustType.kt:516 */
|
325 537 | #[non_exhaustive]
|
538 + | /* ServerBuilderConstraintViolations.kt:75 */
|
326 539 | #[allow(clippy::enum_variant_names)]
|
327 540 | pub enum ConstraintViolation {
|
328 - | /// `events` was not provided but it is required when building `CapturePokemonOutput`.
|
541 + | /// /* ServerBuilderConstraintViolations.kt:138 */`events` was not provided but it is required when building `CapturePokemonOutput`.
|
542 + | /* ServerBuilderConstraintViolations.kt:143 */
|
329 543 | MissingEvents,
|
544 + | /* ServerBuilderConstraintViolations.kt:75 */
|
330 545 | }
|
546 + | /* ServerBuilderConstraintViolations.kt:117 */
|
331 547 | impl ::std::fmt::Display for ConstraintViolation {
|
548 + | /* ServerBuilderConstraintViolations.kt:118 */
|
332 549 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
550 + | /* ServerBuilderConstraintViolations.kt:119 */
|
333 551 | match self {
|
334 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonOutput`"),
|
335 - | }
|
552 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonOutput`"),
|
553 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
554 + | /* ServerBuilderConstraintViolations.kt:118 */
|
336 555 | }
|
556 + | /* ServerBuilderConstraintViolations.kt:117 */
|
337 557 | }
|
558 + | /* ServerBuilderConstraintViolations.kt:84 */
|
338 559 | impl ::std::error::Error for ConstraintViolation {}
|
560 + | /* ServerBuilderGenerator.kt:446 */
|
339 561 | impl ::std::convert::TryFrom<Builder> for crate::output::CapturePokemonOutput {
|
340 562 | type Error = ConstraintViolation;
|
341 563 |
|
342 564 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
343 565 | builder.build()
|
344 566 | }
|
345 567 | }
|
346 - | /// A builder for [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
|
568 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
|
569 + | /* RustType.kt:516 */
|
347 570 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
571 + | /* ServerBuilderGenerator.kt:211 */
|
348 572 | pub struct Builder {
|
573 + | /* ServerBuilderGenerator.kt:308 */
|
349 574 | pub(crate) events: ::std::option::Option<
|
350 575 | ::aws_smithy_http::event_stream::EventStreamSender<
|
351 576 | crate::model::CapturePokemonEvents,
|
352 577 | crate::error::CapturePokemonEventsError,
|
353 578 | >,
|
354 579 | >,
|
580 + | /* ServerBuilderGenerator.kt:211 */
|
355 581 | }
|
582 + | /* ServerBuilderGenerator.kt:215 */
|
356 583 | impl Builder {
|
584 + | /* ServerBuilderGenerator.kt:331 */
|
357 585 | #[allow(missing_docs)] // documentation missing in model
|
586 + | /* ServerBuilderGenerator.kt:343 */
|
358 587 | pub fn events(
|
359 588 | mut self,
|
360 589 | input: ::aws_smithy_http::event_stream::EventStreamSender<
|
361 590 | crate::model::CapturePokemonEvents,
|
362 591 | crate::error::CapturePokemonEventsError,
|
363 592 | >,
|
364 593 | ) -> Self {
|
365 - | self.events = Some(input);
|
594 + | /* ServerBuilderGenerator.kt:344 */
|
595 + | self.events =
|
596 + | /* ServerBuilderGenerator.kt:345 */Some(
|
597 + | /* ServerBuilderGenerator.kt:376 */input
|
598 + | /* ServerBuilderGenerator.kt:345 */)
|
599 + | /* ServerBuilderGenerator.kt:344 */;
|
366 600 | self
|
601 + | /* ServerBuilderGenerator.kt:343 */
|
367 602 | }
|
368 - | /// Consumes the builder and constructs a [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
|
369 - | ///
|
603 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
|
604 + | /// /* ServerBuilderGenerator.kt:260 */
|
370 605 | /// The builder fails to construct a [`CapturePokemonOutput`](crate::output::CapturePokemonOutput) if a [`ConstraintViolation`] occurs.
|
371 606 | ///
|
607 + | /* ServerBuilderGenerator.kt:271 */
|
372 608 | pub fn build(self) -> Result<crate::output::CapturePokemonOutput, ConstraintViolation> {
|
373 609 | self.build_enforcing_all_constraints()
|
374 610 | }
|
611 + | /* ServerBuilderGenerator.kt:283 */
|
375 612 | fn build_enforcing_all_constraints(
|
376 613 | self,
|
377 614 | ) -> Result<crate::output::CapturePokemonOutput, ConstraintViolation> {
|
378 - | Ok(crate::output::CapturePokemonOutput {
|
379 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
380 - | })
|
381 - | }
|
615 + | /* ServerBuilderGenerator.kt:287 */
|
616 + | Ok(
|
617 + | /* ServerBuilderGenerator.kt:542 */
|
618 + | crate::output::CapturePokemonOutput {
|
619 + | /* ServerBuilderGenerator.kt:546 */
|
620 + | events: self
|
621 + | .events
|
622 + | /* ServerBuilderGenerator.kt:569 */
|
623 + | .ok_or(ConstraintViolation::MissingEvents)?,
|
624 + | /* ServerBuilderGenerator.kt:542 */
|
625 + | }, /* ServerBuilderGenerator.kt:287 */
|
626 + | )
|
627 + | /* ServerBuilderGenerator.kt:283 */
|
628 + | }
|
629 + | /* ServerBuilderGenerator.kt:215 */
|
382 630 | }
|
631 + |
|
632 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
383 633 | }
|
384 - | /// See [`DoNothingOutput`](crate::output::DoNothingOutput).
|
634 + | /// /* ServerBuilderGenerator.kt:171 */See [`DoNothingOutput`](crate::output::DoNothingOutput).
|
385 635 | pub mod do_nothing_output {
|
386 636 |
|
637 + | /* ServerBuilderGenerator.kt:461 */
|
387 638 | impl ::std::convert::From<Builder> for crate::output::DoNothingOutput {
|
388 639 | fn from(builder: Builder) -> Self {
|
389 640 | builder.build()
|
390 641 | }
|
391 642 | }
|
392 - | /// A builder for [`DoNothingOutput`](crate::output::DoNothingOutput).
|
643 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DoNothingOutput`](crate::output::DoNothingOutput).
|
644 + | /* RustType.kt:516 */
|
393 645 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
394 - | pub struct Builder {}
|
646 + | /* ServerBuilderGenerator.kt:211 */
|
647 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
648 + | /* ServerBuilderGenerator.kt:215 */
|
395 649 | impl Builder {
|
396 - | /// Consumes the builder and constructs a [`DoNothingOutput`](crate::output::DoNothingOutput).
|
650 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DoNothingOutput`](crate::output::DoNothingOutput).
|
651 + | /* ServerBuilderGenerator.kt:271 */
|
397 652 | pub fn build(self) -> crate::output::DoNothingOutput {
|
398 653 | self.build_enforcing_all_constraints()
|
399 654 | }
|
655 + | /* ServerBuilderGenerator.kt:283 */
|
400 656 | fn build_enforcing_all_constraints(self) -> crate::output::DoNothingOutput {
|
401 - | crate::output::DoNothingOutput {}
|
657 + | /* ServerBuilderGenerator.kt:542 */
|
658 + | crate::output::DoNothingOutput {
|
659 + | /* ServerBuilderGenerator.kt:542 */}
|
660 + | /* ServerBuilderGenerator.kt:283 */
|
402 661 | }
|
662 + | /* ServerBuilderGenerator.kt:215 */
|
403 663 | }
|
664 + |
|
665 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
404 666 | }
|
405 - | /// See [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
|
667 + | /// /* ServerBuilderGenerator.kt:171 */See [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
|
406 668 | pub mod get_server_statistics_output {
|
407 669 |
|
670 + | /* RustType.kt:516 */
|
408 671 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
409 - | /// Holds one variant for each of the ways the builder can fail.
|
672 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
673 + | /* RustType.kt:516 */
|
410 674 | #[non_exhaustive]
|
675 + | /* ServerBuilderConstraintViolations.kt:75 */
|
411 676 | #[allow(clippy::enum_variant_names)]
|
412 677 | pub enum ConstraintViolation {
|
413 - | /// `calls_count` was not provided but it is required when building `GetServerStatisticsOutput`.
|
678 + | /// /* ServerBuilderConstraintViolations.kt:138 */`calls_count` was not provided but it is required when building `GetServerStatisticsOutput`.
|
679 + | /* ServerBuilderConstraintViolations.kt:143 */
|
414 680 | MissingCallsCount,
|
681 + | /* ServerBuilderConstraintViolations.kt:75 */
|
415 682 | }
|
683 + | /* ServerBuilderConstraintViolations.kt:117 */
|
416 684 | impl ::std::fmt::Display for ConstraintViolation {
|
685 + | /* ServerBuilderConstraintViolations.kt:118 */
|
417 686 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
687 + | /* ServerBuilderConstraintViolations.kt:119 */
|
418 688 | match self {
|
419 - | ConstraintViolation::MissingCallsCount => write!(f, "`calls_count` was not provided but it is required when building `GetServerStatisticsOutput`"),
|
420 - | }
|
689 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingCallsCount => write!(f, "`calls_count` was not provided but it is required when building `GetServerStatisticsOutput`"),
|
690 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
691 + | /* ServerBuilderConstraintViolations.kt:118 */
|
421 692 | }
|
693 + | /* ServerBuilderConstraintViolations.kt:117 */
|
422 694 | }
|
695 + | /* ServerBuilderConstraintViolations.kt:84 */
|
423 696 | impl ::std::error::Error for ConstraintViolation {}
|
697 + | /* ServerBuilderGenerator.kt:446 */
|
424 698 | impl ::std::convert::TryFrom<Builder> for crate::output::GetServerStatisticsOutput {
|
425 699 | type Error = ConstraintViolation;
|
426 700 |
|
427 701 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
428 702 | builder.build()
|
429 703 | }
|
430 704 | }
|
431 - | /// A builder for [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
|
705 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
|
706 + | /* RustType.kt:516 */
|
432 707 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
708 + | /* ServerBuilderGenerator.kt:211 */
|
433 709 | pub struct Builder {
|
710 + | /* ServerBuilderGenerator.kt:308 */
|
434 711 | pub(crate) calls_count: ::std::option::Option<i64>,
|
712 + | /* ServerBuilderGenerator.kt:211 */
|
435 713 | }
|
714 + | /* ServerBuilderGenerator.kt:215 */
|
436 715 | impl Builder {
|
437 - | /// The number of calls executed by the server.
|
716 + | /// /* ServerBuilderGenerator.kt:331 */The number of calls executed by the server.
|
717 + | /* ServerBuilderGenerator.kt:343 */
|
438 718 | pub fn calls_count(mut self, input: i64) -> Self {
|
439 - | self.calls_count = Some(input);
|
719 + | /* ServerBuilderGenerator.kt:344 */
|
720 + | self.calls_count =
|
721 + | /* ServerBuilderGenerator.kt:345 */Some(
|
722 + | /* ServerBuilderGenerator.kt:376 */input
|
723 + | /* ServerBuilderGenerator.kt:345 */)
|
724 + | /* ServerBuilderGenerator.kt:344 */;
|
440 725 | self
|
726 + | /* ServerBuilderGenerator.kt:343 */
|
441 727 | }
|
442 - | /// Consumes the builder and constructs a [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
|
443 - | ///
|
728 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
|
729 + | /// /* ServerBuilderGenerator.kt:260 */
|
444 730 | /// The builder fails to construct a [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput) if a [`ConstraintViolation`] occurs.
|
445 731 | ///
|
732 + | /* ServerBuilderGenerator.kt:271 */
|
446 733 | pub fn build(
|
447 734 | self,
|
448 735 | ) -> Result<crate::output::GetServerStatisticsOutput, ConstraintViolation> {
|
449 736 | self.build_enforcing_all_constraints()
|
450 737 | }
|
738 + | /* ServerBuilderGenerator.kt:283 */
|
451 739 | fn build_enforcing_all_constraints(
|
452 740 | self,
|
453 741 | ) -> Result<crate::output::GetServerStatisticsOutput, ConstraintViolation> {
|
454 - | Ok(crate::output::GetServerStatisticsOutput {
|
742 + | /* ServerBuilderGenerator.kt:287 */
|
743 + | Ok(
|
744 + | /* ServerBuilderGenerator.kt:542 */
|
745 + | crate::output::GetServerStatisticsOutput {
|
746 + | /* ServerBuilderGenerator.kt:546 */
|
455 747 | calls_count: self
|
456 748 | .calls_count
|
749 + | /* ServerBuilderGenerator.kt:569 */
|
457 750 | .ok_or(ConstraintViolation::MissingCallsCount)?,
|
458 - | })
|
751 + | /* ServerBuilderGenerator.kt:542 */
|
752 + | }, /* ServerBuilderGenerator.kt:287 */
|
753 + | )
|
754 + | /* ServerBuilderGenerator.kt:283 */
|
459 755 | }
|
756 + | /* ServerBuilderGenerator.kt:215 */
|
460 757 | }
|
758 + |
|
759 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
461 760 | }
|