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: _option_status.rs
    path of file: ./repos/aws-sdk-rust/sdk/elasticsearch/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>Provides the current status of the entity.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct OptionStatus {
    /// <p>Timestamp which tells the creation date for the entity.</p>
    pub creation_date: ::aws_smithy_types::DateTime,
    /// <p>Timestamp which tells the last updated time for the entity.</p>
    pub update_date: ::aws_smithy_types::DateTime,
    /// <p>Specifies the latest version for the entity.</p>
  
    
    pub fn build(self) -> ::std::result::Result<crate::types::OptionStatus, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::OptionStatus {
            creation_date: self.creation_date.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "creation_date",
                    "creation_date was not specified but it is required when building OptionStatus",
                )
            })?,
            update_date: self.update_date.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "update_date",
                    "update_date was not specified but it is required when building OptionStatus",
                )
            })?,
            update_version: self.update_version.unwrap_or_default(),
            state: self.state.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "state",
                    "state was not specified but it is required when building OptionStatus",
                )
            })?,
            pending_deletion: self.pending_deletion,
        })
    }