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: _log_destination_config.rs
    path of file: ./repos/aws-sdk-rust/sdk/networkfirewall/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>Defines where Network Firewall sends logs for the firewall for one log type. This is used in <code>LoggingConfiguration</code>. You can send each type of log to an Amazon S3 bucket, a CloudWatch log group, or a Kinesis Data Firehose delivery stream.</p>
/// <p>Network Firewall generates logs for stateful rule groups. You can save alert and flow log types. The stateful rules engine records flow logs for all network traffic that it receives. It records alert logs for traffic that matches stateful rules that have the rule action set to <code>DROP</code> or <code>ALERT</code>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct LogDestinationConfig {
    /// <p>The type of log to send. Alert logs report traffic that matches a <code>StatefulRule</code> with an action setting that 
    
    pub fn build(self) -> ::std::result::Result<crate::types::LogDestinationConfig, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::LogDestinationConfig {
            log_type: self.log_type.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "log_type",
                    "log_type was not specified but it is required when building LogDestinationConfig",
                )
            })?,
            log_destination_type: self.log_destination_type.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "log_destination_type",
                    "log_destination_type was not specified but it is required when building LogDestinationConfig",
                )
            })?,
            log_destination: self.log_destination.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "log_destination",
                    "log_destination was not specified but it is required when building LogDestinationConfig",
                )
            })?,
        })
    }