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: _ordered_resource_definition.rs
    path of file: ./repos/aws-sdk-rust/sdk/privatenetworks/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>Details of the network resources in the order.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct OrderedResourceDefinition {
    /// <p>The type of network resource in the order.</p>
    pub r#type: crate::types::NetworkResourceDefinitionType,
    /// <p>The number of network resources in the order.</p>
    pub count: i32,
    /// <p>The duration and renewal status of th
    
    pub fn build(self) -> ::std::result::Result<crate::types::OrderedResourceDefinition, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::OrderedResourceDefinition {
            r#type: self.r#type.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "r#type",
                    "r#type was not specified but it is required when building OrderedResourceDefinition",
                )
            })?,
            count: self.count.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "count",
                    "count was not specified but it is required when building OrderedResourceDefinition",
                )
            })?,
            commitment_configuration: self.commitment_configuration,
        })
    }