aws_sdk_s3/protocol_serde/
shape_progress_event.rspub fn de_details(inp: &[u8]) -> Result<crate::types::Progress, ::aws_smithy_xml::decode::XmlDecodeError> {
let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
#[allow(unused_mut)]
let mut decoder = doc.root_element()?;
let start_el = decoder.start_el();
if !(start_el.matches("Progress")) {
return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
"invalid root, expected Progress got {:?}",
start_el
)));
}
crate::protocol_serde::shape_progress::de_progress(&mut decoder)
}