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: _transcript_criteria.rs
    path of file: ./repos/aws-sdk-rust/sdk/connect/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 structure that defines search criteria base on words or phrases, participants in the Contact Lens conversational analytics transcript.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct TranscriptCriteria {
    /// <p>The participant role in a transcript</p>
    pub participant_role: crate::types::ParticipantRole,
    /// <p>The words or phrases used to search within a transcript.</p>
    pub search_text: ::std::vec::Vec<::std::string::String>,

    
    pub fn build(self) -> ::std::result::Result<crate::types::TranscriptCriteria, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::TranscriptCriteria {
            participant_role: self.participant_role.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "participant_role",
                    "participant_role was not specified but it is required when building TranscriptCriteria",
                )
            })?,
            search_text: self.search_text.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "search_text",
                    "search_text was not specified but it is required when building TranscriptCriteria",
                )
            })?,
            match_type: self.match_type.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "match_type",
                    "match_type was not specified but it is required when building TranscriptCriteria",
                )
            })?,
        })
    }