aws_sdk_s3/protocol_serde/
shape_inventory_optional_fields.rspub fn de_inventory_optional_fields(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> Result<::std::vec::Vec<crate::types::InventoryOptionalField>, ::aws_smithy_xml::decode::XmlDecodeError> {
let mut out = std::vec::Vec::new();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Field") => {
out.push(
Result::<crate::types::InventoryOptionalField, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::types::InventoryOptionalField::from(
::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
);
}
,
_ => {}
}
}
Ok(out)
}