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: _prediction_time_range.rs
    path of file: ./repos/aws-sdk-rust/sdk/frauddetector/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 time period for when the predictions were generated.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct PredictionTimeRange {
    /// <p>The start time of the time period for when the predictions were generated.</p>
    pub start_time: ::std::string::String,
    /// <p>The end time of the time period for when the predictions were generated.</p>
    pub end_time: ::std::string::String,
}
impl PredictionTimeRange {
   
    
    pub fn build(self) -> ::std::result::Result<crate::types::PredictionTimeRange, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::PredictionTimeRange {
            start_time: self.start_time.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "start_time",
                    "start_time was not specified but it is required when building PredictionTimeRange",
                )
            })?,
            end_time: self.end_time.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "end_time",
                    "end_time was not specified but it is required when building PredictionTimeRange",
                )
            })?,
        })
    }