aws_sdk_s3/protocol_serde/
shape_storage_class_analysis.rs#[allow(clippy::needless_question_mark)]
pub fn de_storage_class_analysis(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::types::StorageClassAnalysis, ::aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::types::StorageClassAnalysis::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("DataExport") => {
let var_1 =
Some(
crate::protocol_serde::shape_storage_class_analysis_data_export::de_storage_class_analysis_data_export(&mut tag)
?
)
;
builder = builder.set_data_export(var_1);
}
,
_ => {}
}
}
Ok(builder.build())
}
pub fn ser_storage_class_analysis(
input: &crate::types::StorageClassAnalysis,
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_2) = &input.data_export {
let inner_writer = scope.start_el("DataExport");
crate::protocol_serde::shape_storage_class_analysis_data_export::ser_storage_class_analysis_data_export(var_2, inner_writer)?
}
scope.finish();
Ok(())
}