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: _code_vulnerability_details.rs
    path of file: ./repos/aws-sdk-rust/sdk/inspector2/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>Contains information on the code vulnerability identified in your Lambda function.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CodeVulnerabilityDetails {
    /// <p>Contains information on where the code vulnerability is located in your code.</p>
    pub file_path: ::std::option::Option<crate::types::CodeFilePath>,
    /// <p>The detector tag associated wit
    
    pub fn build(self) -> ::std::result::Result<crate::types::CodeVulnerabilityDetails, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::CodeVulnerabilityDetails {
            file_path: self.file_path,
            detector_tags: self.detector_tags,
            reference_urls: self.reference_urls,
            rule_id: self.rule_id,
            source_lambda_layer_arn: self.source_lambda_layer_arn,
            detector_id: self.detector_id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "detector_id",
                    "detector_id was not specified but it is required when building CodeVulnerabilityDetails",
                )
            })?,
            detector_name: self.detector_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "detector_name",
                    "detector_name was not specified but it is required when building CodeVulnerabilityDetails",
                )
            })?,
            cwes: self.cwes.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "cwes",
                    "cwes was not specified but it is required when building CodeVulnerabilityDetails",
                )
            })?,
        })
    }