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: _rule_based_matching_request.rs
    path of file: ./repos/aws-sdk-rust/sdk/customerprofiles/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 request to enable the rule-based matching.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RuleBasedMatchingRequest {
    /// <p>The flag that enables the rule-based matching process of duplicate profiles.</p>
    pub enabled: bool,
    /// <p>Configures how the rule-based matching process should match profiles. You can have up to 15 <code>MatchingRule</code> in the <code>MatchingRules</code>.</p>
    pub matching_rules: ::std::option::Option<::std::vec::Vec<crate::types::MatchingRule>>,
    /// <p><a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_MatchingRule.html">MatchingRule</a></p>
    pub max_allowed_rule_level_for_merging: 
    
    pub fn build(self) -> ::std::result::Result<crate::types::RuleBasedMatchingRequest, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::RuleBasedMatchingRequest {
            enabled: self.enabled.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "enabled",
                    "enabled was not specified but it is required when building RuleBasedMatchingRequest",
                )
            })?,
            matching_rules: self.matching_rules,
            max_allowed_rule_level_for_merging: self.max_allowed_rule_level_for_merging,
            max_allowed_rule_level_for_matching: self.max_allowed_rule_level_for_matching,
            attribute_types_selector: self.attribute_types_selector,
            conflict_resolution: self.conflict_resolution,
            exporting_config: self.exporting_config,
        })
    }