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_wrapped_key_material(
    object_2: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::WrappedKeyMaterial,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    match input {
        crate::types::WrappedKeyMaterial::Tr31KeyBlock(inner) => {
            object_2.key("Tr31KeyBlock").string(inner.as_str());
        }
        crate::types::WrappedKeyMaterial::DiffieHellmanSymmetricKey(inner) => {
            #[allow(unused_mut)]
            let mut object_1 = object_2.key("DiffieHellmanSymmetricKey").start_object();
            crate::protocol_serde::shape_ecdh_derivation_attributes::ser_ecdh_derivation_attributes(&mut object_1, inner)?;
            object_1.finish();
        }
        crate::types::WrappedKeyMaterial::Unknown => {
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
                "WrappedKeyMaterial",
            ))
        }
    }
    Ok(())
}