aws_sdk_ec2/protocol_serde/
shape_new_dhcp_configuration.rs1#[allow(unused_mut)]
3pub fn ser_new_dhcp_configuration(
4 mut writer: ::aws_smithy_query::QueryValueWriter,
5 input: &crate::types::NewDhcpConfiguration,
6) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
7 #[allow(unused_mut)]
8 let mut scope_1 = writer.prefix("Key");
9 if let Some(var_2) = &input.key {
10 scope_1.string(var_2);
11 }
12 #[allow(unused_mut)]
13 let mut scope_3 = writer.prefix("Value");
14 if let Some(var_4) = &input.values {
15 if !var_4.is_empty() {
16 let mut list_6 = scope_3.start_list(true, Some("item"));
17 for item_5 in var_4 {
18 #[allow(unused_mut)]
19 let mut entry_7 = list_6.entry();
20 entry_7.string(item_5);
21 }
22 list_6.finish();
23 }
24 }
25 Ok(())
26}