aws_sdk_iam/protocol_serde/
shape_resync_mfa_device_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_resync_mfa_device_input_input_input(
3    input: &crate::operation::resync_mfa_device::ResyncMfaDeviceInput,
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, "ResyncMFADevice", "2010-05-08");
8    #[allow(unused_mut)]
9    let mut scope_1 = writer.prefix("UserName");
10    if let Some(var_2) = &input.user_name {
11        scope_1.string(var_2);
12    }
13    #[allow(unused_mut)]
14    let mut scope_3 = writer.prefix("SerialNumber");
15    if let Some(var_4) = &input.serial_number {
16        scope_3.string(var_4);
17    }
18    #[allow(unused_mut)]
19    let mut scope_5 = writer.prefix("AuthenticationCode1");
20    if let Some(var_6) = &input.authentication_code1 {
21        scope_5.string(var_6);
22    }
23    #[allow(unused_mut)]
24    let mut scope_7 = writer.prefix("AuthenticationCode2");
25    if let Some(var_8) = &input.authentication_code2 {
26        scope_7.string(var_8);
27    }
28    writer.finish();
29    Ok(::aws_smithy_types::body::SdkBody::from(out))
30}