aws-sdk-odb 1.40.0

AWS SDK for odb
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_wallet_password_source_configuration_input(
    object_6: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::WalletPasswordSourceConfigurationInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    match input {
        crate::types::WalletPasswordSourceConfigurationInput::CustomerManagedAwsSecret(inner) => {
            #[allow(unused_mut)]
            let mut object_1 = object_6.key("customerManagedAwsSecret").start_object();
            crate::protocol_serde::shape_customer_managed_aws_secret_configuration_input::ser_customer_managed_aws_secret_configuration_input(
                &mut object_1,
                inner,
            )?;
            object_1.finish();
        }
        crate::types::WalletPasswordSourceConfigurationInput::Unknown => {
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
                "WalletPasswordSourceConfigurationInput",
            ))
        }
    }
    Ok(())
}