aws_sdk_s3/protocol_serde/
shape_object_identifier.rspub fn ser_object_identifier(
input: &crate::types::ObjectIdentifier,
writer: ::aws_smithy_xml::encode::ElWriter,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
#[allow(unused_mut)]
let mut scope = writer.finish();
{
let mut inner_writer = scope.start_el("Key").finish();
inner_writer.data(input.key.as_str());
}
if let Some(var_1) = &input.version_id {
let mut inner_writer = scope.start_el("VersionId").finish();
inner_writer.data(var_1.as_str());
}
if let Some(var_2) = &input.e_tag {
let mut inner_writer = scope.start_el("ETag").finish();
inner_writer.data(var_2.as_str());
}
if let Some(var_3) = &input.last_modified_time {
let mut inner_writer = scope.start_el("LastModifiedTime").finish();
inner_writer.data(var_3.fmt(::aws_smithy_types::date_time::Format::HttpDate)?.as_ref());
}
if let Some(var_4) = &input.size {
let mut inner_writer = scope.start_el("Size").finish();
inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*var_4).encode());
}
scope.finish();
Ok(())
}