// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(clippy::needless_question_mark)]
pub fn de_get_bucket_metadata_configuration_result(
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> ::std::result::Result<crate::types::GetBucketMetadataConfigurationResult, ::aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::types::GetBucketMetadataConfigurationResult::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("MetadataConfigurationResult") /* MetadataConfigurationResult com.amazonaws.s3#GetBucketMetadataConfigurationResult$MetadataConfigurationResult */ =>  {
                let var_1 =
                    Some(
                        crate::protocol_serde::shape_metadata_configuration_result::de_metadata_configuration_result(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_metadata_configuration_result(var_1);
            }
            ,
            _ => {}
        }
    }
    Ok(crate::serde_util::get_bucket_metadata_configuration_result_correct_errors(builder).build())
}
