aws_sdk_ec2/protocol_serde/
shape_enable_image_deprecation_input.rs1pub fn ser_enable_image_deprecation_input_input_input(
3 input: &crate::operation::enable_image_deprecation::EnableImageDeprecationInput,
4) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
5 let mut out = String::new();
6 #[allow(unused_mut)]
7 let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "EnableImageDeprecation", "2016-11-15");
8 #[allow(unused_mut)]
9 let mut scope_1 = writer.prefix("ImageId");
10 if let Some(var_2) = &input.image_id {
11 scope_1.string(var_2);
12 }
13 #[allow(unused_mut)]
14 let mut scope_3 = writer.prefix("DeprecateAt");
15 if let Some(var_4) = &input.deprecate_at {
16 scope_3.date_time(var_4, ::aws_smithy_types::date_time::Format::DateTime)?;
17 }
18 #[allow(unused_mut)]
19 let mut scope_5 = writer.prefix("DryRun");
20 if let Some(var_6) = &input.dry_run {
21 scope_5.boolean(*var_6);
22 }
23 writer.finish();
24 Ok(::aws_smithy_types::body::SdkBody::from(out))
25}