1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* CborSerializerGenerator.kt:228 */
|
2 3 | pub fn ser_operation_with_defaults_output_output_output(
|
3 4 | value: &crate::output::OperationWithDefaultsOutput,
|
4 5 | ) -> ::std::result::Result<
|
5 6 | ::std::vec::Vec<u8>,
|
6 7 | ::aws_smithy_types::error::operation::SerializationError,
|
7 8 | > {
|
9 + | /* CborSerializerGenerator.kt:233 */
|
8 10 | let mut encoder = ::aws_smithy_cbor::Encoder::new(::std::vec::Vec::new());
|
11 + | /* CborSerializerGenerator.kt:235 */
|
9 12 | {
|
13 + | /* CborSerializerGenerator.kt:236 */
|
10 14 | let encoder = &mut encoder;
|
15 + | /* CborSerializerGenerator.kt:403 */
|
11 16 | crate::protocol_serde::shape_operation_with_defaults_output::ser_operation_with_defaults_output_output(encoder, value )?;
|
17 + | /* CborSerializerGenerator.kt:235 */
|
12 18 | }
|
19 + | /* CborSerializerGenerator.kt:242 */
|
13 20 | ::std::result::Result::Ok(encoder.into_writer())
|
21 + | /* CborSerializerGenerator.kt:228 */
|
14 22 | }
|
15 23 |
|
24 + | /* CborSerializerGenerator.kt:369 */
|
16 25 | pub fn ser_operation_with_defaults_output_output(
|
17 26 | encoder: &mut ::aws_smithy_cbor::Encoder,
|
18 27 | #[allow(unused)] input: &crate::output::OperationWithDefaultsOutput,
|
19 28 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
|
29 + | /* CborSerializerGenerator.kt:377 */
|
20 30 | encoder.begin_map();
|
31 + | /* SerializerUtil.kt:46 */
|
21 32 | {
|
33 + | /* CborSerializerGenerator.kt:462 */
|
22 34 | encoder
|
23 35 | .str("defaultString")
|
24 36 | .str(input.default_string.as_str());
|
37 + | /* SerializerUtil.kt:46 */
|
25 38 | }
|
39 + | /* SerializerUtil.kt:46 */
|
26 40 | {
|
41 + | /* CborSerializerGenerator.kt:460 */
|
27 42 | encoder.str("defaultBoolean").boolean(input.default_boolean);
|
43 + | /* SerializerUtil.kt:46 */
|
28 44 | }
|
45 + | /* SerializerUtil.kt:46 */
|
29 46 | {
|
47 + | /* CborSerializerGenerator.kt:486 */
|
30 48 | encoder.str("defaultList");
|
49 + | /* CborSerializerGenerator.kt:504 */
|
31 50 | encoder.array((input.default_list).len());
|
51 + | /* CborSerializerGenerator.kt:506 */
|
32 52 | for item_1 in &input.default_list {
|
53 + | /* SerializerUtil.kt:42 */
|
33 54 | {
|
55 + | /* CborSerializerGenerator.kt:462 */
|
34 56 | encoder.str(item_1.as_str());
|
57 + | /* SerializerUtil.kt:42 */
|
35 58 | }
|
59 + | /* CborSerializerGenerator.kt:506 */
|
36 60 | }
|
61 + | /* SerializerUtil.kt:46 */
|
37 62 | }
|
63 + | /* SerializerUtil.kt:46 */
|
38 64 | {
|
65 + | /* CborSerializerGenerator.kt:472 */
|
39 66 | encoder
|
40 67 | .str("defaultTimestamp")
|
41 68 | .timestamp(&input.default_timestamp);
|
69 + | /* SerializerUtil.kt:46 */
|
42 70 | }
|
71 + | /* SerializerUtil.kt:46 */
|
43 72 | {
|
73 + | /* CborSerializerGenerator.kt:459 */
|
44 74 | encoder.str("defaultBlob").blob(&input.default_blob);
|
75 + | /* SerializerUtil.kt:46 */
|
45 76 | }
|
77 + | /* SerializerUtil.kt:46 */
|
46 78 | {
|
79 + | /* CborSerializerGenerator.kt:464 */
|
47 80 | encoder.str("defaultByte").byte(input.default_byte);
|
81 + | /* SerializerUtil.kt:46 */
|
48 82 | }
|
83 + | /* SerializerUtil.kt:46 */
|
49 84 | {
|
85 + | /* CborSerializerGenerator.kt:465 */
|
50 86 | encoder.str("defaultShort").short(input.default_short);
|
87 + | /* SerializerUtil.kt:46 */
|
51 88 | }
|
89 + | /* SerializerUtil.kt:46 */
|
52 90 | {
|
91 + | /* CborSerializerGenerator.kt:466 */
|
53 92 | encoder.str("defaultInteger").integer(input.default_integer);
|
93 + | /* SerializerUtil.kt:46 */
|
54 94 | }
|
95 + | /* SerializerUtil.kt:46 */
|
55 96 | {
|
97 + | /* CborSerializerGenerator.kt:467 */
|
56 98 | encoder.str("defaultLong").long(input.default_long);
|
99 + | /* SerializerUtil.kt:46 */
|
57 100 | }
|
101 + | /* SerializerUtil.kt:46 */
|
58 102 | {
|
103 + | /* CborSerializerGenerator.kt:469 */
|
59 104 | encoder.str("defaultFloat").float(input.default_float);
|
105 + | /* SerializerUtil.kt:46 */
|
60 106 | }
|
107 + | /* SerializerUtil.kt:46 */
|
61 108 | {
|
109 + | /* CborSerializerGenerator.kt:470 */
|
62 110 | encoder.str("defaultDouble").double(input.default_double);
|
111 + | /* SerializerUtil.kt:46 */
|
63 112 | }
|
113 + | /* SerializerUtil.kt:46 */
|
64 114 | {
|
115 + | /* CborSerializerGenerator.kt:486 */
|
65 116 | encoder.str("defaultMap");
|
117 + | /* CborSerializerGenerator.kt:517 */
|
66 118 | encoder.map((input.default_map).len());
|
119 + | /* CborSerializerGenerator.kt:518 */
|
67 120 | for (key_2, value_3) in &input.default_map {
|
121 + | /* SerializerUtil.kt:42 */
|
68 122 | {
|
123 + | /* CborSerializerGenerator.kt:462 */
|
69 124 | encoder.str(key_2.as_str()).str(value_3.as_str());
|
125 + | /* SerializerUtil.kt:42 */
|
70 126 | }
|
127 + | /* CborSerializerGenerator.kt:518 */
|
71 128 | }
|
129 + | /* SerializerUtil.kt:46 */
|
72 130 | }
|
131 + | /* SerializerUtil.kt:46 */
|
73 132 | {
|
133 + | /* CborSerializerGenerator.kt:462 */
|
74 134 | encoder.str("defaultEnum").str(input.default_enum.as_str());
|
135 + | /* SerializerUtil.kt:46 */
|
75 136 | }
|
137 + | /* SerializerUtil.kt:46 */
|
76 138 | {
|
139 + | /* CborSerializerGenerator.kt:466 */
|
77 140 | encoder
|
78 141 | .str("defaultIntEnum")
|
79 142 | .integer(input.default_int_enum);
|
143 + | /* SerializerUtil.kt:46 */
|
80 144 | }
|
145 + | /* SerializerUtil.kt:46 */
|
81 146 | {
|
147 + | /* CborSerializerGenerator.kt:462 */
|
82 148 | encoder.str("emptyString").str(input.empty_string.as_str());
|
149 + | /* SerializerUtil.kt:46 */
|
83 150 | }
|
151 + | /* SerializerUtil.kt:46 */
|
84 152 | {
|
153 + | /* CborSerializerGenerator.kt:460 */
|
85 154 | encoder.str("falseBoolean").boolean(input.false_boolean);
|
155 + | /* SerializerUtil.kt:46 */
|
86 156 | }
|
157 + | /* SerializerUtil.kt:46 */
|
87 158 | {
|
159 + | /* CborSerializerGenerator.kt:459 */
|
88 160 | encoder.str("emptyBlob").blob(&input.empty_blob);
|
161 + | /* SerializerUtil.kt:46 */
|
89 162 | }
|
163 + | /* SerializerUtil.kt:46 */
|
90 164 | {
|
165 + | /* CborSerializerGenerator.kt:464 */
|
91 166 | encoder.str("zeroByte").byte(input.zero_byte);
|
167 + | /* SerializerUtil.kt:46 */
|
92 168 | }
|
169 + | /* SerializerUtil.kt:46 */
|
93 170 | {
|
171 + | /* CborSerializerGenerator.kt:465 */
|
94 172 | encoder.str("zeroShort").short(input.zero_short);
|
173 + | /* SerializerUtil.kt:46 */
|
95 174 | }
|
175 + | /* SerializerUtil.kt:46 */
|
96 176 | {
|
177 + | /* CborSerializerGenerator.kt:466 */
|
97 178 | encoder.str("zeroInteger").integer(input.zero_integer);
|
179 + | /* SerializerUtil.kt:46 */
|
98 180 | }
|
181 + | /* SerializerUtil.kt:46 */
|
99 182 | {
|
183 + | /* CborSerializerGenerator.kt:467 */
|
100 184 | encoder.str("zeroLong").long(input.zero_long);
|
185 + | /* SerializerUtil.kt:46 */
|
101 186 | }
|
187 + | /* SerializerUtil.kt:46 */
|
102 188 | {
|
189 + | /* CborSerializerGenerator.kt:469 */
|
103 190 | encoder.str("zeroFloat").float(input.zero_float);
|
191 + | /* SerializerUtil.kt:46 */
|
104 192 | }
|
193 + | /* SerializerUtil.kt:46 */
|
105 194 | {
|
195 + | /* CborSerializerGenerator.kt:470 */
|
106 196 | encoder.str("zeroDouble").double(input.zero_double);
|
197 + | /* SerializerUtil.kt:46 */
|
107 198 | }
|
199 + | /* CborSerializerGenerator.kt:393 */
|
108 200 | encoder.end();
|
201 + | /* CborSerializerGenerator.kt:394 */
|
109 202 | Ok(())
|
203 + | /* CborSerializerGenerator.kt:369 */
|
110 204 | }
|