aws_sdk_acmpca/protocol_serde/
shape_custom_extension.rs1pub fn ser_custom_extension(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::types::CustomExtension,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 {
7 object.key("ObjectIdentifier").string(input.object_identifier.as_str());
8 }
9 {
10 object.key("Value").string(input.value.as_str());
11 }
12 if let Some(var_1) = &input.critical {
13 object.key("Critical").boolean(*var_1);
14 }
15 Ok(())
16}