1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | #[allow(missing_docs)] // documentation missing in model
|
3 + | #[derive(::std::fmt::Debug)]
|
4 + | pub struct EventStreamsOperationOutput {
|
5 + | #[allow(missing_docs)] // documentation missing in model
|
6 + | pub events: ::aws_smithy_legacy_http::event_stream::EventStreamSender<
|
7 + | crate::model::Event,
|
8 + | crate::error::EventError,
|
9 + | >,
|
10 + | }
|
11 + | impl EventStreamsOperationOutput {
|
12 + | #[allow(missing_docs)] // documentation missing in model
|
13 + | pub fn events(
|
14 + | &self,
|
15 + | ) -> &::aws_smithy_legacy_http::event_stream::EventStreamSender<
|
16 + | crate::model::Event,
|
17 + | crate::error::EventError,
|
18 + | > {
|
19 + | &self.events
|
20 + | }
|
21 + | }
|
22 + | impl EventStreamsOperationOutput {
|
23 + | /// Creates a new builder-style object to manufacture [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput).
|
24 + | pub fn builder() -> crate::output::event_streams_operation_output::Builder {
|
25 + | crate::output::event_streams_operation_output::Builder::default()
|
26 + | }
|
27 + | }
|
28 + |
|
29 + | #[allow(missing_docs)] // documentation missing in model
|
30 + | #[derive(::std::fmt::Debug)]
|
31 + | pub struct StreamingBlobOperationOutput {
|
32 + | #[allow(missing_docs)] // documentation missing in model
|
33 + | pub streaming_blob: ::aws_smithy_types::byte_stream::ByteStream,
|
34 + | }
|
35 + | impl StreamingBlobOperationOutput {
|
36 + | #[allow(missing_docs)] // documentation missing in model
|
37 + | pub fn streaming_blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
38 + | &self.streaming_blob
|
39 + | }
|
40 + | }
|
41 + | impl StreamingBlobOperationOutput {
|
42 + | /// Creates a new builder-style object to manufacture [`StreamingBlobOperationOutput`](crate::output::StreamingBlobOperationOutput).
|
43 + | pub fn builder() -> crate::output::streaming_blob_operation_output::Builder {
|
44 + | crate::output::streaming_blob_operation_output::Builder::default()
|
45 + | }
|
46 + | }
|
47 + |
|
48 + | #[allow(missing_docs)] // documentation missing in model
|
49 + | #[derive(
|
50 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
51 + | )]
|
52 + | pub struct NonStreamingBlobOperationOutput {
|
53 + | #[allow(missing_docs)] // documentation missing in model
|
54 + | pub non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
55 + | }
|
56 + | impl NonStreamingBlobOperationOutput {
|
57 + | #[allow(missing_docs)] // documentation missing in model
|
58 + | pub fn non_streaming_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
59 + | self.non_streaming_blob.as_ref()
|
60 + | }
|
61 + | }
|
62 + | impl NonStreamingBlobOperationOutput {
|
63 + | /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationOutput`](crate::output::NonStreamingBlobOperationOutput).
|
64 + | pub fn builder() -> crate::output::non_streaming_blob_operation_output::Builder {
|
65 + | crate::output::non_streaming_blob_operation_output::Builder::default()
|
66 + | }
|
67 + | }
|
68 + |
|
69 + | #[allow(missing_docs)] // documentation missing in model
|
70 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
71 + | pub struct QueryParamsTargetingMapOfEnumStringOperationOutput {
|
72 + | #[allow(missing_docs)] // documentation missing in model
|
73 + | pub map_of_enum_string: ::std::option::Option<
|
74 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
75 + | >,
|
76 + | }
|
77 + | impl QueryParamsTargetingMapOfEnumStringOperationOutput {
|
78 + | #[allow(missing_docs)] // documentation missing in model
|
79 + | pub fn map_of_enum_string(
|
80 + | &self,
|
81 + | ) -> ::std::option::Option<
|
82 + | &::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
83 + | > {
|
84 + | self.map_of_enum_string.as_ref()
|
85 + | }
|
86 + | }
|
87 + | impl QueryParamsTargetingMapOfEnumStringOperationOutput {
|
88 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationOutput`](crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput).
|
89 + | pub fn builder(
|
90 + | ) -> crate::output::query_params_targeting_map_of_enum_string_operation_output::Builder {
|
91 + | crate::output::query_params_targeting_map_of_enum_string_operation_output::Builder::default(
|
92 + | )
|
93 + | }
|
94 + | }
|
95 + |
|
96 + | #[allow(missing_docs)] // documentation missing in model
|
97 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
98 + | pub struct HttpPrefixHeadersTargetingLengthMapOperationOutput {
|
99 + | #[allow(missing_docs)] // documentation missing in model
|
100 + | pub length_map: ::std::option::Option<
|
101 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
102 + | >,
|
103 + | }
|
104 + | impl HttpPrefixHeadersTargetingLengthMapOperationOutput {
|
105 + | #[allow(missing_docs)] // documentation missing in model
|
106 + | pub fn length_map(
|
107 + | &self,
|
108 + | ) -> ::std::option::Option<
|
109 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
110 + | > {
|
111 + | self.length_map.as_ref()
|
112 + | }
|
113 + | }
|
114 + | impl HttpPrefixHeadersTargetingLengthMapOperationOutput {
|
115 + | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationOutput`](crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput).
|
116 + | pub fn builder(
|
117 + | ) -> crate::output::http_prefix_headers_targeting_length_map_operation_output::Builder {
|
118 + | crate::output::http_prefix_headers_targeting_length_map_operation_output::Builder::default()
|
119 + | }
|
120 + | }
|
121 + |
|
122 + | #[allow(missing_docs)] // documentation missing in model
|
123 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
124 + | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput {
|
125 + | #[allow(missing_docs)] // documentation missing in model
|
126 + | pub map_of_length_pattern_string: ::std::option::Option<
|
127 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
128 + | >,
|
129 + | }
|
130 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput {
|
131 + | #[allow(missing_docs)] // documentation missing in model
|
132 + | pub fn map_of_length_pattern_string(
|
133 + | &self,
|
134 + | ) -> ::std::option::Option<
|
135 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
136 + | > {
|
137 + | self.map_of_length_pattern_string.as_ref()
|
138 + | }
|
139 + | }
|
140 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput {
|
141 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput).
|
142 + | pub fn builder() -> crate::output::query_params_targeting_map_of_list_of_length_pattern_string_operation_output::Builder{
|
143 + | crate::output::query_params_targeting_map_of_list_of_length_pattern_string_operation_output::Builder::default()
|
144 + | }
|
145 + | }
|
146 + |
|
147 + | #[allow(missing_docs)] // documentation missing in model
|
148 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
149 + | pub struct QueryParamsTargetingMapOfLengthPatternStringOperationOutput {
|
150 + | #[allow(missing_docs)] // documentation missing in model
|
151 + | pub map_of_length_pattern_string: ::std::option::Option<
|
152 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
153 + | >,
|
154 + | }
|
155 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationOutput {
|
156 + | #[allow(missing_docs)] // documentation missing in model
|
157 + | pub fn map_of_length_pattern_string(
|
158 + | &self,
|
159 + | ) -> ::std::option::Option<
|
160 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
161 + | > {
|
162 + | self.map_of_length_pattern_string.as_ref()
|
163 + | }
|
164 + | }
|
165 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationOutput {
|
166 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput).
|
167 + | pub fn builder(
|
168 + | ) -> crate::output::query_params_targeting_map_of_length_pattern_string_operation_output::Builder
|
169 + | {
|
170 + | crate::output::query_params_targeting_map_of_length_pattern_string_operation_output::Builder::default()
|
171 + | }
|
172 + | }
|
173 + |
|
174 + | #[allow(missing_docs)] // documentation missing in model
|
175 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
176 + | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationOutput {
|
177 + | #[allow(missing_docs)] // documentation missing in model
|
178 + | pub map_of_list_of_pattern_string: ::std::option::Option<
|
179 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
180 + | >,
|
181 + | }
|
182 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationOutput {
|
183 + | #[allow(missing_docs)] // documentation missing in model
|
184 + | pub fn map_of_list_of_pattern_string(
|
185 + | &self,
|
186 + | ) -> ::std::option::Option<
|
187 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
188 + | > {
|
189 + | self.map_of_list_of_pattern_string.as_ref()
|
190 + | }
|
191 + | }
|
192 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationOutput {
|
193 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput).
|
194 + | pub fn builder(
|
195 + | ) -> crate::output::query_params_targeting_map_of_list_of_pattern_string_operation_output::Builder
|
196 + | {
|
197 + | crate::output::query_params_targeting_map_of_list_of_pattern_string_operation_output::Builder::default()
|
198 + | }
|
199 + | }
|
200 + |
|
201 + | #[allow(missing_docs)] // documentation missing in model
|
202 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
203 + | pub struct QueryParamsTargetingMapOfPatternStringOperationOutput {
|
204 + | #[allow(missing_docs)] // documentation missing in model
|
205 + | pub map_of_pattern_string: ::std::option::Option<
|
206 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
207 + | >,
|
208 + | }
|
209 + | impl QueryParamsTargetingMapOfPatternStringOperationOutput {
|
210 + | #[allow(missing_docs)] // documentation missing in model
|
211 + | pub fn map_of_pattern_string(
|
212 + | &self,
|
213 + | ) -> ::std::option::Option<
|
214 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
215 + | > {
|
216 + | self.map_of_pattern_string.as_ref()
|
217 + | }
|
218 + | }
|
219 + | impl QueryParamsTargetingMapOfPatternStringOperationOutput {
|
220 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput).
|
221 + | pub fn builder(
|
222 + | ) -> crate::output::query_params_targeting_map_of_pattern_string_operation_output::Builder {
|
223 + | crate::output::query_params_targeting_map_of_pattern_string_operation_output::Builder::default()
|
224 + | }
|
225 + | }
|
226 + |
|
227 + | #[allow(missing_docs)] // documentation missing in model
|
228 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
229 + | pub struct QueryParamsTargetingMapOfListOfEnumStringOperationOutput {
|
230 + | #[allow(missing_docs)] // documentation missing in model
|
231 + | pub map_of_list_of_enum_string: ::std::option::Option<
|
232 + | ::std::collections::HashMap<
|
233 + | crate::model::EnumString,
|
234 + | ::std::vec::Vec<crate::model::EnumString>,
|
235 + | >,
|
236 + | >,
|
237 + | }
|
238 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationOutput {
|
239 + | #[allow(missing_docs)] // documentation missing in model
|
240 + | pub fn map_of_list_of_enum_string(
|
241 + | &self,
|
242 + | ) -> ::std::option::Option<
|
243 + | &::std::collections::HashMap<
|
244 + | crate::model::EnumString,
|
245 + | ::std::vec::Vec<crate::model::EnumString>,
|
246 + | >,
|
247 + | > {
|
248 + | self.map_of_list_of_enum_string.as_ref()
|
249 + | }
|
250 + | }
|
251 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationOutput {
|
252 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput).
|
253 + | pub fn builder(
|
254 + | ) -> crate::output::query_params_targeting_map_of_list_of_enum_string_operation_output::Builder
|
255 + | {
|
256 + | crate::output::query_params_targeting_map_of_list_of_enum_string_operation_output::Builder::default()
|
257 + | }
|
258 + | }
|
259 + |
|
260 + | #[allow(missing_docs)] // documentation missing in model
|
261 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
262 + | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput {
|
263 + | #[allow(missing_docs)] // documentation missing in model
|
264 + | pub map_of_length_list_of_pattern_string: ::std::option::Option<
|
265 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
266 + | >,
|
267 + | }
|
268 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput {
|
269 + | #[allow(missing_docs)] // documentation missing in model
|
270 + | pub fn map_of_length_list_of_pattern_string(
|
271 + | &self,
|
272 + | ) -> ::std::option::Option<
|
273 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
274 + | > {
|
275 + | self.map_of_length_list_of_pattern_string.as_ref()
|
276 + | }
|
277 + | }
|
278 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput {
|
279 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput).
|
280 + | pub fn builder() -> crate::output::query_params_targeting_map_of_length_list_of_pattern_string_operation_output::Builder{
|
281 + | crate::output::query_params_targeting_map_of_length_list_of_pattern_string_operation_output::Builder::default()
|
282 + | }
|
283 + | }
|
284 + |
|
285 + | #[allow(missing_docs)] // documentation missing in model
|
286 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
287 + | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationOutput {
|
288 + | #[allow(missing_docs)] // documentation missing in model
|
289 + | pub map_of_set_of_length_string: ::std::option::Option<
|
290 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
291 + | >,
|
292 + | }
|
293 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationOutput {
|
294 + | #[allow(missing_docs)] // documentation missing in model
|
295 + | pub fn map_of_set_of_length_string(
|
296 + | &self,
|
297 + | ) -> ::std::option::Option<
|
298 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
299 + | > {
|
300 + | self.map_of_set_of_length_string.as_ref()
|
301 + | }
|
302 + | }
|
303 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationOutput {
|
304 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput).
|
305 + | pub fn builder(
|
306 + | ) -> crate::output::query_params_targeting_map_of_set_of_length_string_operation_output::Builder
|
307 + | {
|
308 + | crate::output::query_params_targeting_map_of_set_of_length_string_operation_output::Builder::default()
|
309 + | }
|
310 + | }
|
311 + |
|
312 + | #[allow(missing_docs)] // documentation missing in model
|
313 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
314 + | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationOutput {
|
315 + | #[allow(missing_docs)] // documentation missing in model
|
316 + | pub map_of_list_of_length_string: ::std::option::Option<
|
317 + | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
318 + | >,
|
319 + | }
|
320 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationOutput {
|
321 + | #[allow(missing_docs)] // documentation missing in model
|
322 + | pub fn map_of_list_of_length_string(
|
323 + | &self,
|
324 + | ) -> ::std::option::Option<
|
325 + | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
326 + | > {
|
327 + | self.map_of_list_of_length_string.as_ref()
|
328 + | }
|
329 + | }
|
330 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationOutput {
|
331 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput).
|
332 + | pub fn builder(
|
333 + | ) -> crate::output::query_params_targeting_map_of_list_of_length_string_operation_output::Builder
|
334 + | {
|
335 + | crate::output::query_params_targeting_map_of_list_of_length_string_operation_output::Builder::default()
|
336 + | }
|
337 + | }
|
338 + |
|
339 + | #[allow(missing_docs)] // documentation missing in model
|
340 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
341 + | pub struct QueryParamsTargetingMapOfLengthStringOperationOutput {
|
342 + | #[allow(missing_docs)] // documentation missing in model
|
343 + | pub map_of_length_string: ::std::option::Option<
|
344 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
345 + | >,
|
346 + | }
|
347 + | impl QueryParamsTargetingMapOfLengthStringOperationOutput {
|
348 + | #[allow(missing_docs)] // documentation missing in model
|
349 + | pub fn map_of_length_string(
|
350 + | &self,
|
351 + | ) -> ::std::option::Option<
|
352 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
353 + | > {
|
354 + | self.map_of_length_string.as_ref()
|
355 + | }
|
356 + | }
|
357 + | impl QueryParamsTargetingMapOfLengthStringOperationOutput {
|
358 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput).
|
359 + | pub fn builder(
|
360 + | ) -> crate::output::query_params_targeting_map_of_length_string_operation_output::Builder {
|
361 + | crate::output::query_params_targeting_map_of_length_string_operation_output::Builder::default()
|
362 + | }
|
363 + | }
|
364 + |
|
365 + | #[allow(missing_docs)] // documentation missing in model
|
366 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
367 + | pub struct QueryParamsTargetingLengthMapOperationOutput {
|
368 + | #[allow(missing_docs)] // documentation missing in model
|
369 + | pub length_map: ::std::option::Option<
|
370 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
371 + | >,
|
372 + | }
|
373 + | impl QueryParamsTargetingLengthMapOperationOutput {
|
374 + | #[allow(missing_docs)] // documentation missing in model
|
375 + | pub fn length_map(
|
376 + | &self,
|
377 + | ) -> ::std::option::Option<
|
378 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
379 + | > {
|
380 + | self.length_map.as_ref()
|
381 + | }
|
382 + | }
|
383 + | impl QueryParamsTargetingLengthMapOperationOutput {
|
384 + | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationOutput`](crate::output::QueryParamsTargetingLengthMapOperationOutput).
|
385 + | pub fn builder() -> crate::output::query_params_targeting_length_map_operation_output::Builder {
|
386 + | crate::output::query_params_targeting_length_map_operation_output::Builder::default()
|
387 + | }
|
388 + | }
|
389 + |
|
390 + | #[allow(missing_docs)] // documentation missing in model
|
391 + | #[derive(
|
392 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
393 + | )]
|
394 + | pub struct ConstrainedRecursiveShapesOperationOutput {
|
395 + | #[allow(missing_docs)] // documentation missing in model
|
396 + | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
397 + | #[allow(missing_docs)] // documentation missing in model
|
398 + | pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
399 + | }
|
400 + | impl ConstrainedRecursiveShapesOperationOutput {
|
401 + | #[allow(missing_docs)] // documentation missing in model
|
402 + | pub fn nested(
|
403 + | &self,
|
404 + | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
405 + | self.nested.as_ref()
|
406 + | }
|
407 + | #[allow(missing_docs)] // documentation missing in model
|
408 + | pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
|
409 + | use std::ops::Deref;
|
410 + | self.recursive_list.deref()
|
411 + | }
|
412 + | }
|
413 + | impl ConstrainedRecursiveShapesOperationOutput {
|
414 + | /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
415 + | pub fn builder() -> crate::output::constrained_recursive_shapes_operation_output::Builder {
|
416 + | crate::output::constrained_recursive_shapes_operation_output::Builder::default()
|
417 + | }
|
418 + | }
|
419 + |
|
420 + | #[allow(missing_docs)] // documentation missing in model
|
421 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
422 + | pub struct ConstrainedHttpPayloadBoundShapeOperationOutput {
|
423 + | #[allow(missing_docs)] // documentation missing in model
|
424 + | pub http_payload_bound_constrained_shape: crate::model::ConA,
|
425 + | }
|
426 + | impl ConstrainedHttpPayloadBoundShapeOperationOutput {
|
427 + | #[allow(missing_docs)] // documentation missing in model
|
428 + | pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
|
429 + | &self.http_payload_bound_constrained_shape
|
430 + | }
|
431 + | }
|
432 + | impl ConstrainedHttpPayloadBoundShapeOperationOutput {
|
433 + | /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput).
|
434 + | pub fn builder() -> crate::output::constrained_http_payload_bound_shape_operation_output::Builder
|
435 + | {
|
436 + | crate::output::constrained_http_payload_bound_shape_operation_output::Builder::default()
|
437 + | }
|
438 + | }
|
439 + |
|
440 + | #[allow(missing_docs)] // documentation missing in model
|
441 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
442 + | pub struct ConstrainedHttpBoundShapesOperationOutput {
|
443 + | #[allow(missing_docs)] // documentation missing in model
|
444 + | pub length_string_label: ::std::string::String,
|
445 + | #[allow(missing_docs)] // documentation missing in model
|
446 + | pub range_integer_label: i32,
|
447 + | #[allow(missing_docs)] // documentation missing in model
|
448 + | pub range_short_label: i16,
|
449 + | #[allow(missing_docs)] // documentation missing in model
|
450 + | pub range_long_label: i64,
|
451 + | #[allow(missing_docs)] // documentation missing in model
|
452 + | pub range_byte_label: i8,
|
453 + | #[allow(missing_docs)] // documentation missing in model
|
454 + | pub enum_string_label: crate::model::EnumString,
|
455 + | #[allow(missing_docs)] // documentation missing in model
|
456 + | pub length_string_header_map:
|
457 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
458 + | #[allow(missing_docs)] // documentation missing in model
|
459 + | pub length_string_header: ::std::option::Option<::std::string::String>,
|
460 + | #[allow(missing_docs)] // documentation missing in model
|
461 + | pub range_integer_header: i32,
|
462 + | #[allow(missing_docs)] // documentation missing in model
|
463 + | pub range_short_header: i16,
|
464 + | #[allow(missing_docs)] // documentation missing in model
|
465 + | pub range_long_header: i64,
|
466 + | #[allow(missing_docs)] // documentation missing in model
|
467 + | pub range_byte_header: i8,
|
468 + | #[allow(missing_docs)] // documentation missing in model
|
469 + | pub length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
470 + | #[allow(missing_docs)] // documentation missing in model
|
471 + | pub list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
472 + | #[allow(missing_docs)] // documentation missing in model
|
473 + | pub length_list_pattern_string_header:
|
474 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
475 + | #[allow(missing_docs)] // documentation missing in model
|
476 + | pub length_set_pattern_string_header:
|
477 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
478 + | #[allow(missing_docs)] // documentation missing in model
|
479 + | pub range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
480 + | #[allow(missing_docs)] // documentation missing in model
|
481 + | pub range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
482 + | #[allow(missing_docs)] // documentation missing in model
|
483 + | pub range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
484 + | #[allow(missing_docs)] // documentation missing in model
|
485 + | pub range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
486 + | #[allow(missing_docs)] // documentation missing in model
|
487 + | pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
488 + | #[allow(missing_docs)] // documentation missing in model
|
489 + | pub range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
490 + | #[allow(missing_docs)] // documentation missing in model
|
491 + | pub range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
492 + | #[allow(missing_docs)] // documentation missing in model
|
493 + | pub range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
494 + | #[allow(missing_docs)] // documentation missing in model
|
495 + | pub length_string_query: ::std::option::Option<::std::string::String>,
|
496 + | #[allow(missing_docs)] // documentation missing in model
|
497 + | pub range_byte_query: i8,
|
498 + | #[allow(missing_docs)] // documentation missing in model
|
499 + | pub range_short_query: i16,
|
500 + | #[allow(missing_docs)] // documentation missing in model
|
501 + | pub range_integer_query: i32,
|
502 + | #[allow(missing_docs)] // documentation missing in model
|
503 + | pub range_long_query: i64,
|
504 + | #[allow(missing_docs)] // documentation missing in model
|
505 + | pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
506 + | #[allow(missing_docs)] // documentation missing in model
|
507 + | pub length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
508 + | #[allow(missing_docs)] // documentation missing in model
|
509 + | pub length_list_pattern_string_query:
|
510 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
511 + | #[allow(missing_docs)] // documentation missing in model
|
512 + | pub length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
513 + | #[allow(missing_docs)] // documentation missing in model
|
514 + | pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
515 + | #[allow(missing_docs)] // documentation missing in model
|
516 + | pub range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
517 + | #[allow(missing_docs)] // documentation missing in model
|
518 + | pub range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
519 + | #[allow(missing_docs)] // documentation missing in model
|
520 + | pub range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
521 + | #[allow(missing_docs)] // documentation missing in model
|
522 + | pub range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
523 + | #[allow(missing_docs)] // documentation missing in model
|
524 + | pub range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
525 + | #[allow(missing_docs)] // documentation missing in model
|
526 + | pub range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
527 + | #[allow(missing_docs)] // documentation missing in model
|
528 + | pub range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
529 + | #[allow(missing_docs)] // documentation missing in model
|
530 + | pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
531 + | }
|
532 + | impl ConstrainedHttpBoundShapesOperationOutput {
|
533 + | #[allow(missing_docs)] // documentation missing in model
|
534 + | pub fn length_string_label(&self) -> &str {
|
535 + | use std::ops::Deref;
|
536 + | self.length_string_label.deref()
|
537 + | }
|
538 + | #[allow(missing_docs)] // documentation missing in model
|
539 + | pub fn range_integer_label(&self) -> i32 {
|
540 + | self.range_integer_label
|
541 + | }
|
542 + | #[allow(missing_docs)] // documentation missing in model
|
543 + | pub fn range_short_label(&self) -> i16 {
|
544 + | self.range_short_label
|
545 + | }
|
546 + | #[allow(missing_docs)] // documentation missing in model
|
547 + | pub fn range_long_label(&self) -> i64 {
|
548 + | self.range_long_label
|
549 + | }
|
550 + | #[allow(missing_docs)] // documentation missing in model
|
551 + | pub fn range_byte_label(&self) -> i8 {
|
552 + | self.range_byte_label
|
553 + | }
|
554 + | #[allow(missing_docs)] // documentation missing in model
|
555 + | pub fn enum_string_label(&self) -> &crate::model::EnumString {
|
556 + | &self.enum_string_label
|
557 + | }
|
558 + | #[allow(missing_docs)] // documentation missing in model
|
559 + | pub fn length_string_header_map(
|
560 + | &self,
|
561 + | ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
562 + | &self.length_string_header_map
|
563 + | }
|
564 + | #[allow(missing_docs)] // documentation missing in model
|
565 + | pub fn length_string_header(&self) -> ::std::option::Option<&str> {
|
566 + | self.length_string_header.as_deref()
|
567 + | }
|
568 + | #[allow(missing_docs)] // documentation missing in model
|
569 + | pub fn range_integer_header(&self) -> i32 {
|
570 + | self.range_integer_header
|
571 + | }
|
572 + | #[allow(missing_docs)] // documentation missing in model
|
573 + | pub fn range_short_header(&self) -> i16 {
|
574 + | self.range_short_header
|
575 + | }
|
576 + | #[allow(missing_docs)] // documentation missing in model
|
577 + | pub fn range_long_header(&self) -> i64 {
|
578 + | self.range_long_header
|
579 + | }
|
580 + | #[allow(missing_docs)] // documentation missing in model
|
581 + | pub fn range_byte_header(&self) -> i8 {
|
582 + | self.range_byte_header
|
583 + | }
|
584 + | #[allow(missing_docs)] // documentation missing in model
|
585 + | pub fn length_string_set_header(
|
586 + | &self,
|
587 + | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
588 + | self.length_string_set_header.as_ref()
|
589 + | }
|
590 + | #[allow(missing_docs)] // documentation missing in model
|
591 + | pub fn list_length_string_header(&self) -> ::std::option::Option<&[::std::string::String]> {
|
592 + | self.list_length_string_header.as_deref()
|
593 + | }
|
594 + | #[allow(missing_docs)] // documentation missing in model
|
595 + | pub fn length_list_pattern_string_header(
|
596 + | &self,
|
597 + | ) -> ::std::option::Option<&[::std::string::String]> {
|
598 + | self.length_list_pattern_string_header.as_deref()
|
599 + | }
|
600 + | #[allow(missing_docs)] // documentation missing in model
|
601 + | pub fn length_set_pattern_string_header(
|
602 + | &self,
|
603 + | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
604 + | self.length_set_pattern_string_header.as_ref()
|
605 + | }
|
606 + | #[allow(missing_docs)] // documentation missing in model
|
607 + | pub fn range_byte_set_header(&self) -> ::std::option::Option<&[i8]> {
|
608 + | self.range_byte_set_header.as_deref()
|
609 + | }
|
610 + | #[allow(missing_docs)] // documentation missing in model
|
611 + | pub fn range_short_set_header(&self) -> ::std::option::Option<&[i16]> {
|
612 + | self.range_short_set_header.as_deref()
|
613 + | }
|
614 + | #[allow(missing_docs)] // documentation missing in model
|
615 + | pub fn range_integer_set_header(&self) -> ::std::option::Option<&[i32]> {
|
616 + | self.range_integer_set_header.as_deref()
|
617 + | }
|
618 + | #[allow(missing_docs)] // documentation missing in model
|
619 + | pub fn range_long_set_header(&self) -> ::std::option::Option<&[i64]> {
|
620 + | self.range_long_set_header.as_deref()
|
621 + | }
|
622 + | #[allow(missing_docs)] // documentation missing in model
|
623 + | pub fn range_byte_list_header(&self) -> ::std::option::Option<&[i8]> {
|
624 + | self.range_byte_list_header.as_deref()
|
625 + | }
|
626 + | #[allow(missing_docs)] // documentation missing in model
|
627 + | pub fn range_short_list_header(&self) -> ::std::option::Option<&[i16]> {
|
628 + | self.range_short_list_header.as_deref()
|
629 + | }
|
630 + | #[allow(missing_docs)] // documentation missing in model
|
631 + | pub fn range_integer_list_header(&self) -> ::std::option::Option<&[i32]> {
|
632 + | self.range_integer_list_header.as_deref()
|
633 + | }
|
634 + | #[allow(missing_docs)] // documentation missing in model
|
635 + | pub fn range_long_list_header(&self) -> ::std::option::Option<&[i64]> {
|
636 + | self.range_long_list_header.as_deref()
|
637 + | }
|
638 + | #[allow(missing_docs)] // documentation missing in model
|
639 + | pub fn length_string_query(&self) -> ::std::option::Option<&str> {
|
640 + | self.length_string_query.as_deref()
|
641 + | }
|
642 + | #[allow(missing_docs)] // documentation missing in model
|
643 + | pub fn range_byte_query(&self) -> i8 {
|
644 + | self.range_byte_query
|
645 + | }
|
646 + | #[allow(missing_docs)] // documentation missing in model
|
647 + | pub fn range_short_query(&self) -> i16 {
|
648 + | self.range_short_query
|
649 + | }
|
650 + | #[allow(missing_docs)] // documentation missing in model
|
651 + | pub fn range_integer_query(&self) -> i32 {
|
652 + | self.range_integer_query
|
653 + | }
|
654 + | #[allow(missing_docs)] // documentation missing in model
|
655 + | pub fn range_long_query(&self) -> i64 {
|
656 + | self.range_long_query
|
657 + | }
|
658 + | #[allow(missing_docs)] // documentation missing in model
|
659 + | pub fn enum_string_query(&self) -> ::std::option::Option<&crate::model::EnumString> {
|
660 + | self.enum_string_query.as_ref()
|
661 + | }
|
662 + | #[allow(missing_docs)] // documentation missing in model
|
663 + | pub fn length_string_list_query(&self) -> ::std::option::Option<&[::std::string::String]> {
|
664 + | self.length_string_list_query.as_deref()
|
665 + | }
|
666 + | #[allow(missing_docs)] // documentation missing in model
|
667 + | pub fn length_list_pattern_string_query(
|
668 + | &self,
|
669 + | ) -> ::std::option::Option<&[::std::string::String]> {
|
670 + | self.length_list_pattern_string_query.as_deref()
|
671 + | }
|
672 + | #[allow(missing_docs)] // documentation missing in model
|
673 + | pub fn length_string_set_query(
|
674 + | &self,
|
675 + | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
676 + | self.length_string_set_query.as_ref()
|
677 + | }
|
678 + | #[allow(missing_docs)] // documentation missing in model
|
679 + | pub fn range_byte_list_query(&self) -> ::std::option::Option<&[i8]> {
|
680 + | self.range_byte_list_query.as_deref()
|
681 + | }
|
682 + | #[allow(missing_docs)] // documentation missing in model
|
683 + | pub fn range_short_list_query(&self) -> ::std::option::Option<&[i16]> {
|
684 + | self.range_short_list_query.as_deref()
|
685 + | }
|
686 + | #[allow(missing_docs)] // documentation missing in model
|
687 + | pub fn range_integer_list_query(&self) -> ::std::option::Option<&[i32]> {
|
688 + | self.range_integer_list_query.as_deref()
|
689 + | }
|
690 + | #[allow(missing_docs)] // documentation missing in model
|
691 + | pub fn range_long_list_query(&self) -> ::std::option::Option<&[i64]> {
|
692 + | self.range_long_list_query.as_deref()
|
693 + | }
|
694 + | #[allow(missing_docs)] // documentation missing in model
|
695 + | pub fn range_byte_set_query(&self) -> ::std::option::Option<&[i8]> {
|
696 + | self.range_byte_set_query.as_deref()
|
697 + | }
|
698 + | #[allow(missing_docs)] // documentation missing in model
|
699 + | pub fn range_short_set_query(&self) -> ::std::option::Option<&[i16]> {
|
700 + | self.range_short_set_query.as_deref()
|
701 + | }
|
702 + | #[allow(missing_docs)] // documentation missing in model
|
703 + | pub fn range_integer_set_query(&self) -> ::std::option::Option<&[i32]> {
|
704 + | self.range_integer_set_query.as_deref()
|
705 + | }
|
706 + | #[allow(missing_docs)] // documentation missing in model
|
707 + | pub fn range_long_set_query(&self) -> ::std::option::Option<&[i64]> {
|
708 + | self.range_long_set_query.as_deref()
|
709 + | }
|
710 + | #[allow(missing_docs)] // documentation missing in model
|
711 + | pub fn enum_string_list_query(&self) -> ::std::option::Option<&[crate::model::EnumString]> {
|
712 + | self.enum_string_list_query.as_deref()
|
713 + | }
|
714 + | }
|
715 + | impl ConstrainedHttpBoundShapesOperationOutput {
|
716 + | /// Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput).
|
717 + | pub fn builder() -> crate::output::constrained_http_bound_shapes_operation_output::Builder {
|
718 + | crate::output::constrained_http_bound_shapes_operation_output::Builder::default()
|
719 + | }
|
720 + | }
|
721 + |
|
722 + | #[allow(missing_docs)] // documentation missing in model
|
723 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
724 + | pub struct ConstrainedShapesOnlyInOutputOperationOutput {
|
725 + | #[allow(missing_docs)] // documentation missing in model
|
726 + | pub list: ::std::option::Option<::std::vec::Vec<crate::model::ConstrainedUnionInOutput>>,
|
727 + | #[allow(missing_docs)] // documentation missing in model
|
728 + | pub map: ::std::option::Option<
|
729 + | ::std::collections::HashMap<
|
730 + | ::std::string::String,
|
731 + | crate::model::TransitivelyConstrainedStructureInOutput,
|
732 + | >,
|
733 + | >,
|
734 + | #[allow(missing_docs)] // documentation missing in model
|
735 + | pub union: ::std::option::Option<crate::model::ConstrainedUnionInOutput>,
|
736 + | }
|
737 + | impl ConstrainedShapesOnlyInOutputOperationOutput {
|
738 + | #[allow(missing_docs)] // documentation missing in model
|
739 + | pub fn list(&self) -> ::std::option::Option<&[crate::model::ConstrainedUnionInOutput]> {
|
740 + | self.list.as_deref()
|
741 + | }
|
742 + | #[allow(missing_docs)] // documentation missing in model
|
743 + | pub fn map(
|
744 + | &self,
|
745 + | ) -> ::std::option::Option<
|
746 + | &::std::collections::HashMap<
|
747 + | ::std::string::String,
|
748 + | crate::model::TransitivelyConstrainedStructureInOutput,
|
749 + | >,
|
750 + | > {
|
751 + | self.map.as_ref()
|
752 + | }
|
753 + | #[allow(missing_docs)] // documentation missing in model
|
754 + | pub fn union(&self) -> ::std::option::Option<&crate::model::ConstrainedUnionInOutput> {
|
755 + | self.union.as_ref()
|
756 + | }
|
757 + | }
|
758 + | impl ConstrainedShapesOnlyInOutputOperationOutput {
|
759 + | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationOutput`](crate::output::ConstrainedShapesOnlyInOutputOperationOutput).
|
760 + | pub fn builder() -> crate::output::constrained_shapes_only_in_output_operation_output::Builder {
|
761 + | crate::output::constrained_shapes_only_in_output_operation_output::Builder::default()
|
762 + | }
|
763 + | }
|
764 + |
|
765 + | #[allow(missing_docs)] // documentation missing in model
|
766 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
767 + | pub struct ConstrainedShapesOperationOutput {
|
768 + | #[allow(missing_docs)] // documentation missing in model
|
769 + | pub con_a: crate::model::ConA,
|
770 + | }
|
771 + | impl ConstrainedShapesOperationOutput {
|
772 + | #[allow(missing_docs)] // documentation missing in model
|
773 + | pub fn con_a(&self) -> &crate::model::ConA {
|
774 + | &self.con_a
|
775 + | }
|
776 + | }
|
777 + | impl ConstrainedShapesOperationOutput {
|
778 + | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
779 + | pub fn builder() -> crate::output::constrained_shapes_operation_output::Builder {
|
780 + | crate::output::constrained_shapes_operation_output::Builder::default()
|
781 + | }
|
782 + | }
|
783 + | /// See [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput).
|
784 + | pub mod event_streams_operation_output {
|
785 + |
|
786 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
787 + | /// Holds one variant for each of the ways the builder can fail.
|
788 + | #[allow(clippy::enum_variant_names)]
|
789 + | pub enum ConstraintViolation {
|
790 + | /// `events` was not provided but it is required when building `EventStreamsOperationOutput`.
|
791 + | MissingEvents,
|
792 + | }
|
793 + | impl ::std::fmt::Display for ConstraintViolation {
|
794 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
795 + | match self {
|
796 + | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationOutput`"),
|
797 + | }
|
798 + | }
|
799 + | }
|
800 + | impl ::std::error::Error for ConstraintViolation {}
|
801 + | impl ::std::convert::TryFrom<Builder> for crate::output::EventStreamsOperationOutput {
|
802 + | type Error = ConstraintViolation;
|
803 + |
|
804 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
805 + | builder.build()
|
806 + | }
|
807 + | }
|
808 + | /// A builder for [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput).
|
809 + | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
810 + | pub struct Builder {
|
811 + | pub(crate) events: ::std::option::Option<
|
812 + | ::aws_smithy_legacy_http::event_stream::EventStreamSender<
|
813 + | crate::model::Event,
|
814 + | crate::error::EventError,
|
815 + | >,
|
816 + | >,
|
817 + | }
|
818 + | impl Builder {
|
819 + | #[allow(missing_docs)] // documentation missing in model
|
820 + | pub fn events(
|
821 + | mut self,
|
822 + | input: ::aws_smithy_legacy_http::event_stream::EventStreamSender<
|
823 + | crate::model::Event,
|
824 + | crate::error::EventError,
|
825 + | >,
|
826 + | ) -> Self {
|
827 + | self.events = Some(input);
|
828 + | self
|
829 + | }
|
830 + | /// Consumes the builder and constructs a [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput).
|
831 + | ///
|
832 + | /// The builder fails to construct a [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput) if you do not provide a value for all non-`Option`al members.
|
833 + | ///
|
834 + | pub fn build(
|
835 + | self,
|
836 + | ) -> Result<crate::output::EventStreamsOperationOutput, ConstraintViolation> {
|
837 + | self.build_enforcing_required_and_enum_traits()
|
838 + | }
|
839 + | fn build_enforcing_required_and_enum_traits(
|
840 + | self,
|
841 + | ) -> Result<crate::output::EventStreamsOperationOutput, ConstraintViolation> {
|
842 + | Ok(crate::output::EventStreamsOperationOutput {
|
843 + | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
844 + | })
|
845 + | }
|
846 + | }
|
847 + | }
|
848 + | /// See [`StreamingBlobOperationOutput`](crate::output::StreamingBlobOperationOutput).
|
849 + | pub mod streaming_blob_operation_output {
|
850 + |
|
851 + | impl ::std::convert::From<Builder> for crate::output::StreamingBlobOperationOutput {
|
852 + | fn from(builder: Builder) -> Self {
|
853 + | builder.build()
|
854 + | }
|
855 + | }
|
856 + | /// A builder for [`StreamingBlobOperationOutput`](crate::output::StreamingBlobOperationOutput).
|
857 + | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
858 + | pub struct Builder {
|
859 + | pub(crate) streaming_blob:
|
860 + | ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
861 + | }
|
862 + | impl Builder {
|
863 + | #[allow(missing_docs)] // documentation missing in model
|
864 + | pub fn streaming_blob(
|
865 + | mut self,
|
866 + | input: ::aws_smithy_types::byte_stream::ByteStream,
|
867 + | ) -> Self {
|
868 + | self.streaming_blob = Some(input);
|
869 + | self
|
870 + | }
|
871 + | /// Consumes the builder and constructs a [`StreamingBlobOperationOutput`](crate::output::StreamingBlobOperationOutput).
|
872 + | pub fn build(self) -> crate::output::StreamingBlobOperationOutput {
|
873 + | self.build_enforcing_required_and_enum_traits()
|
874 + | }
|
875 + | fn build_enforcing_required_and_enum_traits(
|
876 + | self,
|
877 + | ) -> crate::output::StreamingBlobOperationOutput {
|
878 + | crate::output::StreamingBlobOperationOutput {
|
879 + | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
880 + | }
|
881 + | }
|
882 + | }
|
883 + | }
|
884 + | /// See [`NonStreamingBlobOperationOutput`](crate::output::NonStreamingBlobOperationOutput).
|
885 + | pub mod non_streaming_blob_operation_output {
|
886 + |
|
887 + | impl ::std::convert::From<Builder> for crate::output::NonStreamingBlobOperationOutput {
|
888 + | fn from(builder: Builder) -> Self {
|
889 + | builder.build()
|
890 + | }
|
891 + | }
|
892 + | /// A builder for [`NonStreamingBlobOperationOutput`](crate::output::NonStreamingBlobOperationOutput).
|
893 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
894 + | pub struct Builder {
|
895 + | pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
896 + | }
|
897 + | impl Builder {
|
898 + | #[allow(missing_docs)] // documentation missing in model
|
899 + | pub fn non_streaming_blob(
|
900 + | mut self,
|
901 + | input: ::std::option::Option<::aws_smithy_types::Blob>,
|
902 + | ) -> Self {
|
903 + | self.non_streaming_blob = input;
|
904 + | self
|
905 + | }
|
906 + | /// Consumes the builder and constructs a [`NonStreamingBlobOperationOutput`](crate::output::NonStreamingBlobOperationOutput).
|
907 + | pub fn build(self) -> crate::output::NonStreamingBlobOperationOutput {
|
908 + | self.build_enforcing_required_and_enum_traits()
|
909 + | }
|
910 + | fn build_enforcing_required_and_enum_traits(
|
911 + | self,
|
912 + | ) -> crate::output::NonStreamingBlobOperationOutput {
|
913 + | crate::output::NonStreamingBlobOperationOutput {
|
914 + | non_streaming_blob: self.non_streaming_blob,
|
915 + | }
|
916 + | }
|
917 + | }
|
918 + | }
|
919 + | /// See [`QueryParamsTargetingMapOfEnumStringOperationOutput`](crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput).
|
920 + | pub mod query_params_targeting_map_of_enum_string_operation_output {
|
921 + |
|
922 + | impl ::std::convert::From<Builder>
|
923 + | for crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput
|
924 + | {
|
925 + | fn from(builder: Builder) -> Self {
|
926 + | builder.build()
|
927 + | }
|
928 + | }
|
929 + | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationOutput`](crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput).
|
930 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
931 + | pub struct Builder {
|
932 + | pub(crate) map_of_enum_string: ::std::option::Option<
|
933 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
934 + | >,
|
935 + | }
|
936 + | impl Builder {
|
937 + | #[allow(missing_docs)] // documentation missing in model
|
938 + | pub fn map_of_enum_string(
|
939 + | mut self,
|
940 + | input: ::std::option::Option<
|
941 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
942 + | >,
|
943 + | ) -> Self {
|
944 + | self.map_of_enum_string = input;
|
945 + | self
|
946 + | }
|
947 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationOutput`](crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput).
|
948 + | pub fn build(self) -> crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput {
|
949 + | self.build_enforcing_required_and_enum_traits()
|
950 + | }
|
951 + | fn build_enforcing_required_and_enum_traits(
|
952 + | self,
|
953 + | ) -> crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput {
|
954 + | crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput {
|
955 + | map_of_enum_string: self.map_of_enum_string,
|
956 + | }
|
957 + | }
|
958 + | }
|
959 + | }
|
960 + | /// See [`HttpPrefixHeadersTargetingLengthMapOperationOutput`](crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput).
|
961 + | pub mod http_prefix_headers_targeting_length_map_operation_output {
|
962 + |
|
963 + | impl ::std::convert::From<Builder>
|
964 + | for crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput
|
965 + | {
|
966 + | fn from(builder: Builder) -> Self {
|
967 + | builder.build()
|
968 + | }
|
969 + | }
|
970 + | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationOutput`](crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput).
|
971 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
972 + | pub struct Builder {
|
973 + | pub(crate) length_map: ::std::option::Option<
|
974 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
975 + | >,
|
976 + | }
|
977 + | impl Builder {
|
978 + | #[allow(missing_docs)] // documentation missing in model
|
979 + | pub fn length_map(
|
980 + | mut self,
|
981 + | input: ::std::option::Option<
|
982 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
983 + | >,
|
984 + | ) -> Self {
|
985 + | self.length_map = input;
|
986 + | self
|
987 + | }
|
988 + | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationOutput`](crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput).
|
989 + | pub fn build(self) -> crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput {
|
990 + | self.build_enforcing_required_and_enum_traits()
|
991 + | }
|
992 + | fn build_enforcing_required_and_enum_traits(
|
993 + | self,
|
994 + | ) -> crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput {
|
995 + | crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput {
|
996 + | length_map: self.length_map,
|
997 + | }
|
998 + | }
|
999 + | }
|
1000 + | }
|
1001 + | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput).
|
1002 + | pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_output {
|
1003 + |
|
1004 + | impl ::std::convert::From<Builder>
|
1005 + | for crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput
|
1006 + | {
|
1007 + | fn from(builder: Builder) -> Self {
|
1008 + | builder.build()
|
1009 + | }
|
1010 + | }
|
1011 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput).
|
1012 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1013 + | pub struct Builder {
|
1014 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
1015 + | ::std::collections::HashMap<
|
1016 + | ::std::string::String,
|
1017 + | ::std::vec::Vec<::std::string::String>,
|
1018 + | >,
|
1019 + | >,
|
1020 + | }
|
1021 + | impl Builder {
|
1022 + | #[allow(missing_docs)] // documentation missing in model
|
1023 + | pub fn map_of_length_pattern_string(
|
1024 + | mut self,
|
1025 + | input: ::std::option::Option<
|
1026 + | ::std::collections::HashMap<
|
1027 + | ::std::string::String,
|
1028 + | ::std::vec::Vec<::std::string::String>,
|
1029 + | >,
|
1030 + | >,
|
1031 + | ) -> Self {
|
1032 + | self.map_of_length_pattern_string = input;
|
1033 + | self
|
1034 + | }
|
1035 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput).
|
1036 + | pub fn build(
|
1037 + | self,
|
1038 + | ) -> crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput
|
1039 + | {
|
1040 + | self.build_enforcing_required_and_enum_traits()
|
1041 + | }
|
1042 + | fn build_enforcing_required_and_enum_traits(
|
1043 + | self,
|
1044 + | ) -> crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput
|
1045 + | {
|
1046 + | crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput {
|
1047 + | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
1048 + | }
|
1049 + | }
|
1050 + | }
|
1051 + | }
|
1052 + | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput).
|
1053 + | pub mod query_params_targeting_map_of_length_pattern_string_operation_output {
|
1054 + |
|
1055 + | impl ::std::convert::From<Builder>
|
1056 + | for crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput
|
1057 + | {
|
1058 + | fn from(builder: Builder) -> Self {
|
1059 + | builder.build()
|
1060 + | }
|
1061 + | }
|
1062 + | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput).
|
1063 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1064 + | pub struct Builder {
|
1065 + | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
1066 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1067 + | >,
|
1068 + | }
|
1069 + | impl Builder {
|
1070 + | #[allow(missing_docs)] // documentation missing in model
|
1071 + | pub fn map_of_length_pattern_string(
|
1072 + | mut self,
|
1073 + | input: ::std::option::Option<
|
1074 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1075 + | >,
|
1076 + | ) -> Self {
|
1077 + | self.map_of_length_pattern_string = input;
|
1078 + | self
|
1079 + | }
|
1080 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput).
|
1081 + | pub fn build(
|
1082 + | self,
|
1083 + | ) -> crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput {
|
1084 + | self.build_enforcing_required_and_enum_traits()
|
1085 + | }
|
1086 + | fn build_enforcing_required_and_enum_traits(
|
1087 + | self,
|
1088 + | ) -> crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput {
|
1089 + | crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput {
|
1090 + | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
1091 + | }
|
1092 + | }
|
1093 + | }
|
1094 + | }
|
1095 + | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput).
|
1096 + | pub mod query_params_targeting_map_of_list_of_pattern_string_operation_output {
|
1097 + |
|
1098 + | impl ::std::convert::From<Builder>
|
1099 + | for crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput
|
1100 + | {
|
1101 + | fn from(builder: Builder) -> Self {
|
1102 + | builder.build()
|
1103 + | }
|
1104 + | }
|
1105 + | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput).
|
1106 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1107 + | pub struct Builder {
|
1108 + | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<
|
1109 + | ::std::collections::HashMap<
|
1110 + | ::std::string::String,
|
1111 + | ::std::vec::Vec<::std::string::String>,
|
1112 + | >,
|
1113 + | >,
|
1114 + | }
|
1115 + | impl Builder {
|
1116 + | #[allow(missing_docs)] // documentation missing in model
|
1117 + | pub fn map_of_list_of_pattern_string(
|
1118 + | mut self,
|
1119 + | input: ::std::option::Option<
|
1120 + | ::std::collections::HashMap<
|
1121 + | ::std::string::String,
|
1122 + | ::std::vec::Vec<::std::string::String>,
|
1123 + | >,
|
1124 + | >,
|
1125 + | ) -> Self {
|
1126 + | self.map_of_list_of_pattern_string = input;
|
1127 + | self
|
1128 + | }
|
1129 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput).
|
1130 + | pub fn build(
|
1131 + | self,
|
1132 + | ) -> crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput {
|
1133 + | self.build_enforcing_required_and_enum_traits()
|
1134 + | }
|
1135 + | fn build_enforcing_required_and_enum_traits(
|
1136 + | self,
|
1137 + | ) -> crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput {
|
1138 + | crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput {
|
1139 + | map_of_list_of_pattern_string: self.map_of_list_of_pattern_string,
|
1140 + | }
|
1141 + | }
|
1142 + | }
|
1143 + | }
|
1144 + | /// See [`QueryParamsTargetingMapOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput).
|
1145 + | pub mod query_params_targeting_map_of_pattern_string_operation_output {
|
1146 + |
|
1147 + | impl ::std::convert::From<Builder>
|
1148 + | for crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput
|
1149 + | {
|
1150 + | fn from(builder: Builder) -> Self {
|
1151 + | builder.build()
|
1152 + | }
|
1153 + | }
|
1154 + | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput).
|
1155 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1156 + | pub struct Builder {
|
1157 + | pub(crate) map_of_pattern_string: ::std::option::Option<
|
1158 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1159 + | >,
|
1160 + | }
|
1161 + | impl Builder {
|
1162 + | #[allow(missing_docs)] // documentation missing in model
|
1163 + | pub fn map_of_pattern_string(
|
1164 + | mut self,
|
1165 + | input: ::std::option::Option<
|
1166 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1167 + | >,
|
1168 + | ) -> Self {
|
1169 + | self.map_of_pattern_string = input;
|
1170 + | self
|
1171 + | }
|
1172 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput).
|
1173 + | pub fn build(self) -> crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput {
|
1174 + | self.build_enforcing_required_and_enum_traits()
|
1175 + | }
|
1176 + | fn build_enforcing_required_and_enum_traits(
|
1177 + | self,
|
1178 + | ) -> crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput {
|
1179 + | crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput {
|
1180 + | map_of_pattern_string: self.map_of_pattern_string,
|
1181 + | }
|
1182 + | }
|
1183 + | }
|
1184 + | }
|
1185 + | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput).
|
1186 + | pub mod query_params_targeting_map_of_list_of_enum_string_operation_output {
|
1187 + |
|
1188 + | impl ::std::convert::From<Builder>
|
1189 + | for crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput
|
1190 + | {
|
1191 + | fn from(builder: Builder) -> Self {
|
1192 + | builder.build()
|
1193 + | }
|
1194 + | }
|
1195 + | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput).
|
1196 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1197 + | pub struct Builder {
|
1198 + | pub(crate) map_of_list_of_enum_string: ::std::option::Option<
|
1199 + | ::std::collections::HashMap<
|
1200 + | crate::model::EnumString,
|
1201 + | ::std::vec::Vec<crate::model::EnumString>,
|
1202 + | >,
|
1203 + | >,
|
1204 + | }
|
1205 + | impl Builder {
|
1206 + | #[allow(missing_docs)] // documentation missing in model
|
1207 + | pub fn map_of_list_of_enum_string(
|
1208 + | mut self,
|
1209 + | input: ::std::option::Option<
|
1210 + | ::std::collections::HashMap<
|
1211 + | crate::model::EnumString,
|
1212 + | ::std::vec::Vec<crate::model::EnumString>,
|
1213 + | >,
|
1214 + | >,
|
1215 + | ) -> Self {
|
1216 + | self.map_of_list_of_enum_string = input;
|
1217 + | self
|
1218 + | }
|
1219 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput).
|
1220 + | pub fn build(
|
1221 + | self,
|
1222 + | ) -> crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput {
|
1223 + | self.build_enforcing_required_and_enum_traits()
|
1224 + | }
|
1225 + | fn build_enforcing_required_and_enum_traits(
|
1226 + | self,
|
1227 + | ) -> crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput {
|
1228 + | crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput {
|
1229 + | map_of_list_of_enum_string: self.map_of_list_of_enum_string,
|
1230 + | }
|
1231 + | }
|
1232 + | }
|
1233 + | }
|
1234 + | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput).
|
1235 + | pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_output {
|
1236 + |
|
1237 + | impl ::std::convert::From<Builder>
|
1238 + | for crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput
|
1239 + | {
|
1240 + | fn from(builder: Builder) -> Self {
|
1241 + | builder.build()
|
1242 + | }
|
1243 + | }
|
1244 + | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput).
|
1245 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1246 + | pub struct Builder {
|
1247 + | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<
|
1248 + | ::std::collections::HashMap<
|
1249 + | ::std::string::String,
|
1250 + | ::std::vec::Vec<::std::string::String>,
|
1251 + | >,
|
1252 + | >,
|
1253 + | }
|
1254 + | impl Builder {
|
1255 + | #[allow(missing_docs)] // documentation missing in model
|
1256 + | pub fn map_of_length_list_of_pattern_string(
|
1257 + | mut self,
|
1258 + | input: ::std::option::Option<
|
1259 + | ::std::collections::HashMap<
|
1260 + | ::std::string::String,
|
1261 + | ::std::vec::Vec<::std::string::String>,
|
1262 + | >,
|
1263 + | >,
|
1264 + | ) -> Self {
|
1265 + | self.map_of_length_list_of_pattern_string = input;
|
1266 + | self
|
1267 + | }
|
1268 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput).
|
1269 + | pub fn build(
|
1270 + | self,
|
1271 + | ) -> crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput
|
1272 + | {
|
1273 + | self.build_enforcing_required_and_enum_traits()
|
1274 + | }
|
1275 + | fn build_enforcing_required_and_enum_traits(
|
1276 + | self,
|
1277 + | ) -> crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput
|
1278 + | {
|
1279 + | crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput {
|
1280 + | map_of_length_list_of_pattern_string: self.map_of_length_list_of_pattern_string,
|
1281 + | }
|
1282 + | }
|
1283 + | }
|
1284 + | }
|
1285 + | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput).
|
1286 + | pub mod query_params_targeting_map_of_set_of_length_string_operation_output {
|
1287 + |
|
1288 + | impl ::std::convert::From<Builder>
|
1289 + | for crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput
|
1290 + | {
|
1291 + | fn from(builder: Builder) -> Self {
|
1292 + | builder.build()
|
1293 + | }
|
1294 + | }
|
1295 + | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput).
|
1296 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1297 + | pub struct Builder {
|
1298 + | pub(crate) map_of_set_of_length_string: ::std::option::Option<
|
1299 + | ::std::collections::HashMap<
|
1300 + | ::std::string::String,
|
1301 + | ::std::vec::Vec<::std::string::String>,
|
1302 + | >,
|
1303 + | >,
|
1304 + | }
|
1305 + | impl Builder {
|
1306 + | #[allow(missing_docs)] // documentation missing in model
|
1307 + | pub fn map_of_set_of_length_string(
|
1308 + | mut self,
|
1309 + | input: ::std::option::Option<
|
1310 + | ::std::collections::HashMap<
|
1311 + | ::std::string::String,
|
1312 + | ::std::vec::Vec<::std::string::String>,
|
1313 + | >,
|
1314 + | >,
|
1315 + | ) -> Self {
|
1316 + | self.map_of_set_of_length_string = input;
|
1317 + | self
|
1318 + | }
|
1319 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput).
|
1320 + | pub fn build(
|
1321 + | self,
|
1322 + | ) -> crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput {
|
1323 + | self.build_enforcing_required_and_enum_traits()
|
1324 + | }
|
1325 + | fn build_enforcing_required_and_enum_traits(
|
1326 + | self,
|
1327 + | ) -> crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput {
|
1328 + | crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput {
|
1329 + | map_of_set_of_length_string: self.map_of_set_of_length_string,
|
1330 + | }
|
1331 + | }
|
1332 + | }
|
1333 + | }
|
1334 + | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput).
|
1335 + | pub mod query_params_targeting_map_of_list_of_length_string_operation_output {
|
1336 + |
|
1337 + | impl ::std::convert::From<Builder>
|
1338 + | for crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput
|
1339 + | {
|
1340 + | fn from(builder: Builder) -> Self {
|
1341 + | builder.build()
|
1342 + | }
|
1343 + | }
|
1344 + | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput).
|
1345 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1346 + | pub struct Builder {
|
1347 + | pub(crate) map_of_list_of_length_string: ::std::option::Option<
|
1348 + | ::std::collections::HashMap<
|
1349 + | ::std::string::String,
|
1350 + | ::std::vec::Vec<::std::string::String>,
|
1351 + | >,
|
1352 + | >,
|
1353 + | }
|
1354 + | impl Builder {
|
1355 + | #[allow(missing_docs)] // documentation missing in model
|
1356 + | pub fn map_of_list_of_length_string(
|
1357 + | mut self,
|
1358 + | input: ::std::option::Option<
|
1359 + | ::std::collections::HashMap<
|
1360 + | ::std::string::String,
|
1361 + | ::std::vec::Vec<::std::string::String>,
|
1362 + | >,
|
1363 + | >,
|
1364 + | ) -> Self {
|
1365 + | self.map_of_list_of_length_string = input;
|
1366 + | self
|
1367 + | }
|
1368 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput).
|
1369 + | pub fn build(
|
1370 + | self,
|
1371 + | ) -> crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput {
|
1372 + | self.build_enforcing_required_and_enum_traits()
|
1373 + | }
|
1374 + | fn build_enforcing_required_and_enum_traits(
|
1375 + | self,
|
1376 + | ) -> crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput {
|
1377 + | crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput {
|
1378 + | map_of_list_of_length_string: self.map_of_list_of_length_string,
|
1379 + | }
|
1380 + | }
|
1381 + | }
|
1382 + | }
|
1383 + | /// See [`QueryParamsTargetingMapOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput).
|
1384 + | pub mod query_params_targeting_map_of_length_string_operation_output {
|
1385 + |
|
1386 + | impl ::std::convert::From<Builder>
|
1387 + | for crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput
|
1388 + | {
|
1389 + | fn from(builder: Builder) -> Self {
|
1390 + | builder.build()
|
1391 + | }
|
1392 + | }
|
1393 + | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput).
|
1394 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1395 + | pub struct Builder {
|
1396 + | pub(crate) map_of_length_string: ::std::option::Option<
|
1397 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1398 + | >,
|
1399 + | }
|
1400 + | impl Builder {
|
1401 + | #[allow(missing_docs)] // documentation missing in model
|
1402 + | pub fn map_of_length_string(
|
1403 + | mut self,
|
1404 + | input: ::std::option::Option<
|
1405 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1406 + | >,
|
1407 + | ) -> Self {
|
1408 + | self.map_of_length_string = input;
|
1409 + | self
|
1410 + | }
|
1411 + | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationOutput`](crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput).
|
1412 + | pub fn build(self) -> crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput {
|
1413 + | self.build_enforcing_required_and_enum_traits()
|
1414 + | }
|
1415 + | fn build_enforcing_required_and_enum_traits(
|
1416 + | self,
|
1417 + | ) -> crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput {
|
1418 + | crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput {
|
1419 + | map_of_length_string: self.map_of_length_string,
|
1420 + | }
|
1421 + | }
|
1422 + | }
|
1423 + | }
|
1424 + | /// See [`QueryParamsTargetingLengthMapOperationOutput`](crate::output::QueryParamsTargetingLengthMapOperationOutput).
|
1425 + | pub mod query_params_targeting_length_map_operation_output {
|
1426 + |
|
1427 + | impl ::std::convert::From<Builder> for crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
1428 + | fn from(builder: Builder) -> Self {
|
1429 + | builder.build()
|
1430 + | }
|
1431 + | }
|
1432 + | /// A builder for [`QueryParamsTargetingLengthMapOperationOutput`](crate::output::QueryParamsTargetingLengthMapOperationOutput).
|
1433 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1434 + | pub struct Builder {
|
1435 + | pub(crate) length_map: ::std::option::Option<
|
1436 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1437 + | >,
|
1438 + | }
|
1439 + | impl Builder {
|
1440 + | #[allow(missing_docs)] // documentation missing in model
|
1441 + | pub fn length_map(
|
1442 + | mut self,
|
1443 + | input: ::std::option::Option<
|
1444 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1445 + | >,
|
1446 + | ) -> Self {
|
1447 + | self.length_map = input;
|
1448 + | self
|
1449 + | }
|
1450 + | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationOutput`](crate::output::QueryParamsTargetingLengthMapOperationOutput).
|
1451 + | pub fn build(self) -> crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
1452 + | self.build_enforcing_required_and_enum_traits()
|
1453 + | }
|
1454 + | fn build_enforcing_required_and_enum_traits(
|
1455 + | self,
|
1456 + | ) -> crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
1457 + | crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
1458 + | length_map: self.length_map,
|
1459 + | }
|
1460 + | }
|
1461 + | }
|
1462 + | }
|
1463 + | /// See [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
1464 + | pub mod constrained_recursive_shapes_operation_output {
|
1465 + |
|
1466 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1467 + | /// Holds one variant for each of the ways the builder can fail.
|
1468 + | #[allow(clippy::enum_variant_names)]
|
1469 + | pub enum ConstraintViolation {
|
1470 + | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationOutput`.
|
1471 + | MissingRecursiveList,
|
1472 + | }
|
1473 + | impl ::std::fmt::Display for ConstraintViolation {
|
1474 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1475 + | match self {
|
1476 + | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationOutput`"),
|
1477 + | }
|
1478 + | }
|
1479 + | }
|
1480 + | impl ::std::error::Error for ConstraintViolation {}
|
1481 + | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedRecursiveShapesOperationOutput {
|
1482 + | type Error = ConstraintViolation;
|
1483 + |
|
1484 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1485 + | builder.build()
|
1486 + | }
|
1487 + | }
|
1488 + | /// A builder for [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
1489 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1490 + | pub struct Builder {
|
1491 + | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
1492 + | pub(crate) recursive_list:
|
1493 + | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
1494 + | }
|
1495 + | impl Builder {
|
1496 + | #[allow(missing_docs)] // documentation missing in model
|
1497 + | pub fn nested(
|
1498 + | mut self,
|
1499 + | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
1500 + | ) -> Self {
|
1501 + | self.nested = input;
|
1502 + | self
|
1503 + | }
|
1504 + | #[allow(missing_docs)] // documentation missing in model
|
1505 + | pub fn recursive_list(
|
1506 + | mut self,
|
1507 + | input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
1508 + | ) -> Self {
|
1509 + | self.recursive_list = Some(input);
|
1510 + | self
|
1511 + | }
|
1512 + | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
1513 + | ///
|
1514 + | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput) if you do not provide a value for all non-`Option`al members.
|
1515 + | ///
|
1516 + | pub fn build(
|
1517 + | self,
|
1518 + | ) -> Result<crate::output::ConstrainedRecursiveShapesOperationOutput, ConstraintViolation>
|
1519 + | {
|
1520 + | self.build_enforcing_required_and_enum_traits()
|
1521 + | }
|
1522 + | fn build_enforcing_required_and_enum_traits(
|
1523 + | self,
|
1524 + | ) -> Result<crate::output::ConstrainedRecursiveShapesOperationOutput, ConstraintViolation>
|
1525 + | {
|
1526 + | Ok(crate::output::ConstrainedRecursiveShapesOperationOutput {
|
1527 + | nested: self.nested,
|
1528 + | recursive_list: self
|
1529 + | .recursive_list
|
1530 + | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
1531 + | })
|
1532 + | }
|
1533 + | }
|
1534 + | }
|
1535 + | /// See [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput).
|
1536 + | pub mod constrained_http_payload_bound_shape_operation_output {
|
1537 + |
|
1538 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1539 + | /// Holds one variant for each of the ways the builder can fail.
|
1540 + | #[allow(clippy::enum_variant_names)]
|
1541 + | pub enum ConstraintViolation {
|
1542 + | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationOutput`.
|
1543 + | MissingHttpPayloadBoundConstrainedShape,
|
1544 + | }
|
1545 + | impl ::std::fmt::Display for ConstraintViolation {
|
1546 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1547 + | match self {
|
1548 + | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationOutput`"),
|
1549 + | }
|
1550 + | }
|
1551 + | }
|
1552 + | impl ::std::error::Error for ConstraintViolation {}
|
1553 + | impl ::std::convert::TryFrom<Builder>
|
1554 + | for crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput
|
1555 + | {
|
1556 + | type Error = ConstraintViolation;
|
1557 + |
|
1558 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1559 + | builder.build()
|
1560 + | }
|
1561 + | }
|
1562 + | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput).
|
1563 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1564 + | pub struct Builder {
|
1565 + | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
1566 + | }
|
1567 + | impl Builder {
|
1568 + | #[allow(missing_docs)] // documentation missing in model
|
1569 + | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
1570 + | self.http_payload_bound_constrained_shape = Some(input);
|
1571 + | self
|
1572 + | }
|
1573 + | /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput).
|
1574 + | ///
|
1575 + | /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput) if you do not provide a value for all non-`Option`al members.
|
1576 + | ///
|
1577 + | pub fn build(
|
1578 + | self,
|
1579 + | ) -> Result<
|
1580 + | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput,
|
1581 + | ConstraintViolation,
|
1582 + | > {
|
1583 + | self.build_enforcing_required_and_enum_traits()
|
1584 + | }
|
1585 + | fn build_enforcing_required_and_enum_traits(
|
1586 + | self,
|
1587 + | ) -> Result<
|
1588 + | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput,
|
1589 + | ConstraintViolation,
|
1590 + | > {
|
1591 + | Ok(
|
1592 + | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput {
|
1593 + | http_payload_bound_constrained_shape: self
|
1594 + | .http_payload_bound_constrained_shape
|
1595 + | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
1596 + | },
|
1597 + | )
|
1598 + | }
|
1599 + | }
|
1600 + | }
|
1601 + | /// See [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput).
|
1602 + | pub mod constrained_http_bound_shapes_operation_output {
|
1603 + |
|
1604 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1605 + | /// Holds one variant for each of the ways the builder can fail.
|
1606 + | #[allow(clippy::enum_variant_names)]
|
1607 + | pub enum ConstraintViolation {
|
1608 + | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
1609 + | MissingLengthStringLabel,
|
1610 + | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
1611 + | MissingEnumStringLabel,
|
1612 + | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
1613 + | MissingLengthStringHeaderMap,
|
1614 + | }
|
1615 + | impl ::std::fmt::Display for ConstraintViolation {
|
1616 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1617 + | match self {
|
1618 + | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
1619 + | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
1620 + | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
1621 + | }
|
1622 + | }
|
1623 + | }
|
1624 + | impl ::std::error::Error for ConstraintViolation {}
|
1625 + | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedHttpBoundShapesOperationOutput {
|
1626 + | type Error = ConstraintViolation;
|
1627 + |
|
1628 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1629 + | builder.build()
|
1630 + | }
|
1631 + | }
|
1632 + | /// A builder for [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput).
|
1633 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1634 + | pub struct Builder {
|
1635 + | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
1636 + | pub(crate) range_integer_label: ::std::option::Option<i32>,
|
1637 + | pub(crate) range_short_label: ::std::option::Option<i16>,
|
1638 + | pub(crate) range_long_label: ::std::option::Option<i64>,
|
1639 + | pub(crate) range_byte_label: ::std::option::Option<i8>,
|
1640 + | pub(crate) enum_string_label: ::std::option::Option<crate::model::EnumString>,
|
1641 + | pub(crate) length_string_header_map: ::std::option::Option<
|
1642 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1643 + | >,
|
1644 + | pub(crate) length_string_header: ::std::option::Option<::std::string::String>,
|
1645 + | pub(crate) range_integer_header: ::std::option::Option<i32>,
|
1646 + | pub(crate) range_short_header: ::std::option::Option<i16>,
|
1647 + | pub(crate) range_long_header: ::std::option::Option<i64>,
|
1648 + | pub(crate) range_byte_header: ::std::option::Option<i8>,
|
1649 + | pub(crate) length_string_set_header:
|
1650 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1651 + | pub(crate) list_length_string_header:
|
1652 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1653 + | pub(crate) length_list_pattern_string_header:
|
1654 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1655 + | pub(crate) length_set_pattern_string_header:
|
1656 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1657 + | pub(crate) range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1658 + | pub(crate) range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1659 + | pub(crate) range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1660 + | pub(crate) range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1661 + | pub(crate) range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
1662 + | pub(crate) range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
1663 + | pub(crate) range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
1664 + | pub(crate) range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
1665 + | pub(crate) length_string_query: ::std::option::Option<::std::string::String>,
|
1666 + | pub(crate) range_byte_query: ::std::option::Option<i8>,
|
1667 + | pub(crate) range_short_query: ::std::option::Option<i16>,
|
1668 + | pub(crate) range_integer_query: ::std::option::Option<i32>,
|
1669 + | pub(crate) range_long_query: ::std::option::Option<i64>,
|
1670 + | pub(crate) enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
1671 + | pub(crate) length_string_list_query:
|
1672 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1673 + | pub(crate) length_list_pattern_string_query:
|
1674 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1675 + | pub(crate) length_string_set_query:
|
1676 + | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1677 + | pub(crate) range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1678 + | pub(crate) range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1679 + | pub(crate) range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1680 + | pub(crate) range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1681 + | pub(crate) range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
1682 + | pub(crate) range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
1683 + | pub(crate) range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
1684 + | pub(crate) range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
1685 + | pub(crate) enum_string_list_query:
|
1686 + | ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
1687 + | }
|
1688 + | impl Builder {
|
1689 + | #[allow(missing_docs)] // documentation missing in model
|
1690 + | pub fn length_string_label(mut self, input: ::std::string::String) -> Self {
|
1691 + | self.length_string_label = Some(input);
|
1692 + | self
|
1693 + | }
|
1694 + | #[allow(missing_docs)] // documentation missing in model
|
1695 + | pub fn range_integer_label(mut self, input: i32) -> Self {
|
1696 + | self.range_integer_label = Some(input);
|
1697 + | self
|
1698 + | }
|
1699 + | #[allow(missing_docs)] // documentation missing in model
|
1700 + | pub fn range_short_label(mut self, input: i16) -> Self {
|
1701 + | self.range_short_label = Some(input);
|
1702 + | self
|
1703 + | }
|
1704 + | #[allow(missing_docs)] // documentation missing in model
|
1705 + | pub fn range_long_label(mut self, input: i64) -> Self {
|
1706 + | self.range_long_label = Some(input);
|
1707 + | self
|
1708 + | }
|
1709 + | #[allow(missing_docs)] // documentation missing in model
|
1710 + | pub fn range_byte_label(mut self, input: i8) -> Self {
|
1711 + | self.range_byte_label = Some(input);
|
1712 + | self
|
1713 + | }
|
1714 + | #[allow(missing_docs)] // documentation missing in model
|
1715 + | pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
|
1716 + | self.enum_string_label = Some(input);
|
1717 + | self
|
1718 + | }
|
1719 + | #[allow(missing_docs)] // documentation missing in model
|
1720 + | pub fn length_string_header_map(
|
1721 + | mut self,
|
1722 + | input: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1723 + | ) -> Self {
|
1724 + | self.length_string_header_map = Some(input);
|
1725 + | self
|
1726 + | }
|
1727 + | #[allow(missing_docs)] // documentation missing in model
|
1728 + | pub fn length_string_header(
|
1729 + | mut self,
|
1730 + | input: ::std::option::Option<::std::string::String>,
|
1731 + | ) -> Self {
|
1732 + | self.length_string_header = input;
|
1733 + | self
|
1734 + | }
|
1735 + | #[allow(missing_docs)] // documentation missing in model
|
1736 + | pub fn range_integer_header(mut self, input: i32) -> Self {
|
1737 + | self.range_integer_header = Some(input);
|
1738 + | self
|
1739 + | }
|
1740 + | #[allow(missing_docs)] // documentation missing in model
|
1741 + | pub fn range_short_header(mut self, input: i16) -> Self {
|
1742 + | self.range_short_header = Some(input);
|
1743 + | self
|
1744 + | }
|
1745 + | #[allow(missing_docs)] // documentation missing in model
|
1746 + | pub fn range_long_header(mut self, input: i64) -> Self {
|
1747 + | self.range_long_header = Some(input);
|
1748 + | self
|
1749 + | }
|
1750 + | #[allow(missing_docs)] // documentation missing in model
|
1751 + | pub fn range_byte_header(mut self, input: i8) -> Self {
|
1752 + | self.range_byte_header = Some(input);
|
1753 + | self
|
1754 + | }
|
1755 + | #[allow(missing_docs)] // documentation missing in model
|
1756 + | pub fn length_string_set_header(
|
1757 + | mut self,
|
1758 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1759 + | ) -> Self {
|
1760 + | self.length_string_set_header = input;
|
1761 + | self
|
1762 + | }
|
1763 + | #[allow(missing_docs)] // documentation missing in model
|
1764 + | pub fn list_length_string_header(
|
1765 + | mut self,
|
1766 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1767 + | ) -> Self {
|
1768 + | self.list_length_string_header = input;
|
1769 + | self
|
1770 + | }
|
1771 + | #[allow(missing_docs)] // documentation missing in model
|
1772 + | pub fn length_list_pattern_string_header(
|
1773 + | mut self,
|
1774 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1775 + | ) -> Self {
|
1776 + | self.length_list_pattern_string_header = input;
|
1777 + | self
|
1778 + | }
|
1779 + | #[allow(missing_docs)] // documentation missing in model
|
1780 + | pub fn length_set_pattern_string_header(
|
1781 + | mut self,
|
1782 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1783 + | ) -> Self {
|
1784 + | self.length_set_pattern_string_header = input;
|
1785 + | self
|
1786 + | }
|
1787 + | #[allow(missing_docs)] // documentation missing in model
|
1788 + | pub fn range_byte_set_header(
|
1789 + | mut self,
|
1790 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
1791 + | ) -> Self {
|
1792 + | self.range_byte_set_header = input;
|
1793 + | self
|
1794 + | }
|
1795 + | #[allow(missing_docs)] // documentation missing in model
|
1796 + | pub fn range_short_set_header(
|
1797 + | mut self,
|
1798 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
1799 + | ) -> Self {
|
1800 + | self.range_short_set_header = input;
|
1801 + | self
|
1802 + | }
|
1803 + | #[allow(missing_docs)] // documentation missing in model
|
1804 + | pub fn range_integer_set_header(
|
1805 + | mut self,
|
1806 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
1807 + | ) -> Self {
|
1808 + | self.range_integer_set_header = input;
|
1809 + | self
|
1810 + | }
|
1811 + | #[allow(missing_docs)] // documentation missing in model
|
1812 + | pub fn range_long_set_header(
|
1813 + | mut self,
|
1814 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
1815 + | ) -> Self {
|
1816 + | self.range_long_set_header = input;
|
1817 + | self
|
1818 + | }
|
1819 + | #[allow(missing_docs)] // documentation missing in model
|
1820 + | pub fn range_byte_list_header(
|
1821 + | mut self,
|
1822 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
1823 + | ) -> Self {
|
1824 + | self.range_byte_list_header = input;
|
1825 + | self
|
1826 + | }
|
1827 + | #[allow(missing_docs)] // documentation missing in model
|
1828 + | pub fn range_short_list_header(
|
1829 + | mut self,
|
1830 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
1831 + | ) -> Self {
|
1832 + | self.range_short_list_header = input;
|
1833 + | self
|
1834 + | }
|
1835 + | #[allow(missing_docs)] // documentation missing in model
|
1836 + | pub fn range_integer_list_header(
|
1837 + | mut self,
|
1838 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
1839 + | ) -> Self {
|
1840 + | self.range_integer_list_header = input;
|
1841 + | self
|
1842 + | }
|
1843 + | #[allow(missing_docs)] // documentation missing in model
|
1844 + | pub fn range_long_list_header(
|
1845 + | mut self,
|
1846 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
1847 + | ) -> Self {
|
1848 + | self.range_long_list_header = input;
|
1849 + | self
|
1850 + | }
|
1851 + | #[allow(missing_docs)] // documentation missing in model
|
1852 + | pub fn length_string_query(
|
1853 + | mut self,
|
1854 + | input: ::std::option::Option<::std::string::String>,
|
1855 + | ) -> Self {
|
1856 + | self.length_string_query = input;
|
1857 + | self
|
1858 + | }
|
1859 + | #[allow(missing_docs)] // documentation missing in model
|
1860 + | pub fn range_byte_query(mut self, input: i8) -> Self {
|
1861 + | self.range_byte_query = Some(input);
|
1862 + | self
|
1863 + | }
|
1864 + | #[allow(missing_docs)] // documentation missing in model
|
1865 + | pub fn range_short_query(mut self, input: i16) -> Self {
|
1866 + | self.range_short_query = Some(input);
|
1867 + | self
|
1868 + | }
|
1869 + | #[allow(missing_docs)] // documentation missing in model
|
1870 + | pub fn range_integer_query(mut self, input: i32) -> Self {
|
1871 + | self.range_integer_query = Some(input);
|
1872 + | self
|
1873 + | }
|
1874 + | #[allow(missing_docs)] // documentation missing in model
|
1875 + | pub fn range_long_query(mut self, input: i64) -> Self {
|
1876 + | self.range_long_query = Some(input);
|
1877 + | self
|
1878 + | }
|
1879 + | #[allow(missing_docs)] // documentation missing in model
|
1880 + | pub fn enum_string_query(
|
1881 + | mut self,
|
1882 + | input: ::std::option::Option<crate::model::EnumString>,
|
1883 + | ) -> Self {
|
1884 + | self.enum_string_query = input;
|
1885 + | self
|
1886 + | }
|
1887 + | #[allow(missing_docs)] // documentation missing in model
|
1888 + | pub fn length_string_list_query(
|
1889 + | mut self,
|
1890 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1891 + | ) -> Self {
|
1892 + | self.length_string_list_query = input;
|
1893 + | self
|
1894 + | }
|
1895 + | #[allow(missing_docs)] // documentation missing in model
|
1896 + | pub fn length_list_pattern_string_query(
|
1897 + | mut self,
|
1898 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1899 + | ) -> Self {
|
1900 + | self.length_list_pattern_string_query = input;
|
1901 + | self
|
1902 + | }
|
1903 + | #[allow(missing_docs)] // documentation missing in model
|
1904 + | pub fn length_string_set_query(
|
1905 + | mut self,
|
1906 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1907 + | ) -> Self {
|
1908 + | self.length_string_set_query = input;
|
1909 + | self
|
1910 + | }
|
1911 + | #[allow(missing_docs)] // documentation missing in model
|
1912 + | pub fn range_byte_list_query(
|
1913 + | mut self,
|
1914 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
1915 + | ) -> Self {
|
1916 + | self.range_byte_list_query = input;
|
1917 + | self
|
1918 + | }
|
1919 + | #[allow(missing_docs)] // documentation missing in model
|
1920 + | pub fn range_short_list_query(
|
1921 + | mut self,
|
1922 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
1923 + | ) -> Self {
|
1924 + | self.range_short_list_query = input;
|
1925 + | self
|
1926 + | }
|
1927 + | #[allow(missing_docs)] // documentation missing in model
|
1928 + | pub fn range_integer_list_query(
|
1929 + | mut self,
|
1930 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
1931 + | ) -> Self {
|
1932 + | self.range_integer_list_query = input;
|
1933 + | self
|
1934 + | }
|
1935 + | #[allow(missing_docs)] // documentation missing in model
|
1936 + | pub fn range_long_list_query(
|
1937 + | mut self,
|
1938 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
1939 + | ) -> Self {
|
1940 + | self.range_long_list_query = input;
|
1941 + | self
|
1942 + | }
|
1943 + | #[allow(missing_docs)] // documentation missing in model
|
1944 + | pub fn range_byte_set_query(
|
1945 + | mut self,
|
1946 + | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
1947 + | ) -> Self {
|
1948 + | self.range_byte_set_query = input;
|
1949 + | self
|
1950 + | }
|
1951 + | #[allow(missing_docs)] // documentation missing in model
|
1952 + | pub fn range_short_set_query(
|
1953 + | mut self,
|
1954 + | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
1955 + | ) -> Self {
|
1956 + | self.range_short_set_query = input;
|
1957 + | self
|
1958 + | }
|
1959 + | #[allow(missing_docs)] // documentation missing in model
|
1960 + | pub fn range_integer_set_query(
|
1961 + | mut self,
|
1962 + | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
1963 + | ) -> Self {
|
1964 + | self.range_integer_set_query = input;
|
1965 + | self
|
1966 + | }
|
1967 + | #[allow(missing_docs)] // documentation missing in model
|
1968 + | pub fn range_long_set_query(
|
1969 + | mut self,
|
1970 + | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
1971 + | ) -> Self {
|
1972 + | self.range_long_set_query = input;
|
1973 + | self
|
1974 + | }
|
1975 + | #[allow(missing_docs)] // documentation missing in model
|
1976 + | pub fn enum_string_list_query(
|
1977 + | mut self,
|
1978 + | input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
1979 + | ) -> Self {
|
1980 + | self.enum_string_list_query = input;
|
1981 + | self
|
1982 + | }
|
1983 + | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput).
|
1984 + | ///
|
1985 + | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput) if you do not provide a value for all non-`Option`al members.
|
1986 + | ///
|
1987 + | pub fn build(
|
1988 + | self,
|
1989 + | ) -> Result<crate::output::ConstrainedHttpBoundShapesOperationOutput, ConstraintViolation>
|
1990 + | {
|
1991 + | self.build_enforcing_required_and_enum_traits()
|
1992 + | }
|
1993 + | fn build_enforcing_required_and_enum_traits(
|
1994 + | self,
|
1995 + | ) -> Result<crate::output::ConstrainedHttpBoundShapesOperationOutput, ConstraintViolation>
|
1996 + | {
|
1997 + | Ok(crate::output::ConstrainedHttpBoundShapesOperationOutput {
|
1998 + | length_string_label: self
|
1999 + | .length_string_label
|
2000 + | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
2001 + | range_integer_label: self.range_integer_label.unwrap_or(0i32),
|
2002 + | range_short_label: self.range_short_label.unwrap_or(0i16),
|
2003 + | range_long_label: self.range_long_label.unwrap_or(0i64),
|
2004 + | range_byte_label: self.range_byte_label.unwrap_or(0i8),
|
2005 + | enum_string_label: self
|
2006 + | .enum_string_label
|
2007 + | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
2008 + | length_string_header_map: self
|
2009 + | .length_string_header_map
|
2010 + | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
2011 + | length_string_header: self.length_string_header,
|
2012 + | range_integer_header: self.range_integer_header.unwrap_or(0i32),
|
2013 + | range_short_header: self.range_short_header.unwrap_or(0i16),
|
2014 + | range_long_header: self.range_long_header.unwrap_or(0i64),
|
2015 + | range_byte_header: self.range_byte_header.unwrap_or(0i8),
|
2016 + | length_string_set_header: self.length_string_set_header,
|
2017 + | list_length_string_header: self.list_length_string_header,
|
2018 + | length_list_pattern_string_header: self.length_list_pattern_string_header,
|
2019 + | length_set_pattern_string_header: self.length_set_pattern_string_header,
|
2020 + | range_byte_set_header: self.range_byte_set_header,
|
2021 + | range_short_set_header: self.range_short_set_header,
|
2022 + | range_integer_set_header: self.range_integer_set_header,
|
2023 + | range_long_set_header: self.range_long_set_header,
|
2024 + | range_byte_list_header: self.range_byte_list_header,
|
2025 + | range_short_list_header: self.range_short_list_header,
|
2026 + | range_integer_list_header: self.range_integer_list_header,
|
2027 + | range_long_list_header: self.range_long_list_header,
|
2028 + | length_string_query: self.length_string_query,
|
2029 + | range_byte_query: self.range_byte_query.unwrap_or(0i8),
|
2030 + | range_short_query: self.range_short_query.unwrap_or(0i16),
|
2031 + | range_integer_query: self.range_integer_query.unwrap_or(0i32),
|
2032 + | range_long_query: self.range_long_query.unwrap_or(0i64),
|
2033 + | enum_string_query: self.enum_string_query,
|
2034 + | length_string_list_query: self.length_string_list_query,
|
2035 + | length_list_pattern_string_query: self.length_list_pattern_string_query,
|
2036 + | length_string_set_query: self.length_string_set_query,
|
2037 + | range_byte_list_query: self.range_byte_list_query,
|
2038 + | range_short_list_query: self.range_short_list_query,
|
2039 + | range_integer_list_query: self.range_integer_list_query,
|
2040 + | range_long_list_query: self.range_long_list_query,
|
2041 + | range_byte_set_query: self.range_byte_set_query,
|
2042 + | range_short_set_query: self.range_short_set_query,
|
2043 + | range_integer_set_query: self.range_integer_set_query,
|
2044 + | range_long_set_query: self.range_long_set_query,
|
2045 + | enum_string_list_query: self.enum_string_list_query,
|
2046 + | })
|
2047 + | }
|
2048 + | }
|
2049 + | }
|
2050 + | /// See [`ConstrainedShapesOnlyInOutputOperationOutput`](crate::output::ConstrainedShapesOnlyInOutputOperationOutput).
|
2051 + | pub mod constrained_shapes_only_in_output_operation_output {
|
2052 + |
|
2053 + | impl ::std::convert::From<Builder> for crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
2054 + | fn from(builder: Builder) -> Self {
|
2055 + | builder.build()
|
2056 + | }
|
2057 + | }
|
2058 + | /// A builder for [`ConstrainedShapesOnlyInOutputOperationOutput`](crate::output::ConstrainedShapesOnlyInOutputOperationOutput).
|
2059 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2060 + | pub struct Builder {
|
2061 + | pub(crate) list:
|
2062 + | ::std::option::Option<::std::vec::Vec<crate::model::ConstrainedUnionInOutput>>,
|
2063 + | pub(crate) map: ::std::option::Option<
|
2064 + | ::std::collections::HashMap<
|
2065 + | ::std::string::String,
|
2066 + | crate::model::TransitivelyConstrainedStructureInOutput,
|
2067 + | >,
|
2068 + | >,
|
2069 + | pub(crate) union: ::std::option::Option<crate::model::ConstrainedUnionInOutput>,
|
2070 + | }
|
2071 + | impl Builder {
|
2072 + | #[allow(missing_docs)] // documentation missing in model
|
2073 + | pub fn list(
|
2074 + | mut self,
|
2075 + | input: ::std::option::Option<::std::vec::Vec<crate::model::ConstrainedUnionInOutput>>,
|
2076 + | ) -> Self {
|
2077 + | self.list = input;
|
2078 + | self
|
2079 + | }
|
2080 + | #[allow(missing_docs)] // documentation missing in model
|
2081 + | pub fn map(
|
2082 + | mut self,
|
2083 + | input: ::std::option::Option<
|
2084 + | ::std::collections::HashMap<
|
2085 + | ::std::string::String,
|
2086 + | crate::model::TransitivelyConstrainedStructureInOutput,
|
2087 + | >,
|
2088 + | >,
|
2089 + | ) -> Self {
|
2090 + | self.map = input;
|
2091 + | self
|
2092 + | }
|
2093 + | #[allow(missing_docs)] // documentation missing in model
|
2094 + | pub fn union(
|
2095 + | mut self,
|
2096 + | input: ::std::option::Option<crate::model::ConstrainedUnionInOutput>,
|
2097 + | ) -> Self {
|
2098 + | self.union = input;
|
2099 + | self
|
2100 + | }
|
2101 + | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationOutput`](crate::output::ConstrainedShapesOnlyInOutputOperationOutput).
|
2102 + | pub fn build(self) -> crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
2103 + | self.build_enforcing_required_and_enum_traits()
|
2104 + | }
|
2105 + | fn build_enforcing_required_and_enum_traits(
|
2106 + | self,
|
2107 + | ) -> crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
2108 + | crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
2109 + | list: self.list,
|
2110 + | map: self.map,
|
2111 + | union: self.union,
|
2112 + | }
|
2113 + | }
|
2114 + | }
|
2115 + | }
|
2116 + | /// See [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
2117 + | pub mod constrained_shapes_operation_output {
|
2118 + |
|
2119 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2120 + | /// Holds one variant for each of the ways the builder can fail.
|
2121 + | #[allow(clippy::enum_variant_names)]
|
2122 + | pub enum ConstraintViolation {
|
2123 + | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationOutput`.
|
2124 + | MissingConA,
|
2125 + | }
|
2126 + | impl ::std::fmt::Display for ConstraintViolation {
|
2127 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2128 + | match self {
|
2129 + | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationOutput`"),
|
2130 + | }
|
2131 + | }
|
2132 + | }
|
2133 + | impl ::std::error::Error for ConstraintViolation {}
|
2134 + | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedShapesOperationOutput {
|
2135 + | type Error = ConstraintViolation;
|
2136 + |
|
2137 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2138 + | builder.build()
|
2139 + | }
|
2140 + | }
|
2141 + | /// A builder for [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
2142 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2143 + | pub struct Builder {
|
2144 + | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
2145 + | }
|
2146 + | impl Builder {
|
2147 + | #[allow(missing_docs)] // documentation missing in model
|
2148 + | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
2149 + | self.con_a = Some(input);
|
2150 + | self
|
2151 + | }
|
2152 + | /// Consumes the builder and constructs a [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
2153 + | ///
|
2154 + | /// The builder fails to construct a [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput) if you do not provide a value for all non-`Option`al members.
|
2155 + | ///
|
2156 + | pub fn build(
|
2157 + | self,
|
2158 + | ) -> Result<crate::output::ConstrainedShapesOperationOutput, ConstraintViolation> {
|
2159 + | self.build_enforcing_required_and_enum_traits()
|
2160 + | }
|
2161 + | fn build_enforcing_required_and_enum_traits(
|
2162 + | self,
|
2163 + | ) -> Result<crate::output::ConstrainedShapesOperationOutput, ConstraintViolation> {
|
2164 + | Ok(crate::output::ConstrainedShapesOperationOutput {
|
2165 + | con_a: self.con_a.ok_or(ConstraintViolation::MissingConA)?,
|
2166 + | })
|
2167 + | }
|
2168 + | }
|
2169 + | }
|