aws-sdk-iam 1.109.0

AWS SDK for AWS Identity and Access Management
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(unused_mut)]
pub fn ser_context_entry(
    mut writer: ::aws_smithy_query::QueryValueWriter,
    input: &crate::types::ContextEntry,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    #[allow(unused_mut)]
    let mut scope_1 = writer.prefix("ContextKeyName");
    if let Some(var_2) = &input.context_key_name {
        scope_1.string(var_2);
    }
    #[allow(unused_mut)]
    let mut scope_3 = writer.prefix("ContextKeyValues");
    if let Some(var_4) = &input.context_key_values {
        let mut list_6 = scope_3.start_list(false, None);
        for item_5 in var_4 {
            #[allow(unused_mut)]
            let mut entry_7 = list_6.entry();
            entry_7.string(item_5);
        }
        list_6.finish();
    }
    #[allow(unused_mut)]
    let mut scope_8 = writer.prefix("ContextKeyType");
    if let Some(var_9) = &input.context_key_type {
        scope_8.string(var_9.as_str());
    }
    Ok(())
}