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: _scan_summary.rs
    path of file: ./repos/aws-sdk-rust/sdk/codegurusecurity/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>Information about a scan.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ScanSummary {
    /// <p>The state of the scan. A scan can be <code>In Progress</code>, <code>Complete</code>, or <code>Failed</code>.</p>
    pub scan_state: crate::types::ScanState,
    /// <p>The time when the scan was created.</p>
    pub created_at: ::aws_smithy_typ
    
    pub fn build(self) -> ::std::result::Result<crate::types::ScanSummary, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::ScanSummary {
            scan_state: self.scan_state.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "scan_state",
                    "scan_state was not specified but it is required when building ScanSummary",
                )
            })?,
            created_at: self.created_at.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "created_at",
                    "created_at was not specified but it is required when building ScanSummary",
                )
            })?,
            updated_at: self.updated_at,
            scan_name: self.scan_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "scan_name",
                    "scan_name was not specified but it is required when building ScanSummary",
                )
            })?,
            run_id: self.run_id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "run_id",
                    "run_id was not specified but it is required when building ScanSummary",
                )
            })?,
            scan_name_arn: self.scan_name_arn,
        })
    }