1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pub fn de_availability_options_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::types::AvailabilityOptionsStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::types::AvailabilityOptionsStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Options") => {
let var_1 =
Some(
{
<bool 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 (boolean: `com.amazonaws.cloudsearch#MultiAZ`)"))
}
?
)
;
builder = builder.set_options(var_1);
}
,
s if s.matches("Status") => {
let var_2 =
Some(
crate::protocol_serde::shape_option_status::de_option_status(&mut tag)
?
)
;
builder = builder.set_status(var_2);
}
,
_ => {}
}
}
Ok(builder.build())
}