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: _highlight.rs
    path of file: ./repos/aws-sdk-rust/sdk/kendra/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>Provides information that you can use to highlight a search result so that your users can quickly identify terms in the response.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Highlight {
    /// <p>The zero-based location in the response string where the highlight starts.</p>
    pub begin_offset: i32,
    /// <p>The zero-based location in the response string where the highlight ends.</p>
    pub end_offset: i32,
    /// <p>Indicates whether the response is the best response. True if this is the best response; otherwise, false.</p>
    pub top_answer: bool,
    /// <p>The highlight type.</p>
    pub r#type: ::std::option::Option<crate::t
    
    pub fn build(self) -> ::std::result::Result<crate::types::Highlight, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::Highlight {
            begin_offset: self.begin_offset.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "begin_offset",
                    "begin_offset was not specified but it is required when building Highlight",
                )
            })?,
            end_offset: self.end_offset.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "end_offset",
                    "end_offset was not specified but it is required when building Highlight",
                )
            })?,
            top_answer: self.top_answer.unwrap_or_default(),
            r#type: self.r#type,
        })
    }