aws_sdk_redshift/protocol_serde/
shape_enable_logging_input.rs1pub fn ser_enable_logging_input_input_input(
3 input: &crate::operation::enable_logging::EnableLoggingInput,
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, "EnableLogging", "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("BucketName");
15 if let Some(var_4) = &input.bucket_name {
16 scope_3.string(var_4);
17 }
18 #[allow(unused_mut)]
19 let mut scope_5 = writer.prefix("S3KeyPrefix");
20 if let Some(var_6) = &input.s3_key_prefix {
21 scope_5.string(var_6);
22 }
23 #[allow(unused_mut)]
24 let mut scope_7 = writer.prefix("LogDestinationType");
25 if let Some(var_8) = &input.log_destination_type {
26 scope_7.string(var_8.as_str());
27 }
28 #[allow(unused_mut)]
29 let mut scope_9 = writer.prefix("LogExports");
30 if let Some(var_10) = &input.log_exports {
31 let mut list_12 = scope_9.start_list(false, None);
32 for item_11 in var_10 {
33 #[allow(unused_mut)]
34 let mut entry_13 = list_12.entry();
35 entry_13.string(item_11);
36 }
37 list_12.finish();
38 }
39 writer.finish();
40 Ok(::aws_smithy_types::body::SdkBody::from(out))
41}