aws_sdk_kms/protocol_serde/
shape_describe_key_input.rs
1pub fn ser_describe_key_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::describe_key::DescribeKeyInput,
5) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.key_id {
7 object.key("KeyId").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.grant_tokens {
10 let mut array_3 = object.key("GrantTokens").start_array();
11 for item_4 in var_2 {
12 {
13 array_3.value().string(item_4.as_str());
14 }
15 }
16 array_3.finish();
17 }
18 Ok(())
19}