#[non_exhaustive]pub struct DeviceSelectionResultBuilder { /* private fields */ }Expand description
A builder for DeviceSelectionResult.
Implementations§
source§impl DeviceSelectionResultBuilder
impl DeviceSelectionResultBuilder
sourcepub fn filters(self, input: DeviceFilter) -> Self
pub fn filters(self, input: DeviceFilter) -> Self
Appends an item to filters.
To override the contents of this collection use set_filters.
The filters in a device selection result.
sourcepub fn set_filters(self, input: Option<Vec<DeviceFilter>>) -> Self
pub fn set_filters(self, input: Option<Vec<DeviceFilter>>) -> Self
The filters in a device selection result.
sourcepub fn get_filters(&self) -> &Option<Vec<DeviceFilter>>
pub fn get_filters(&self) -> &Option<Vec<DeviceFilter>>
The filters in a device selection result.
sourcepub fn matched_devices_count(self, input: i32) -> Self
pub fn matched_devices_count(self, input: i32) -> Self
The number of devices that matched the device filter selection criteria.
sourcepub fn set_matched_devices_count(self, input: Option<i32>) -> Self
pub fn set_matched_devices_count(self, input: Option<i32>) -> Self
The number of devices that matched the device filter selection criteria.
sourcepub fn get_matched_devices_count(&self) -> &Option<i32>
pub fn get_matched_devices_count(&self) -> &Option<i32>
The number of devices that matched the device filter selection criteria.
sourcepub fn max_devices(self, input: i32) -> Self
pub fn max_devices(self, input: i32) -> Self
The maximum number of devices to be selected by a device filter and included in a test run.
sourcepub fn set_max_devices(self, input: Option<i32>) -> Self
pub fn set_max_devices(self, input: Option<i32>) -> Self
The maximum number of devices to be selected by a device filter and included in a test run.
sourcepub fn get_max_devices(&self) -> &Option<i32>
pub fn get_max_devices(&self) -> &Option<i32>
The maximum number of devices to be selected by a device filter and included in a test run.
sourcepub fn build(self) -> DeviceSelectionResult
pub fn build(self) -> DeviceSelectionResult
Consumes the builder and constructs a DeviceSelectionResult.
Trait Implementations§
source§impl Clone for DeviceSelectionResultBuilder
impl Clone for DeviceSelectionResultBuilder
source§fn clone(&self) -> DeviceSelectionResultBuilder
fn clone(&self) -> DeviceSelectionResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DeviceSelectionResultBuilder
impl Debug for DeviceSelectionResultBuilder
source§impl Default for DeviceSelectionResultBuilder
impl Default for DeviceSelectionResultBuilder
source§fn default() -> DeviceSelectionResultBuilder
fn default() -> DeviceSelectionResultBuilder
source§impl PartialEq<DeviceSelectionResultBuilder> for DeviceSelectionResultBuilder
impl PartialEq<DeviceSelectionResultBuilder> for DeviceSelectionResultBuilder
source§fn eq(&self, other: &DeviceSelectionResultBuilder) -> bool
fn eq(&self, other: &DeviceSelectionResultBuilder) -> bool
self and other values to be equal, and is used
by ==.