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: _anomaly_group_time_series.rs
    path of file: ./repos/aws-sdk-rust/sdk/lookoutmetrics/src/types
    
    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.

/// <p>An anomalous metric in an anomaly group.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AnomalyGroupTimeSeries {
    /// <p>The ID of the anomaly group.</p>
    pub anomaly_group_id: ::std::string::String,
    /// <p>The ID of the metric.</p>
    pub time_series_id: ::std::option::Option<::std::string::String>,
}
impl AnomalyGroupTimeSeries {
    /// <p>The ID of 
    
    pub fn build(self) -> ::std::result::Result<crate::types::AnomalyGroupTimeSeries, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::AnomalyGroupTimeSeries {
            anomaly_group_id: self.anomaly_group_id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "anomaly_group_id",
                    "anomaly_group_id was not specified but it is required when building AnomalyGroupTimeSeries",
                )
            })?,
            time_series_id: self.time_series_id,
        })
    }