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: _sort.rs
    path of file: ./repos/aws-sdk-rust/sdk/connect/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>A structure that defineds the field name to sort by and a sort order.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Sort {
    /// <p>The name of the field on which to sort.</p>
    pub field_name: crate::types::SortableFieldName,
    /// <p>An ascending or descending sort.</p>
    pub order: crate::types::SortOrder,
}
impl Sort {
    /// <p>The name of the field on which to sort.</p>
    pub fn field_name(&self) -> &crate::types::SortableFieldN
    
    pub fn build(self) -> ::std::result::Result<crate::types::Sort, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::Sort {
            field_name: self.field_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "field_name",
                    "field_name was not specified but it is required when building Sort",
                )
            })?,
            order: self.order.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "order",
                    "order was not specified but it is required when building Sort",
                )
            })?,
        })
    }