aws-sdk-sns 1.93.0

AWS SDK for Amazon Simple Notification Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_set_sms_attributes_input_input_input(
    input: &crate::operation::set_sms_attributes::SetSmsAttributesInput,
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
    let mut out = String::new();
    #[allow(unused_mut)]
    let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "SetSMSAttributes", "2010-03-31");
    #[allow(unused_mut)]
    let mut scope_1 = writer.prefix("attributes");
    if let Some(var_2) = &input.attributes {
        let mut map_3 = scope_1.start_map(false, "key", "value");
        for (key_4, value_5) in var_2 {
            #[allow(unused_mut)]
            let mut entry_6 = map_3.entry(key_4);
            {
                entry_6.string(value_5);
            }
        }
        map_3.finish();
    }
    writer.finish();
    Ok(::aws_smithy_types::body::SdkBody::from(out))
}