#[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 for DeviceSelectionResultBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for DeviceSelectionResultBuilder
Auto Trait Implementations§
impl Freeze for DeviceSelectionResultBuilder
impl RefUnwindSafe for DeviceSelectionResultBuilder
impl Send for DeviceSelectionResultBuilder
impl Sync for DeviceSelectionResultBuilder
impl Unpin for DeviceSelectionResultBuilder
impl UnwindSafe for DeviceSelectionResultBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more