aws_sdk_redshift/protocol_serde/
shape_describe_snapshot_schedules_input.rs1pub fn ser_describe_snapshot_schedules_input_input_input(
3 input: &crate::operation::describe_snapshot_schedules::DescribeSnapshotSchedulesInput,
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, "DescribeSnapshotSchedules", "2012-12-01");
8 #[allow(unused_mut)]
9 let mut scope_1 = writer.prefix("ClusterIdentifier");
10 if let Some(var_2) = &input.cluster_identifier {
11 scope_1.string(var_2);
12 }
13 #[allow(unused_mut)]
14 let mut scope_3 = writer.prefix("ScheduleIdentifier");
15 if let Some(var_4) = &input.schedule_identifier {
16 scope_3.string(var_4);
17 }
18 #[allow(unused_mut)]
19 let mut scope_5 = writer.prefix("TagKeys");
20 if let Some(var_6) = &input.tag_keys {
21 let mut list_8 = scope_5.start_list(false, Some("TagKey"));
22 for item_7 in var_6 {
23 #[allow(unused_mut)]
24 let mut entry_9 = list_8.entry();
25 entry_9.string(item_7);
26 }
27 list_8.finish();
28 }
29 #[allow(unused_mut)]
30 let mut scope_10 = writer.prefix("TagValues");
31 if let Some(var_11) = &input.tag_values {
32 let mut list_13 = scope_10.start_list(false, Some("TagValue"));
33 for item_12 in var_11 {
34 #[allow(unused_mut)]
35 let mut entry_14 = list_13.entry();
36 entry_14.string(item_12);
37 }
38 list_13.finish();
39 }
40 #[allow(unused_mut)]
41 let mut scope_15 = writer.prefix("Marker");
42 if let Some(var_16) = &input.marker {
43 scope_15.string(var_16);
44 }
45 #[allow(unused_mut)]
46 let mut scope_17 = writer.prefix("MaxRecords");
47 if let Some(var_18) = &input.max_records {
48 scope_17.number(
49 #[allow(clippy::useless_conversion)]
50 ::aws_smithy_types::Number::NegInt((*var_18).into()),
51 );
52 }
53 writer.finish();
54 Ok(::aws_smithy_types::body::SdkBody::from(out))
55}