aws_sdk_paymentcryptography/protocol_serde/
shape_export_attributes.rs1pub fn ser_export_attributes(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::types::ExportAttributes,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.export_dukpt_initial_key {
7 #[allow(unused_mut)]
8 let mut object_2 = object.key("ExportDukptInitialKey").start_object();
9 crate::protocol_serde::shape_export_dukpt_initial_key::ser_export_dukpt_initial_key(&mut object_2, var_1)?;
10 object_2.finish();
11 }
12 if let Some(var_3) = &input.key_check_value_algorithm {
13 object.key("KeyCheckValueAlgorithm").string(var_3.as_str());
14 }
15 Ok(())
16}