65 65 | "aws.protocoltests.query.synthetic",
|
66 66 | "SimpleInputParamsInput",
|
67 67 | );
|
68 68 | static SIMPLEINPUTPARAMSINPUT_MEMBER_FOO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
69 69 | ::aws_smithy_schema::ShapeId::from_static(
|
70 70 | "aws.protocoltests.query.synthetic#SimpleInputParamsInput$Foo",
|
71 71 | "aws.protocoltests.query.synthetic",
|
72 72 | "SimpleInputParamsInput",
|
73 73 | ),
|
74 74 | ::aws_smithy_schema::ShapeType::String,
|
75 - | "foo",
|
75 + | "Foo",
|
76 76 | 0,
|
77 77 | );
|
78 78 | static SIMPLEINPUTPARAMSINPUT_MEMBER_BAR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
79 79 | ::aws_smithy_schema::ShapeId::from_static(
|
80 80 | "aws.protocoltests.query.synthetic#SimpleInputParamsInput$Bar",
|
81 81 | "aws.protocoltests.query.synthetic",
|
82 82 | "SimpleInputParamsInput",
|
83 83 | ),
|
84 84 | ::aws_smithy_schema::ShapeType::String,
|
85 - | "bar",
|
85 + | "Bar",
|
86 86 | 1,
|
87 87 | );
|
88 88 | static SIMPLEINPUTPARAMSINPUT_MEMBER_BAZ: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
89 89 | ::aws_smithy_schema::ShapeId::from_static(
|
90 90 | "aws.protocoltests.query.synthetic#SimpleInputParamsInput$Baz",
|
91 91 | "aws.protocoltests.query.synthetic",
|
92 92 | "SimpleInputParamsInput",
|
93 93 | ),
|
94 94 | ::aws_smithy_schema::ShapeType::Boolean,
|
95 - | "baz",
|
95 + | "Baz",
|
96 96 | 2,
|
97 97 | );
|
98 98 | static SIMPLEINPUTPARAMSINPUT_MEMBER_BAM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
99 99 | ::aws_smithy_schema::ShapeId::from_static(
|
100 100 | "aws.protocoltests.query.synthetic#SimpleInputParamsInput$Bam",
|
101 101 | "aws.protocoltests.query.synthetic",
|
102 102 | "SimpleInputParamsInput",
|
103 103 | ),
|
104 104 | ::aws_smithy_schema::ShapeType::Integer,
|
105 - | "bam",
|
105 + | "Bam",
|
106 106 | 3,
|
107 107 | );
|
108 108 | static SIMPLEINPUTPARAMSINPUT_MEMBER_FLOAT_VALUE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
109 109 | ::aws_smithy_schema::ShapeId::from_static(
|
110 110 | "aws.protocoltests.query.synthetic#SimpleInputParamsInput$FloatValue",
|
111 111 | "aws.protocoltests.query.synthetic",
|
112 112 | "SimpleInputParamsInput",
|
113 113 | ),
|
114 114 | ::aws_smithy_schema::ShapeType::Float,
|
115 - | "float_value",
|
115 + | "FloatValue",
|
116 116 | 4,
|
117 117 | );
|
118 118 | static SIMPLEINPUTPARAMSINPUT_MEMBER_BOO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
119 119 | ::aws_smithy_schema::ShapeId::from_static(
|
120 120 | "aws.protocoltests.query.synthetic#SimpleInputParamsInput$Boo",
|
121 121 | "aws.protocoltests.query.synthetic",
|
122 122 | "SimpleInputParamsInput",
|
123 123 | ),
|
124 124 | ::aws_smithy_schema::ShapeType::Double,
|
125 - | "boo",
|
125 + | "Boo",
|
126 126 | 5,
|
127 127 | );
|
128 128 | static SIMPLEINPUTPARAMSINPUT_MEMBER_QUX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
129 129 | ::aws_smithy_schema::ShapeId::from_static(
|
130 130 | "aws.protocoltests.query.synthetic#SimpleInputParamsInput$Qux",
|
131 131 | "aws.protocoltests.query.synthetic",
|
132 132 | "SimpleInputParamsInput",
|
133 133 | ),
|
134 134 | ::aws_smithy_schema::ShapeType::Blob,
|
135 - | "qux",
|
135 + | "Qux",
|
136 136 | 6,
|
137 137 | );
|
138 138 | static SIMPLEINPUTPARAMSINPUT_MEMBER_FOO_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
139 139 | ::aws_smithy_schema::ShapeId::from_static(
|
140 140 | "aws.protocoltests.query.synthetic#SimpleInputParamsInput$FooEnum",
|
141 141 | "aws.protocoltests.query.synthetic",
|
142 142 | "SimpleInputParamsInput",
|
143 143 | ),
|
144 144 | ::aws_smithy_schema::ShapeType::String,
|
145 - | "foo_enum",
|
145 + | "FooEnum",
|
146 146 | 7,
|
147 147 | );
|
148 148 | static SIMPLEINPUTPARAMSINPUT_MEMBER_INTEGER_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
149 149 | ::aws_smithy_schema::ShapeId::from_static(
|
150 150 | "aws.protocoltests.query.synthetic#SimpleInputParamsInput$IntegerEnum",
|
151 151 | "aws.protocoltests.query.synthetic",
|
152 152 | "SimpleInputParamsInput",
|
153 153 | ),
|
154 154 | ::aws_smithy_schema::ShapeType::Integer,
|
155 - | "integer_enum",
|
155 + | "IntegerEnum",
|
156 156 | 8,
|
157 157 | );
|
158 158 | static SIMPLEINPUTPARAMSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
159 159 | SIMPLEINPUTPARAMSINPUT_SCHEMA_ID,
|
160 160 | ::aws_smithy_schema::ShapeType::Structure,
|
161 161 | &[
|
162 162 | &SIMPLEINPUTPARAMSINPUT_MEMBER_FOO,
|
163 163 | &SIMPLEINPUTPARAMSINPUT_MEMBER_BAR,
|
164 164 | &SIMPLEINPUTPARAMSINPUT_MEMBER_BAZ,
|
165 165 | &SIMPLEINPUTPARAMSINPUT_MEMBER_BAM,
|
166 166 | &SIMPLEINPUTPARAMSINPUT_MEMBER_FLOAT_VALUE,
|
167 167 | &SIMPLEINPUTPARAMSINPUT_MEMBER_BOO,
|
168 168 | &SIMPLEINPUTPARAMSINPUT_MEMBER_QUX,
|
169 169 | &SIMPLEINPUTPARAMSINPUT_MEMBER_FOO_ENUM,
|
170 170 | &SIMPLEINPUTPARAMSINPUT_MEMBER_INTEGER_ENUM,
|
171 171 | ],
|
172 172 | );
|
173 173 | impl SimpleInputParamsInput {
|
174 174 | /// The schema for this shape.
|
175 175 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SIMPLEINPUTPARAMSINPUT_SCHEMA;
|
176 176 | }
|
177 177 | impl ::aws_smithy_schema::serde::SerializableStruct for SimpleInputParamsInput {
|
178 178 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
179 179 | fn serialize_members(
|
180 180 | &self,
|
181 181 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
182 182 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
183 183 | if let Some(ref val) = self.foo {
|
184 184 | ser.write_string(&SIMPLEINPUTPARAMSINPUT_MEMBER_FOO, val)?;
|
185 185 | }
|
186 186 | if let Some(ref val) = self.bar {
|
187 187 | ser.write_string(&SIMPLEINPUTPARAMSINPUT_MEMBER_BAR, val)?;
|
188 188 | }
|
189 189 | if let Some(ref val) = self.baz {
|
190 190 | ser.write_boolean(&SIMPLEINPUTPARAMSINPUT_MEMBER_BAZ, *val)?;
|
191 191 | }
|
192 192 | if let Some(ref val) = self.bam {
|
193 193 | ser.write_integer(&SIMPLEINPUTPARAMSINPUT_MEMBER_BAM, *val)?;
|
194 194 | }
|
195 195 | if let Some(ref val) = self.float_value {
|
196 196 | ser.write_float(&SIMPLEINPUTPARAMSINPUT_MEMBER_FLOAT_VALUE, *val)?;
|
197 197 | }
|
198 198 | if let Some(ref val) = self.boo {
|
199 199 | ser.write_double(&SIMPLEINPUTPARAMSINPUT_MEMBER_BOO, *val)?;
|
200 200 | }
|
201 201 | if let Some(ref val) = self.qux {
|
202 202 | ser.write_blob(&SIMPLEINPUTPARAMSINPUT_MEMBER_QUX, val)?;
|
203 203 | }
|
204 204 | if let Some(ref val) = self.foo_enum {
|
205 205 | ser.write_string(&SIMPLEINPUTPARAMSINPUT_MEMBER_FOO_ENUM, val.as_str())?;
|
206 206 | }
|
207 207 | if let Some(ref val) = self.integer_enum {
|
208 208 | ser.write_integer(&SIMPLEINPUTPARAMSINPUT_MEMBER_INTEGER_ENUM, *val)?;
|
209 209 | }
|
210 210 | Ok(())
|
211 211 | }
|
212 212 | }
|
213 213 | impl SimpleInputParamsInput {
|
214 214 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
215 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
216 - | deserializer: &mut D,
|
215 + | pub fn deserialize(
|
216 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
217 217 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
218 218 | #[allow(unused_variables, unused_mut)]
|
219 219 | let mut builder = Self::builder();
|
220 220 | #[allow(
|
221 221 | unused_variables,
|
222 222 | unreachable_code,
|
223 223 | clippy::single_match,
|
224 224 | clippy::match_single_binding,
|
225 225 | clippy::diverging_sub_expression
|
226 226 | )]
|
227 - | deserializer.read_struct(&SIMPLEINPUTPARAMSINPUT_SCHEMA, (), |_, member, deser| {
|
227 + | deserializer.read_struct(&SIMPLEINPUTPARAMSINPUT_SCHEMA, &mut |member, deser| {
|
228 228 | match member.member_index() {
|
229 229 | Some(0) => {
|
230 230 | builder.foo = Some(deser.read_string(member)?);
|
231 231 | }
|
232 232 | Some(1) => {
|
233 233 | builder.bar = Some(deser.read_string(member)?);
|
234 234 | }
|
235 235 | Some(2) => {
|
236 236 | builder.baz = Some(deser.read_boolean(member)?);
|
237 237 | }
|
238 238 | Some(3) => {
|
239 239 | builder.bam = Some(deser.read_integer(member)?);
|
240 240 | }
|
241 241 | Some(4) => {
|
242 242 | builder.float_value = Some(deser.read_float(member)?);
|
243 243 | }
|
244 244 | Some(5) => {
|
245 245 | builder.boo = Some(deser.read_double(member)?);
|
246 246 | }
|
247 247 | Some(6) => {
|
248 248 | builder.qux = Some(deser.read_blob(member)?);
|
249 249 | }
|
250 250 | Some(7) => {
|
251 251 | builder.foo_enum = Some(crate::types::FooEnum::from(deser.read_string(member)?.as_str()));
|
252 252 | }
|
253 253 | Some(8) => {
|
254 254 | builder.integer_enum = Some(deser.read_integer(member)?);
|
255 255 | }
|
256 256 | _ => {}
|
257 257 | }
|
258 258 | Ok(())
|
259 259 | })?;
|
260 260 | builder
|
261 261 | .build()
|
262 262 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
263 263 | }
|
264 264 | }
|
265 + | impl SimpleInputParamsInput {
|
266 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
267 + | pub fn deserialize_with_response(
|
268 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
269 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
270 + | _status: u16,
|
271 + | _body: &[u8],
|
272 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
273 + | Self::deserialize(deserializer)
|
274 + | }
|
275 + | }
|
265 276 | impl SimpleInputParamsInput {
|
266 277 | /// Creates a new builder-style object to manufacture [`SimpleInputParamsInput`](crate::operation::simple_input_params::SimpleInputParamsInput).
|
267 278 | pub fn builder() -> crate::operation::simple_input_params::builders::SimpleInputParamsInputBuilder {
|
268 279 | crate::operation::simple_input_params::builders::SimpleInputParamsInputBuilder::default()
|
269 280 | }
|
270 281 | }
|
271 282 |
|
272 283 | /// A builder for [`SimpleInputParamsInput`](crate::operation::simple_input_params::SimpleInputParamsInput).
|
273 284 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
274 285 | #[non_exhaustive]
|