aws_sdk_ec2/protocol_serde/
shape_destination_options_request.rs1#[allow(unused_mut)]
3pub fn ser_destination_options_request(
4 mut writer: ::aws_smithy_query::QueryValueWriter,
5 input: &crate::types::DestinationOptionsRequest,
6) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
7 #[allow(unused_mut)]
8 let mut scope_1 = writer.prefix("FileFormat");
9 if let Some(var_2) = &input.file_format {
10 scope_1.string(var_2.as_str());
11 }
12 #[allow(unused_mut)]
13 let mut scope_3 = writer.prefix("HiveCompatiblePartitions");
14 if let Some(var_4) = &input.hive_compatible_partitions {
15 scope_3.boolean(*var_4);
16 }
17 #[allow(unused_mut)]
18 let mut scope_5 = writer.prefix("PerHourPartition");
19 if let Some(var_6) = &input.per_hour_partition {
20 scope_5.boolean(*var_6);
21 }
22 Ok(())
23}