aws-sdk-paymentcryptographydata 1.104.0

AWS SDK for Payment Cryptography Data Plane
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_re_encryption_attributes(
    object_3: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::ReEncryptionAttributes,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    match input {
        crate::types::ReEncryptionAttributes::Symmetric(inner) => {
            #[allow(unused_mut)]
            let mut object_1 = object_3.key("Symmetric").start_object();
            crate::protocol_serde::shape_symmetric_encryption_attributes::ser_symmetric_encryption_attributes(&mut object_1, inner)?;
            object_1.finish();
        }
        crate::types::ReEncryptionAttributes::Dukpt(inner) => {
            #[allow(unused_mut)]
            let mut object_2 = object_3.key("Dukpt").start_object();
            crate::protocol_serde::shape_dukpt_encryption_attributes::ser_dukpt_encryption_attributes(&mut object_2, inner)?;
            object_2.finish();
        }
        crate::types::ReEncryptionAttributes::Unknown => {
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
                "ReEncryptionAttributes",
            ))
        }
    }
    Ok(())
}