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: _workspace_directory.rs
    path of file: ./repos/aws-sdk-rust/sdk/workspaces/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>Describes a directory that is used with Amazon WorkSpaces.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct WorkspaceDirectory {
    /// <p>The directory identifier.</p>
    pub directory_id: ::std::option::Option<::std::string::String>,
    /// <p>The directory alias.</p>
    pub alias: ::std::option::Option<::std::string::String>,
    /// <p>The name of the directory.</p>
    pub directory_name: ::std::option::Option<::std::string::String>,
    /// <p>The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client
    
    pub fn build(self) -> crate::types::WorkspaceDirectory {
        crate::types::WorkspaceDirectory {
            directory_id: self.directory_id,
            alias: self.alias,
            directory_name: self.directory_name,
            registration_code: self.registration_code,
            subnet_ids: self.subnet_ids,
            dns_ip_addresses: self.dns_ip_addresses,
            customer_user_name: self.customer_user_name,
            iam_role_id: self.iam_role_id,
            directory_type: self.directory_type,
            workspace_security_group_id: self.workspace_security_group_id,
            state: self.state,
            workspace_creation_properties: self.workspace_creation_properties,
            ip_group_ids: self.ip_group_ids,
            workspace_access_properties: self.workspace_access_properties,
            tenancy: self.tenancy,
            selfservice_permissions: self.selfservice_permissions,
            saml_properties: self.saml_properties,
            certificate_based_auth_properties: self.certificate_based_auth_properties,
        }
    }