#[allow(clippy::needless_question_mark)]
pub fn de_double_range(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> ::std::result::Result<crate::types::DoubleRange, ::aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::types::DoubleRange::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("From") => {
let var_1 =
Some(
{
<f64 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 (double: `com.amazonaws.rds#Double`)"))
}
?
)
;
builder = builder.set_from(var_1);
}
,
s if s.matches("To") => {
let var_2 =
Some(
{
<f64 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 (double: `com.amazonaws.rds#Double`)"))
}
?
)
;
builder = builder.set_to(var_2);
}
,
_ => {}
}
}
Ok(builder.build())
}