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: _explainability_config.rs
    path of file: ./repos/aws-sdk-rust/sdk/forecast/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>The ExplainabilityConfig data type defines the number of time series and time points included in <code>CreateExplainability</code>.</p>
/// <p>If you provide a predictor ARN for <code>ResourceArn</code>, you must set both <code>TimePointGranularity</code> and <code>TimeSeriesGranularity</code> to “ALL”. When creating Predictor Explainability, Amazon Forecast considers all time series and time points.</p>
/// <p>If you provide a forecast ARN for <code>ResourceArn</code>, you can set <code>TimePointGranularity</code> and <code>TimeSeriesGranularity</code> to either “ALL” or “Specific”.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, 
    
    pub fn build(self) -> ::std::result::Result<crate::types::ExplainabilityConfig, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::ExplainabilityConfig {
            time_series_granularity: self.time_series_granularity.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "time_series_granularity",
                    "time_series_granularity was not specified but it is required when building ExplainabilityConfig",
                )
            })?,
            time_point_granularity: self.time_point_granularity.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "time_point_granularity",
                    "time_point_granularity was not specified but it is required when building ExplainabilityConfig",
                )
            })?,
        })
    }