aws_sdk_customerprofiles/protocol_serde/
shape_delete_profile_key_input.rs1pub fn ser_delete_profile_key_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::delete_profile_key::DeleteProfileKeyInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.key_name {
7 object.key("KeyName").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.profile_id {
10 object.key("ProfileId").string(var_2.as_str());
11 }
12 if let Some(var_3) = &input.values {
13 let mut array_4 = object.key("Values").start_array();
14 for item_5 in var_3 {
15 {
16 array_4.value().string(item_5.as_str());
17 }
18 }
19 array_4.finish();
20 }
21 Ok(())
22}