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: _topic_rule_payload.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>Describes a rule.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct TopicRulePayload {
    /// <p>The SQL statement used to query the topic. For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-reference.html">IoT SQL Reference</a> in the <i>IoT Developer Guide</i>.</p>
    pub sql: ::std::string::String,
    /// <p>The description of the rule.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The actions associated with the rule.</p>
    pub actions: ::std::vec::Vec<crate::types::Action>,
    /// <p>Specifies whether the rule is disabled.</p>
    pub rule
    
    pub fn build(self) -> ::std::result::Result<crate::types::TopicRulePayload, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::TopicRulePayload {
            sql: self.sql.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "sql",
                    "sql was not specified but it is required when building TopicRulePayload",
                )
            })?,
            description: self.description,
            actions: self.actions.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "actions",
                    "actions was not specified but it is required when building TopicRulePayload",
                )
            })?,
            rule_disabled: self.rule_disabled,
            aws_iot_sql_version: self.aws_iot_sql_version,
            error_action: self.error_action,
        })
    }