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_action.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>Information about the action to be performed when a rule is triggered.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RuleAction {
    /// <p>The type of action that creates a rule.</p>
    pub action_type: crate::types::ActionType,
    /// <p>Information about the task action. This field is required if <code>TriggerEventSource</code> is one of the following values: <code>OnZendeskTicketCreate</code> | <code>OnZendeskTicketStatusUpdate</code> | <code>OnSalesforceCaseCreate</code></p>
    pub task_action: ::std::option::Option<crate::types::TaskActionDefinition>,
    /// <p>Information about
    
    pub fn build(self) -> ::std::result::Result<crate::types::RuleAction, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::RuleAction {
            action_type: self.action_type.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "action_type",
                    "action_type was not specified but it is required when building RuleAction",
                )
            })?,
            task_action: self.task_action,
            event_bridge_action: self.event_bridge_action,
            assign_contact_category_action: self.assign_contact_category_action,
            send_notification_action: self.send_notification_action,
            create_case_action: self.create_case_action,
            update_case_action: self.update_case_action,
            end_associated_tasks_action: self.end_associated_tasks_action,
        })
    }