1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | #[allow(missing_docs)] // documentation missing in model
|
3 + | #[derive(
|
4 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5 + | )]
|
6 + | pub struct HttpQueryParamsOnlyOperationOutput {}
|
7 + | impl HttpQueryParamsOnlyOperationOutput {
|
8 + | /// Creates a new builder-style object to manufacture [`HttpQueryParamsOnlyOperationOutput`](crate::output::HttpQueryParamsOnlyOperationOutput).
|
9 + | pub fn builder() -> crate::output::http_query_params_only_operation_output::Builder {
|
10 + | crate::output::http_query_params_only_operation_output::Builder::default()
|
11 + | }
|
12 + | }
|
13 + |
|
14 + | #[allow(missing_docs)] // documentation missing in model
|
15 + | #[derive(
|
16 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
17 + | )]
|
18 + | pub struct QueryPrecedenceOutput {}
|
19 + | impl QueryPrecedenceOutput {
|
20 + | /// Creates a new builder-style object to manufacture [`QueryPrecedenceOutput`](crate::output::QueryPrecedenceOutput).
|
21 + | pub fn builder() -> crate::output::query_precedence_output::Builder {
|
22 + | crate::output::query_precedence_output::Builder::default()
|
23 + | }
|
24 + | }
|
25 + |
|
26 + | #[allow(missing_docs)] // documentation missing in model
|
27 + | #[derive(
|
28 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
29 + | )]
|
30 + | pub struct EmptyStructWithContentOnWireOpOutput {
|
31 + | #[allow(missing_docs)] // documentation missing in model
|
32 + | pub empty: ::std::option::Option<crate::model::EmptyStruct>,
|
33 + | }
|
34 + | impl EmptyStructWithContentOnWireOpOutput {
|
35 + | #[allow(missing_docs)] // documentation missing in model
|
36 + | pub fn empty(&self) -> ::std::option::Option<&crate::model::EmptyStruct> {
|
37 + | self.empty.as_ref()
|
38 + | }
|
39 + | }
|
40 + | impl EmptyStructWithContentOnWireOpOutput {
|
41 + | /// Creates a new builder-style object to manufacture [`EmptyStructWithContentOnWireOpOutput`](crate::output::EmptyStructWithContentOnWireOpOutput).
|
42 + | pub fn builder() -> crate::output::empty_struct_with_content_on_wire_op_output::Builder {
|
43 + | crate::output::empty_struct_with_content_on_wire_op_output::Builder::default()
|
44 + | }
|
45 + | }
|
46 + |
|
47 + | #[allow(missing_docs)] // documentation missing in model
|
48 + | #[derive(
|
49 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
50 + | )]
|
51 + | pub struct CaseInsensitiveErrorOperationOutput {}
|
52 + | impl CaseInsensitiveErrorOperationOutput {
|
53 + | /// Creates a new builder-style object to manufacture [`CaseInsensitiveErrorOperationOutput`](crate::output::CaseInsensitiveErrorOperationOutput).
|
54 + | pub fn builder() -> crate::output::case_insensitive_error_operation_output::Builder {
|
55 + | crate::output::case_insensitive_error_operation_output::Builder::default()
|
56 + | }
|
57 + | }
|
58 + |
|
59 + | #[allow(missing_docs)] // documentation missing in model
|
60 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
61 + | pub struct NullInNonSparseOutput {
|
62 + | #[allow(missing_docs)] // documentation missing in model
|
63 + | pub list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
64 + | #[allow(missing_docs)] // documentation missing in model
|
65 + | pub map: ::std::option::Option<
|
66 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
67 + | >,
|
68 + | #[allow(missing_docs)] // documentation missing in model
|
69 + | pub union: ::std::option::Option<crate::model::SingleElementUnion>,
|
70 + | }
|
71 + | impl NullInNonSparseOutput {
|
72 + | #[allow(missing_docs)] // documentation missing in model
|
73 + | pub fn list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
74 + | self.list.as_deref()
|
75 + | }
|
76 + | #[allow(missing_docs)] // documentation missing in model
|
77 + | pub fn map(
|
78 + | &self,
|
79 + | ) -> ::std::option::Option<
|
80 + | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
81 + | > {
|
82 + | self.map.as_ref()
|
83 + | }
|
84 + | #[allow(missing_docs)] // documentation missing in model
|
85 + | pub fn union(&self) -> ::std::option::Option<&crate::model::SingleElementUnion> {
|
86 + | self.union.as_ref()
|
87 + | }
|
88 + | }
|
89 + | impl NullInNonSparseOutput {
|
90 + | /// Creates a new builder-style object to manufacture [`NullInNonSparseOutput`](crate::output::NullInNonSparseOutput).
|
91 + | pub fn builder() -> crate::output::null_in_non_sparse_output::Builder {
|
92 + | crate::output::null_in_non_sparse_output::Builder::default()
|
93 + | }
|
94 + | }
|
95 + |
|
96 + | #[allow(missing_docs)] // documentation missing in model
|
97 + | #[derive(
|
98 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
99 + | )]
|
100 + | pub struct EscapedStringValuesOutput {
|
101 + | #[allow(missing_docs)] // documentation missing in model
|
102 + | pub r#enum: ::std::option::Option<crate::model::EnumWithEscapedChars>,
|
103 + | #[allow(missing_docs)] // documentation missing in model
|
104 + | pub some_string: ::std::option::Option<::std::string::String>,
|
105 + | }
|
106 + | impl EscapedStringValuesOutput {
|
107 + | #[allow(missing_docs)] // documentation missing in model
|
108 + | pub fn r#enum(&self) -> ::std::option::Option<&crate::model::EnumWithEscapedChars> {
|
109 + | self.r#enum.as_ref()
|
110 + | }
|
111 + | #[allow(missing_docs)] // documentation missing in model
|
112 + | pub fn some_string(&self) -> ::std::option::Option<&str> {
|
113 + | self.some_string.as_deref()
|
114 + | }
|
115 + | }
|
116 + | impl EscapedStringValuesOutput {
|
117 + | /// Creates a new builder-style object to manufacture [`EscapedStringValuesOutput`](crate::output::EscapedStringValuesOutput).
|
118 + | pub fn builder() -> crate::output::escaped_string_values_output::Builder {
|
119 + | crate::output::escaped_string_values_output::Builder::default()
|
120 + | }
|
121 + | }
|
122 + |
|
123 + | #[allow(missing_docs)] // documentation missing in model
|
124 + | #[derive(
|
125 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
126 + | )]
|
127 + | pub struct PrimitiveIntOpOutput {
|
128 + | #[allow(missing_docs)] // documentation missing in model
|
129 + | pub value: i32,
|
130 + | }
|
131 + | impl PrimitiveIntOpOutput {
|
132 + | #[allow(missing_docs)] // documentation missing in model
|
133 + | pub fn value(&self) -> i32 {
|
134 + | self.value
|
135 + | }
|
136 + | }
|
137 + | impl PrimitiveIntOpOutput {
|
138 + | /// Creates a new builder-style object to manufacture [`PrimitiveIntOpOutput`](crate::output::PrimitiveIntOpOutput).
|
139 + | pub fn builder() -> crate::output::primitive_int_op_output::Builder {
|
140 + | crate::output::primitive_int_op_output::Builder::default()
|
141 + | }
|
142 + | }
|
143 + |
|
144 + | #[allow(missing_docs)] // documentation missing in model
|
145 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
146 + | pub struct MapWithEnumKeyOpOutput {
|
147 + | #[allow(missing_docs)] // documentation missing in model
|
148 + | pub map: ::std::option::Option<
|
149 + | ::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
|
150 + | >,
|
151 + | }
|
152 + | impl MapWithEnumKeyOpOutput {
|
153 + | #[allow(missing_docs)] // documentation missing in model
|
154 + | pub fn map(
|
155 + | &self,
|
156 + | ) -> ::std::option::Option<
|
157 + | &::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
|
158 + | > {
|
159 + | self.map.as_ref()
|
160 + | }
|
161 + | }
|
162 + | impl MapWithEnumKeyOpOutput {
|
163 + | /// Creates a new builder-style object to manufacture [`MapWithEnumKeyOpOutput`](crate::output::MapWithEnumKeyOpOutput).
|
164 + | pub fn builder() -> crate::output::map_with_enum_key_op_output::Builder {
|
165 + | crate::output::map_with_enum_key_op_output::Builder::default()
|
166 + | }
|
167 + | }
|
168 + |
|
169 + | #[allow(missing_docs)] // documentation missing in model
|
170 + | #[derive(
|
171 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
172 + | )]
|
173 + | pub struct StatusResponseOutput {
|
174 + | #[allow(missing_docs)] // documentation missing in model
|
175 + | pub field: i32,
|
176 + | }
|
177 + | impl StatusResponseOutput {
|
178 + | #[allow(missing_docs)] // documentation missing in model
|
179 + | pub fn field(&self) -> i32 {
|
180 + | self.field
|
181 + | }
|
182 + | }
|
183 + | impl StatusResponseOutput {
|
184 + | /// Creates a new builder-style object to manufacture [`StatusResponseOutput`](crate::output::StatusResponseOutput).
|
185 + | pub fn builder() -> crate::output::status_response_output::Builder {
|
186 + | crate::output::status_response_output::Builder::default()
|
187 + | }
|
188 + | }
|
189 + |
|
190 + | #[allow(missing_docs)] // documentation missing in model
|
191 + | #[derive(
|
192 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
193 + | )]
|
194 + | pub struct EnumQueryOutput {}
|
195 + | impl EnumQueryOutput {
|
196 + | /// Creates a new builder-style object to manufacture [`EnumQueryOutput`](crate::output::EnumQueryOutput).
|
197 + | pub fn builder() -> crate::output::enum_query_output::Builder {
|
198 + | crate::output::enum_query_output::Builder::default()
|
199 + | }
|
200 + | }
|
201 + |
|
202 + | #[allow(missing_docs)] // documentation missing in model
|
203 + | #[derive(
|
204 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
205 + | )]
|
206 + | pub struct PrimitiveIntHeaderOutput {
|
207 + | #[allow(missing_docs)] // documentation missing in model
|
208 + | pub field: i32,
|
209 + | }
|
210 + | impl PrimitiveIntHeaderOutput {
|
211 + | #[allow(missing_docs)] // documentation missing in model
|
212 + | pub fn field(&self) -> i32 {
|
213 + | self.field
|
214 + | }
|
215 + | }
|
216 + | impl PrimitiveIntHeaderOutput {
|
217 + | /// Creates a new builder-style object to manufacture [`PrimitiveIntHeaderOutput`](crate::output::PrimitiveIntHeaderOutput).
|
218 + | pub fn builder() -> crate::output::primitive_int_header_output::Builder {
|
219 + | crate::output::primitive_int_header_output::Builder::default()
|
220 + | }
|
221 + | }
|
222 + |
|
223 + | #[allow(missing_docs)] // documentation missing in model
|
224 + | #[derive(
|
225 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
226 + | )]
|
227 + | pub struct StringPayloadOutput {
|
228 + | #[allow(missing_docs)] // documentation missing in model
|
229 + | pub payload: ::std::option::Option<::std::string::String>,
|
230 + | }
|
231 + | impl StringPayloadOutput {
|
232 + | #[allow(missing_docs)] // documentation missing in model
|
233 + | pub fn payload(&self) -> ::std::option::Option<&str> {
|
234 + | self.payload.as_deref()
|
235 + | }
|
236 + | }
|
237 + | impl StringPayloadOutput {
|
238 + | /// Creates a new builder-style object to manufacture [`StringPayloadOutput`](crate::output::StringPayloadOutput).
|
239 + | pub fn builder() -> crate::output::string_payload_output::Builder {
|
240 + | crate::output::string_payload_output::Builder::default()
|
241 + | }
|
242 + | }
|
243 + | /// See [`HttpQueryParamsOnlyOperationOutput`](crate::output::HttpQueryParamsOnlyOperationOutput).
|
244 + | pub mod http_query_params_only_operation_output {
|
245 + |
|
246 + | impl ::std::convert::From<Builder> for crate::output::HttpQueryParamsOnlyOperationOutput {
|
247 + | fn from(builder: Builder) -> Self {
|
248 + | builder.build()
|
249 + | }
|
250 + | }
|
251 + | /// A builder for [`HttpQueryParamsOnlyOperationOutput`](crate::output::HttpQueryParamsOnlyOperationOutput).
|
252 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
253 + | pub struct Builder {}
|
254 + | impl Builder {
|
255 + | /// Consumes the builder and constructs a [`HttpQueryParamsOnlyOperationOutput`](crate::output::HttpQueryParamsOnlyOperationOutput).
|
256 + | pub fn build(self) -> crate::output::HttpQueryParamsOnlyOperationOutput {
|
257 + | self.build_enforcing_all_constraints()
|
258 + | }
|
259 + | fn build_enforcing_all_constraints(
|
260 + | self,
|
261 + | ) -> crate::output::HttpQueryParamsOnlyOperationOutput {
|
262 + | crate::output::HttpQueryParamsOnlyOperationOutput {}
|
263 + | }
|
264 + | }
|
265 + | }
|
266 + | /// See [`QueryPrecedenceOutput`](crate::output::QueryPrecedenceOutput).
|
267 + | pub mod query_precedence_output {
|
268 + |
|
269 + | impl ::std::convert::From<Builder> for crate::output::QueryPrecedenceOutput {
|
270 + | fn from(builder: Builder) -> Self {
|
271 + | builder.build()
|
272 + | }
|
273 + | }
|
274 + | /// A builder for [`QueryPrecedenceOutput`](crate::output::QueryPrecedenceOutput).
|
275 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
276 + | pub struct Builder {}
|
277 + | impl Builder {
|
278 + | /// Consumes the builder and constructs a [`QueryPrecedenceOutput`](crate::output::QueryPrecedenceOutput).
|
279 + | pub fn build(self) -> crate::output::QueryPrecedenceOutput {
|
280 + | self.build_enforcing_all_constraints()
|
281 + | }
|
282 + | fn build_enforcing_all_constraints(self) -> crate::output::QueryPrecedenceOutput {
|
283 + | crate::output::QueryPrecedenceOutput {}
|
284 + | }
|
285 + | }
|
286 + | }
|
287 + | /// See [`EmptyStructWithContentOnWireOpOutput`](crate::output::EmptyStructWithContentOnWireOpOutput).
|
288 + | pub mod empty_struct_with_content_on_wire_op_output {
|
289 + |
|
290 + | impl ::std::convert::From<Builder> for crate::output::EmptyStructWithContentOnWireOpOutput {
|
291 + | fn from(builder: Builder) -> Self {
|
292 + | builder.build()
|
293 + | }
|
294 + | }
|
295 + | /// A builder for [`EmptyStructWithContentOnWireOpOutput`](crate::output::EmptyStructWithContentOnWireOpOutput).
|
296 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
297 + | pub struct Builder {
|
298 + | pub(crate) empty: ::std::option::Option<crate::model::EmptyStruct>,
|
299 + | }
|
300 + | impl Builder {
|
301 + | #[allow(missing_docs)] // documentation missing in model
|
302 + | pub fn empty(mut self, input: ::std::option::Option<crate::model::EmptyStruct>) -> Self {
|
303 + | self.empty = input;
|
304 + | self
|
305 + | }
|
306 + | /// Consumes the builder and constructs a [`EmptyStructWithContentOnWireOpOutput`](crate::output::EmptyStructWithContentOnWireOpOutput).
|
307 + | pub fn build(self) -> crate::output::EmptyStructWithContentOnWireOpOutput {
|
308 + | self.build_enforcing_all_constraints()
|
309 + | }
|
310 + | fn build_enforcing_all_constraints(
|
311 + | self,
|
312 + | ) -> crate::output::EmptyStructWithContentOnWireOpOutput {
|
313 + | crate::output::EmptyStructWithContentOnWireOpOutput { empty: self.empty }
|
314 + | }
|
315 + | }
|
316 + | }
|
317 + | /// See [`CaseInsensitiveErrorOperationOutput`](crate::output::CaseInsensitiveErrorOperationOutput).
|
318 + | pub mod case_insensitive_error_operation_output {
|
319 + |
|
320 + | impl ::std::convert::From<Builder> for crate::output::CaseInsensitiveErrorOperationOutput {
|
321 + | fn from(builder: Builder) -> Self {
|
322 + | builder.build()
|
323 + | }
|
324 + | }
|
325 + | /// A builder for [`CaseInsensitiveErrorOperationOutput`](crate::output::CaseInsensitiveErrorOperationOutput).
|
326 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
327 + | pub struct Builder {}
|
328 + | impl Builder {
|
329 + | /// Consumes the builder and constructs a [`CaseInsensitiveErrorOperationOutput`](crate::output::CaseInsensitiveErrorOperationOutput).
|
330 + | pub fn build(self) -> crate::output::CaseInsensitiveErrorOperationOutput {
|
331 + | self.build_enforcing_all_constraints()
|
332 + | }
|
333 + | fn build_enforcing_all_constraints(
|
334 + | self,
|
335 + | ) -> crate::output::CaseInsensitiveErrorOperationOutput {
|
336 + | crate::output::CaseInsensitiveErrorOperationOutput {}
|
337 + | }
|
338 + | }
|
339 + | }
|
340 + | /// See [`NullInNonSparseOutput`](crate::output::NullInNonSparseOutput).
|
341 + | pub mod null_in_non_sparse_output {
|
342 + |
|
343 + | impl ::std::convert::From<Builder> for crate::output::NullInNonSparseOutput {
|
344 + | fn from(builder: Builder) -> Self {
|
345 + | builder.build()
|
346 + | }
|
347 + | }
|
348 + | /// A builder for [`NullInNonSparseOutput`](crate::output::NullInNonSparseOutput).
|
349 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
350 + | pub struct Builder {
|
351 + | pub(crate) list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
352 + | pub(crate) map: ::std::option::Option<
|
353 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
354 + | >,
|
355 + | pub(crate) union: ::std::option::Option<crate::model::SingleElementUnion>,
|
356 + | }
|
357 + | impl Builder {
|
358 + | #[allow(missing_docs)] // documentation missing in model
|
359 + | pub fn list(
|
360 + | mut self,
|
361 + | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
362 + | ) -> Self {
|
363 + | self.list = input;
|
364 + | self
|
365 + | }
|
366 + | #[allow(missing_docs)] // documentation missing in model
|
367 + | pub fn map(
|
368 + | mut self,
|
369 + | input: ::std::option::Option<
|
370 + | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
371 + | >,
|
372 + | ) -> Self {
|
373 + | self.map = input;
|
374 + | self
|
375 + | }
|
376 + | #[allow(missing_docs)] // documentation missing in model
|
377 + | pub fn union(
|
378 + | mut self,
|
379 + | input: ::std::option::Option<crate::model::SingleElementUnion>,
|
380 + | ) -> Self {
|
381 + | self.union = input;
|
382 + | self
|
383 + | }
|
384 + | /// Consumes the builder and constructs a [`NullInNonSparseOutput`](crate::output::NullInNonSparseOutput).
|
385 + | pub fn build(self) -> crate::output::NullInNonSparseOutput {
|
386 + | self.build_enforcing_all_constraints()
|
387 + | }
|
388 + | fn build_enforcing_all_constraints(self) -> crate::output::NullInNonSparseOutput {
|
389 + | crate::output::NullInNonSparseOutput {
|
390 + | list: self.list,
|
391 + | map: self.map,
|
392 + | union: self.union,
|
393 + | }
|
394 + | }
|
395 + | }
|
396 + | }
|
397 + | /// See [`EscapedStringValuesOutput`](crate::output::EscapedStringValuesOutput).
|
398 + | pub mod escaped_string_values_output {
|
399 + |
|
400 + | impl ::std::convert::From<Builder> for crate::output::EscapedStringValuesOutput {
|
401 + | fn from(builder: Builder) -> Self {
|
402 + | builder.build()
|
403 + | }
|
404 + | }
|
405 + | /// A builder for [`EscapedStringValuesOutput`](crate::output::EscapedStringValuesOutput).
|
406 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
407 + | pub struct Builder {
|
408 + | pub(crate) r#enum: ::std::option::Option<crate::model::EnumWithEscapedChars>,
|
409 + | pub(crate) some_string: ::std::option::Option<::std::string::String>,
|
410 + | }
|
411 + | impl Builder {
|
412 + | #[allow(missing_docs)] // documentation missing in model
|
413 + | pub fn r#enum(
|
414 + | mut self,
|
415 + | input: ::std::option::Option<crate::model::EnumWithEscapedChars>,
|
416 + | ) -> Self {
|
417 + | self.r#enum = input;
|
418 + | self
|
419 + | }
|
420 + | #[allow(missing_docs)] // documentation missing in model
|
421 + | pub fn some_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
422 + | self.some_string = input;
|
423 + | self
|
424 + | }
|
425 + | /// Consumes the builder and constructs a [`EscapedStringValuesOutput`](crate::output::EscapedStringValuesOutput).
|
426 + | pub fn build(self) -> crate::output::EscapedStringValuesOutput {
|
427 + | self.build_enforcing_all_constraints()
|
428 + | }
|
429 + | fn build_enforcing_all_constraints(self) -> crate::output::EscapedStringValuesOutput {
|
430 + | crate::output::EscapedStringValuesOutput {
|
431 + | r#enum: self.r#enum,
|
432 + | some_string: self.some_string,
|
433 + | }
|
434 + | }
|
435 + | }
|
436 + | }
|
437 + | /// See [`PrimitiveIntOpOutput`](crate::output::PrimitiveIntOpOutput).
|
438 + | pub mod primitive_int_op_output {
|
439 + |
|
440 + | impl ::std::convert::From<Builder> for crate::output::PrimitiveIntOpOutput {
|
441 + | fn from(builder: Builder) -> Self {
|
442 + | builder.build()
|
443 + | }
|
444 + | }
|
445 + | /// A builder for [`PrimitiveIntOpOutput`](crate::output::PrimitiveIntOpOutput).
|
446 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
447 + | pub struct Builder {
|
448 + | pub(crate) value: ::std::option::Option<i32>,
|
449 + | }
|
450 + | impl Builder {
|
451 + | #[allow(missing_docs)] // documentation missing in model
|
452 + | pub fn value(mut self, input: i32) -> Self {
|
453 + | self.value = Some(input);
|
454 + | self
|
455 + | }
|
456 + | /// Consumes the builder and constructs a [`PrimitiveIntOpOutput`](crate::output::PrimitiveIntOpOutput).
|
457 + | pub fn build(self) -> crate::output::PrimitiveIntOpOutput {
|
458 + | self.build_enforcing_all_constraints()
|
459 + | }
|
460 + | fn build_enforcing_all_constraints(self) -> crate::output::PrimitiveIntOpOutput {
|
461 + | crate::output::PrimitiveIntOpOutput {
|
462 + | value: self.value.unwrap_or(0i32),
|
463 + | }
|
464 + | }
|
465 + | }
|
466 + | }
|
467 + | /// See [`MapWithEnumKeyOpOutput`](crate::output::MapWithEnumKeyOpOutput).
|
468 + | pub mod map_with_enum_key_op_output {
|
469 + |
|
470 + | impl ::std::convert::From<Builder> for crate::output::MapWithEnumKeyOpOutput {
|
471 + | fn from(builder: Builder) -> Self {
|
472 + | builder.build()
|
473 + | }
|
474 + | }
|
475 + | /// A builder for [`MapWithEnumKeyOpOutput`](crate::output::MapWithEnumKeyOpOutput).
|
476 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
477 + | pub struct Builder {
|
478 + | pub(crate) map: ::std::option::Option<
|
479 + | ::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
|
480 + | >,
|
481 + | }
|
482 + | impl Builder {
|
483 + | #[allow(missing_docs)] // documentation missing in model
|
484 + | pub fn map(
|
485 + | mut self,
|
486 + | input: ::std::option::Option<
|
487 + | ::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
|
488 + | >,
|
489 + | ) -> Self {
|
490 + | self.map = input;
|
491 + | self
|
492 + | }
|
493 + | /// Consumes the builder and constructs a [`MapWithEnumKeyOpOutput`](crate::output::MapWithEnumKeyOpOutput).
|
494 + | pub fn build(self) -> crate::output::MapWithEnumKeyOpOutput {
|
495 + | self.build_enforcing_all_constraints()
|
496 + | }
|
497 + | fn build_enforcing_all_constraints(self) -> crate::output::MapWithEnumKeyOpOutput {
|
498 + | crate::output::MapWithEnumKeyOpOutput { map: self.map }
|
499 + | }
|
500 + | }
|
501 + | }
|
502 + | /// See [`StatusResponseOutput`](crate::output::StatusResponseOutput).
|
503 + | pub mod status_response_output {
|
504 + |
|
505 + | impl ::std::convert::From<Builder> for crate::output::StatusResponseOutput {
|
506 + | fn from(builder: Builder) -> Self {
|
507 + | builder.build()
|
508 + | }
|
509 + | }
|
510 + | /// A builder for [`StatusResponseOutput`](crate::output::StatusResponseOutput).
|
511 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
512 + | pub struct Builder {
|
513 + | pub(crate) field: ::std::option::Option<i32>,
|
514 + | }
|
515 + | impl Builder {
|
516 + | #[allow(missing_docs)] // documentation missing in model
|
517 + | pub fn field(mut self, input: i32) -> Self {
|
518 + | self.field = Some(input);
|
519 + | self
|
520 + | }
|
521 + | /// Consumes the builder and constructs a [`StatusResponseOutput`](crate::output::StatusResponseOutput).
|
522 + | pub fn build(self) -> crate::output::StatusResponseOutput {
|
523 + | self.build_enforcing_all_constraints()
|
524 + | }
|
525 + | fn build_enforcing_all_constraints(self) -> crate::output::StatusResponseOutput {
|
526 + | crate::output::StatusResponseOutput {
|
527 + | field: self.field.unwrap_or(0i32),
|
528 + | }
|
529 + | }
|
530 + | }
|
531 + | }
|
532 + | /// See [`EnumQueryOutput`](crate::output::EnumQueryOutput).
|
533 + | pub mod enum_query_output {
|
534 + |
|
535 + | impl ::std::convert::From<Builder> for crate::output::EnumQueryOutput {
|
536 + | fn from(builder: Builder) -> Self {
|
537 + | builder.build()
|
538 + | }
|
539 + | }
|
540 + | /// A builder for [`EnumQueryOutput`](crate::output::EnumQueryOutput).
|
541 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
542 + | pub struct Builder {}
|
543 + | impl Builder {
|
544 + | /// Consumes the builder and constructs a [`EnumQueryOutput`](crate::output::EnumQueryOutput).
|
545 + | pub fn build(self) -> crate::output::EnumQueryOutput {
|
546 + | self.build_enforcing_all_constraints()
|
547 + | }
|
548 + | fn build_enforcing_all_constraints(self) -> crate::output::EnumQueryOutput {
|
549 + | crate::output::EnumQueryOutput {}
|
550 + | }
|
551 + | }
|
552 + | }
|
553 + | /// See [`PrimitiveIntHeaderOutput`](crate::output::PrimitiveIntHeaderOutput).
|
554 + | pub mod primitive_int_header_output {
|
555 + |
|
556 + | impl ::std::convert::From<Builder> for crate::output::PrimitiveIntHeaderOutput {
|
557 + | fn from(builder: Builder) -> Self {
|
558 + | builder.build()
|
559 + | }
|
560 + | }
|
561 + | /// A builder for [`PrimitiveIntHeaderOutput`](crate::output::PrimitiveIntHeaderOutput).
|
562 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
563 + | pub struct Builder {
|
564 + | pub(crate) field: ::std::option::Option<i32>,
|
565 + | }
|
566 + | impl Builder {
|
567 + | #[allow(missing_docs)] // documentation missing in model
|
568 + | pub fn field(mut self, input: i32) -> Self {
|
569 + | self.field = Some(input);
|
570 + | self
|
571 + | }
|
572 + | /// Consumes the builder and constructs a [`PrimitiveIntHeaderOutput`](crate::output::PrimitiveIntHeaderOutput).
|
573 + | pub fn build(self) -> crate::output::PrimitiveIntHeaderOutput {
|
574 + | self.build_enforcing_all_constraints()
|
575 + | }
|
576 + | fn build_enforcing_all_constraints(self) -> crate::output::PrimitiveIntHeaderOutput {
|
577 + | crate::output::PrimitiveIntHeaderOutput {
|
578 + | field: self.field.unwrap_or(0i32),
|
579 + | }
|
580 + | }
|
581 + | }
|
582 + | }
|
583 + | /// See [`StringPayloadOutput`](crate::output::StringPayloadOutput).
|
584 + | pub mod string_payload_output {
|
585 + |
|
586 + | impl ::std::convert::From<Builder> for crate::output::StringPayloadOutput {
|
587 + | fn from(builder: Builder) -> Self {
|
588 + | builder.build()
|
589 + | }
|
590 + | }
|
591 + | /// A builder for [`StringPayloadOutput`](crate::output::StringPayloadOutput).
|
592 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
593 + | pub struct Builder {
|
594 + | pub(crate) payload: ::std::option::Option<::std::string::String>,
|
595 + | }
|
596 + | impl Builder {
|
597 + | #[allow(missing_docs)] // documentation missing in model
|
598 + | pub fn payload(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
599 + | self.payload = input;
|
600 + | self
|
601 + | }
|
602 + | /// Consumes the builder and constructs a [`StringPayloadOutput`](crate::output::StringPayloadOutput).
|
603 + | pub fn build(self) -> crate::output::StringPayloadOutput {
|
604 + | self.build_enforcing_all_constraints()
|
605 + | }
|
606 + | fn build_enforcing_all_constraints(self) -> crate::output::StringPayloadOutput {
|
607 + | crate::output::StringPayloadOutput {
|
608 + | payload: self.payload,
|
609 + | }
|
610 + | }
|
611 + | }
|
612 + | }
|