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: _recommendation_trigger.rs
    path of file: ./repos/aws-sdk-rust/sdk/qconnect/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 recommendation trigger provides context on the event that produced the referenced recommendations. Recommendations are only referenced in <code>recommendationIds</code> by a single RecommendationTrigger.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RecommendationTrigger {
    /// <p>The identifier of the recommendation trigger.</p>
    pub id: ::std::string::String,
    /// <p>The type of recommendation trigger.</p>
    pub r#type: crate::types::RecommendationTriggerType,
    /// <p>The source of the recommendation trigger.</p>
    /// <ul>
    /// <li>
    /// <p>ISSUE_DETECTION: The corresponding recommendations were triggered by a Contact Lens issue.</p></li>
    /// <li>
    
    pub fn build(self) -> ::std::result::Result<crate::types::RecommendationTrigger, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::RecommendationTrigger {
            id: self.id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "id",
                    "id was not specified but it is required when building RecommendationTrigger",
                )
            })?,
            r#type: self.r#type.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "r#type",
                    "r#type was not specified but it is required when building RecommendationTrigger",
                )
            })?,
            source: self.source.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "source",
                    "source was not specified but it is required when building RecommendationTrigger",
                )
            })?,
            data: self.data,
            recommendation_ids: self.recommendation_ids.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "recommendation_ids",
                    "recommendation_ids was not specified but it is required when building RecommendationTrigger",
                )
            })?,
        })
    }