pub fn ser_outgoing_key_material(
object_5: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::OutgoingKeyMaterial,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
match input {
crate::types::OutgoingKeyMaterial::Tr31KeyBlock(inner) => {
#[allow(unused_mut)]
let mut object_1 = object_5.key("Tr31KeyBlock").start_object();
crate::protocol_serde::shape_outgoing_tr31_key_block::ser_outgoing_tr31_key_block(&mut object_1, inner)?;
object_1.finish();
}
crate::types::OutgoingKeyMaterial::Unknown => {
return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
"OutgoingKeyMaterial",
))
}
}
Ok(())
}