1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#[allow(unused_mut)]
pub fn serialize_structure_crate_model_policy_descriptor_type(
mut writer: aws_smithy_query::QueryValueWriter,
input: &crate::model::PolicyDescriptorType,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("arn");
if let Some(var_2) = &input.arn {
scope_1.string(var_2);
}
Ok(())
}
#[allow(unused_mut)]
pub fn serialize_structure_crate_model_tag(
mut writer: aws_smithy_query::QueryValueWriter,
input: &crate::model::Tag,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
#[allow(unused_mut)]
let mut scope_3 = writer.prefix("Key");
if let Some(var_4) = &input.key {
scope_3.string(var_4);
}
#[allow(unused_mut)]
let mut scope_5 = writer.prefix("Value");
if let Some(var_6) = &input.value {
scope_5.string(var_6);
}
Ok(())
}