aws-sdk-memorydb 1.46.0

AWS SDK for Amazon MemoryDB
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_user_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::create_user::CreateUserInput,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.user_name {
        object.key("UserName").string(var_1.as_str());
    }
    if let Some(var_2) = &input.authentication_mode {
        #[allow(unused_mut)]
        let mut object_3 = object.key("AuthenticationMode").start_object();
        crate::protocol_serde::shape_authentication_mode::ser_authentication_mode(&mut object_3, var_2)?;
        object_3.finish();
    }
    if let Some(var_4) = &input.access_string {
        object.key("AccessString").string(var_4.as_str());
    }
    if let Some(var_5) = &input.tags {
        let mut array_6 = object.key("Tags").start_array();
        for item_7 in var_5 {
            {
                #[allow(unused_mut)]
                let mut object_8 = array_6.value().start_object();
                crate::protocol_serde::shape_tag::ser_tag(&mut object_8, item_7)?;
                object_8.finish();
            }
        }
        array_6.finish();
    }
    Ok(())
}