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: _task.rs
    path of file: ./repos/aws-sdk-rust/sdk/appflow/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>A class for modeling different type of tasks. Task implementation varies based on the <code>TaskType</code>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Task {
    /// <p>The source fields to which a particular task is applied.</p>
    pub source_fields: ::std::vec::Vec<::std::string::String>,
    /// <p>The operation to be performed on the provided source fields.</p>
    pub connector_operator: ::std::option::Option<crate::types::ConnectorOperator>,
    /// <p>A field in a destination connector, or a field value against which Amazon AppFlow validates a source field.</p>
 
    
    pub fn build(self) -> ::std::result::Result<crate::types::Task, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::Task {
            source_fields: self.source_fields.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "source_fields",
                    "source_fields was not specified but it is required when building Task",
                )
            })?,
            connector_operator: self.connector_operator,
            destination_field: self.destination_field,
            task_type: self.task_type.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "task_type",
                    "task_type was not specified but it is required when building Task",
                )
            })?,
            task_properties: self.task_properties,
        })
    }