#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for Device
Implementations
sourceimpl Builder
impl Builder
sourcepub fn manufacturer(self, input: impl Into<String>) -> Self
pub fn manufacturer(self, input: impl Into<String>) -> Self
The device's manufacturer name.
sourcepub fn set_manufacturer(self, input: Option<String>) -> Self
pub fn set_manufacturer(self, input: Option<String>) -> Self
The device's manufacturer name.
sourcepub fn set_model_id(self, input: Option<String>) -> Self
pub fn set_model_id(self, input: Option<String>) -> Self
The device's model ID.
sourcepub fn form_factor(self, input: DeviceFormFactor) -> Self
pub fn form_factor(self, input: DeviceFormFactor) -> Self
The device's form factor.
Allowed values include:
-
PHONE
-
TABLET
sourcepub fn set_form_factor(self, input: Option<DeviceFormFactor>) -> Self
pub fn set_form_factor(self, input: Option<DeviceFormFactor>) -> Self
The device's form factor.
Allowed values include:
-
PHONE
-
TABLET
sourcepub fn platform(self, input: DevicePlatform) -> Self
pub fn platform(self, input: DevicePlatform) -> Self
The device's platform.
Allowed values include:
-
ANDROID
-
IOS
sourcepub fn set_platform(self, input: Option<DevicePlatform>) -> Self
pub fn set_platform(self, input: Option<DevicePlatform>) -> Self
The device's platform.
Allowed values include:
-
ANDROID
-
IOS
sourcepub fn resolution(self, input: Resolution) -> Self
pub fn resolution(self, input: Resolution) -> Self
The resolution of the device.
sourcepub fn set_resolution(self, input: Option<Resolution>) -> Self
pub fn set_resolution(self, input: Option<Resolution>) -> Self
The resolution of the device.
sourcepub fn set_heap_size(self, input: Option<i64>) -> Self
pub fn set_heap_size(self, input: Option<i64>) -> Self
The device's heap size, expressed in bytes.
sourcepub fn set_memory(self, input: Option<i64>) -> Self
pub fn set_memory(self, input: Option<i64>) -> Self
The device's total memory size, expressed in bytes.
sourcepub fn set_carrier(self, input: Option<String>) -> Self
pub fn set_carrier(self, input: Option<String>) -> Self
The device's carrier.
sourcepub fn remote_access_enabled(self, input: bool) -> Self
pub fn remote_access_enabled(self, input: bool) -> Self
Specifies whether remote access has been enabled for the specified device.
sourcepub fn set_remote_access_enabled(self, input: Option<bool>) -> Self
pub fn set_remote_access_enabled(self, input: Option<bool>) -> Self
Specifies whether remote access has been enabled for the specified device.
sourcepub fn remote_debug_enabled(self, input: bool) -> Self
pub fn remote_debug_enabled(self, input: bool) -> Self
This flag is set to true if remote debugging is enabled for the device.
Remote debugging is no longer supported.
sourcepub fn set_remote_debug_enabled(self, input: Option<bool>) -> Self
pub fn set_remote_debug_enabled(self, input: Option<bool>) -> Self
This flag is set to true if remote debugging is enabled for the device.
Remote debugging is no longer supported.
sourcepub fn fleet_type(self, input: impl Into<String>) -> Self
pub fn fleet_type(self, input: impl Into<String>) -> Self
The type of fleet to which this device belongs. Possible values are PRIVATE and PUBLIC.
sourcepub fn set_fleet_type(self, input: Option<String>) -> Self
pub fn set_fleet_type(self, input: Option<String>) -> Self
The type of fleet to which this device belongs. Possible values are PRIVATE and PUBLIC.
sourcepub fn fleet_name(self, input: impl Into<String>) -> Self
pub fn fleet_name(self, input: impl Into<String>) -> Self
The name of the fleet to which this device belongs.
sourcepub fn set_fleet_name(self, input: Option<String>) -> Self
pub fn set_fleet_name(self, input: Option<String>) -> Self
The name of the fleet to which this device belongs.
sourcepub fn instances(self, input: DeviceInstance) -> Self
pub fn instances(self, input: DeviceInstance) -> Self
Appends an item to instances.
To override the contents of this collection use set_instances.
The instances that belong to this device.
sourcepub fn set_instances(self, input: Option<Vec<DeviceInstance>>) -> Self
pub fn set_instances(self, input: Option<Vec<DeviceInstance>>) -> Self
The instances that belong to this device.
sourcepub fn availability(self, input: DeviceAvailability) -> Self
pub fn availability(self, input: DeviceAvailability) -> Self
Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.
sourcepub fn set_availability(self, input: Option<DeviceAvailability>) -> Self
pub fn set_availability(self, input: Option<DeviceAvailability>) -> Self
Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more