aws_sdk_s3/protocol_serde/
shape_metadata_entry.rspub fn ser_metadata_entry(
input: &crate::types::MetadataEntry,
writer: ::aws_smithy_xml::encode::ElWriter,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
#[allow(unused_mut)]
let mut scope = writer.finish();
if let Some(var_1) = &input.name {
let mut inner_writer = scope.start_el("Name").finish();
inner_writer.data(var_1.as_str());
}
if let Some(var_2) = &input.value {
let mut inner_writer = scope.start_el("Value").finish();
inner_writer.data(var_2.as_str());
}
scope.finish();
Ok(())
}