#[allow(clippy::needless_question_mark)]
pub fn de_job_timers(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
depth: u32,
) -> ::std::result::Result<crate::types::JobTimers, ::aws_smithy_xml::decode::XmlDecodeError> {
if depth >= 128u32 {
return Err(::aws_smithy_xml::decode::XmlDecodeError::custom("maximum nesting depth exceeded"));
}
#[allow(unused_mut)]
let mut builder = crate::types::JobTimers::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ElapsedTimeInActiveSeconds") => {
let var_1 =
Some(
{
<i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.s3control#JobTimeInStateSeconds`)"))
}
?
)
;
builder = builder.set_elapsed_time_in_active_seconds(var_1);
}
,
_ => {}
}
}
Ok(builder.build())
}