aws_sdk_ec2/protocol_serde/
shape_reset_image_attribute_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_reset_image_attribute_input_input_input(
3    input: &crate::operation::reset_image_attribute::ResetImageAttributeInput,
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, "ResetImageAttribute", "2016-11-15");
8    #[allow(unused_mut)]
9    let mut scope_1 = writer.prefix("Attribute");
10    if let Some(var_2) = &input.attribute {
11        scope_1.string(var_2.as_str());
12    }
13    #[allow(unused_mut)]
14    let mut scope_3 = writer.prefix("ImageId");
15    if let Some(var_4) = &input.image_id {
16        scope_3.string(var_4);
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}