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: _discovery_server_configuration.rs
    path of file: ./repos/aws-sdk-rust/sdk/datasync/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>The network settings that DataSync Discovery uses to connect with your on-premises storage system's management interface.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DiscoveryServerConfiguration {
    /// <p>The domain name or IP address of your storage system's management interface.</p>
    pub server_hostname: ::std::string::String,
    /// <p>The network port for accessing the storage syst
    
    pub fn build(self) -> ::std::result::Result<crate::types::DiscoveryServerConfiguration, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::DiscoveryServerConfiguration {
            server_hostname: self.server_hostname.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "server_hostname",
                    "server_hostname was not specified but it is required when building DiscoveryServerConfiguration",
                )
            })?,
            server_port: self.server_port,
        })
    }