pub fn ser_document_metadata(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::DocumentMetadata,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
object.key("type").string(input.r#type.as_str());
}
if let Some(var_1) = &input.inline_attributes {
let mut array_2 = object.key("inlineAttributes").start_array();
for item_3 in var_1 {
{
#[allow(unused_mut)]
let mut object_4 = array_2.value().start_object();
crate::protocol_serde::shape_metadata_attribute::ser_metadata_attribute(&mut object_4, item_3)?;
object_4.finish();
}
}
array_2.finish();
}
if let Some(var_5) = &input.s3_location {
#[allow(unused_mut)]
let mut object_6 = object.key("s3Location").start_object();
crate::protocol_serde::shape_custom_s3_location::ser_custom_s3_location(&mut object_6, var_5)?;
object_6.finish();
}
Ok(())
}