aws_sdk_kms/protocol_serde/
shape_recipient_info.rs1pub fn ser_recipient_info(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::types::RecipientInfo,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.key_encryption_algorithm {
7 object.key("KeyEncryptionAlgorithm").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.attestation_document {
10 object
11 .key("AttestationDocument")
12 .string_unchecked(&::aws_smithy_types::base64::encode(var_2));
13 }
14 Ok(())
15}