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