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: _trusted_advisor_check_summary.rs
    path of file: ./repos/aws-sdk-rust/sdk/support/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>A summary of a Trusted Advisor check result, including the alert status, last refresh, and number of resources examined.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct TrustedAdvisorCheckSummary {
    /// <p>The unique identifier for the Trusted Advisor check.</p>
    pub check_id: ::std::string::String,
    /// <p>The time of the last refresh of the check.</p>
    pub timestamp: ::std::string::String,
    /// <p>The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".</p>
    pub status: ::std::string::String,
    /// <p>Specifies whether the Trusted Advisor check has flagged resources.</p>
    pub has_flagged_resources: bool,
    /// <p>Details about Amazon Web Services resources that were
    
    pub fn build(self) -> ::std::result::Result<crate::types::TrustedAdvisorCheckSummary, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::TrustedAdvisorCheckSummary {
            check_id: self.check_id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "check_id",
                    "check_id was not specified but it is required when building TrustedAdvisorCheckSummary",
                )
            })?,
            timestamp: self.timestamp.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "timestamp",
                    "timestamp was not specified but it is required when building TrustedAdvisorCheckSummary",
                )
            })?,
            status: self.status.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "status",
                    "status was not specified but it is required when building TrustedAdvisorCheckSummary",
                )
            })?,
            has_flagged_resources: self.has_flagged_resources.unwrap_or_default(),
            resources_summary: self.resources_summary,
            category_specific_summary: self.category_specific_summary,
        })
    }