You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: shape_metric.rs
    path of file: ./repos/aws-sdk-rust/sdk/rds/src/protocol_serde
    
    the code of the file until where you have to start completion: // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(clippy::needless_question_mark)]
pub fn de_metric(decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder) -> Result<crate::types::Metric, ::aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::types::Metric::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("Name") /* Name com.amazonaws.rds#Metric$Name */ =>  {
                let var_1 =
                    Some(
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_name(var_1);
            }
            ,
            s if s.matches("References") /* References com.amazonaws.rds#Metric$References */ =>  {
                let var_2 =
                    Some(
                        crate::protocol_serde::shape_metric_reference_list::de_metric_reference_list(&mut tag)
 
    
pub fn de_metric(decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder) -> Result<crate::types::Metric, ::aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::types::Metric::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("Name") /* Name com.amazonaws.rds#Metric$Name */ =>  {
                let var_1 =
                    Some(
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_name(var_1);
            }
            ,
            s if s.matches("References") /* References com.amazonaws.rds#Metric$References */ =>  {
                let var_2 =
                    Some(
                        crate::protocol_serde::shape_metric_reference_list::de_metric_reference_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_references(var_2);
            }
            ,
            s if s.matches("StatisticsDetails") /* StatisticsDetails com.amazonaws.rds#Metric$StatisticsDetails */ =>  {
                let var_3 =
                    Some(
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_statistics_details(var_3);
            }
            ,
            s if s.matches("MetricQuery") /* MetricQuery com.amazonaws.rds#Metric$MetricQuery */ =>  {
                let var_4 =
                    Some(
                        crate::protocol_serde::shape_metric_query::de_metric_query(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_metric_query(var_4);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}