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: _thing_indexing_configuration.rs
    path of file: ./repos/aws-sdk-rust/sdk/iot/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>The thing indexing configuration. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/managing-index.html">Managing Thing Indexing</a>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ThingIndexingConfiguration {
    /// <p>Thing indexing mode. Valid values are:</p>
    /// <ul>
    /// <li>
    /// <p>REGISTRY – Your thing index contains registry data only.</p></li>
    /// <li>
    //
    
    pub fn build(self) -> ::std::result::Result<crate::types::ThingIndexingConfiguration, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::ThingIndexingConfiguration {
            thing_indexing_mode: self.thing_indexing_mode.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "thing_indexing_mode",
                    "thing_indexing_mode was not specified but it is required when building ThingIndexingConfiguration",
                )
            })?,
            thing_connectivity_indexing_mode: self.thing_connectivity_indexing_mode,
            device_defender_indexing_mode: self.device_defender_indexing_mode,
            named_shadow_indexing_mode: self.named_shadow_indexing_mode,
            managed_fields: self.managed_fields,
            custom_fields: self.custom_fields,
            filter: self.filter,
        })
    }