aws_sdk_ec2/protocol_serde/
shape_describe_export_tasks_input.rs1pub fn ser_describe_export_tasks_input_input_input(
3 input: &crate::operation::describe_export_tasks::DescribeExportTasksInput,
4) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
5 let mut out = String::new();
6 #[allow(unused_mut)]
7 let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "DescribeExportTasks", "2016-11-15");
8 #[allow(unused_mut)]
9 let mut scope_1 = writer.prefix("Filter");
10 if let Some(var_2) = &input.filters {
11 if !var_2.is_empty() {
12 let mut list_4 = scope_1.start_list(true, Some("Filter"));
13 for item_3 in var_2 {
14 #[allow(unused_mut)]
15 let mut entry_5 = list_4.entry();
16 crate::protocol_serde::shape_filter::ser_filter(entry_5, item_3)?;
17 }
18 list_4.finish();
19 }
20 }
21 #[allow(unused_mut)]
22 let mut scope_6 = writer.prefix("ExportTaskId");
23 if let Some(var_7) = &input.export_task_ids {
24 if !var_7.is_empty() {
25 let mut list_9 = scope_6.start_list(true, Some("ExportTaskId"));
26 for item_8 in var_7 {
27 #[allow(unused_mut)]
28 let mut entry_10 = list_9.entry();
29 entry_10.string(item_8);
30 }
31 list_9.finish();
32 }
33 }
34 writer.finish();
35 Ok(::aws_smithy_types::body::SdkBody::from(out))
36}