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: _device_selection_configuration.rs
    path of file: ./repos/aws-sdk-rust/sdk/devicefarm/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>Represents the device filters used in a test run and the maximum number of devices to be included in the run. It is passed in as the <code>deviceSelectionConfiguration</code> request parameter in <code>ScheduleRun</code>.</p>
#[non_exhaustive]
#[derive(::std::clone
    
    pub fn build(self) -> ::std::result::Result<crate::types::DeviceSelectionConfiguration, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::DeviceSelectionConfiguration {
            filters: self.filters.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "filters",
                    "filters was not specified but it is required when building DeviceSelectionConfiguration",
                )
            })?,
            max_devices: self.max_devices.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "max_devices",
                    "max_devices was not specified but it is required when building DeviceSelectionConfiguration",
                )
            })?,
        })
    }