#[non_exhaustive]pub struct AndroidDevice {
pub android_model_id: String,
pub android_version_id: String,
pub locale: String,
pub orientation: String,
/* private fields */
}Expand description
A single Android device.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.android_model_id: StringRequired. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
android_version_id: StringRequired. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
locale: StringOptional. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
orientation: StringOptional. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
Implementations§
Source§impl AndroidDevice
impl AndroidDevice
pub fn new() -> Self
Sourcepub fn set_android_model_id<T: Into<String>>(self, v: T) -> Self
pub fn set_android_model_id<T: Into<String>>(self, v: T) -> Self
Sets the value of android_model_id.
§Example
ⓘ
let x = AndroidDevice::new().set_android_model_id("example");Sourcepub fn set_android_version_id<T: Into<String>>(self, v: T) -> Self
pub fn set_android_version_id<T: Into<String>>(self, v: T) -> Self
Sets the value of android_version_id.
§Example
ⓘ
let x = AndroidDevice::new().set_android_version_id("example");Sourcepub fn set_locale<T: Into<String>>(self, v: T) -> Self
pub fn set_locale<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_orientation<T: Into<String>>(self, v: T) -> Self
pub fn set_orientation<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AndroidDevice
impl Clone for AndroidDevice
Source§fn clone(&self) -> AndroidDevice
fn clone(&self) -> AndroidDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AndroidDevice
impl Debug for AndroidDevice
Source§impl Default for AndroidDevice
impl Default for AndroidDevice
Source§fn default() -> AndroidDevice
fn default() -> AndroidDevice
Returns the “default value” for a type. Read more
Source§impl Message for AndroidDevice
impl Message for AndroidDevice
Source§impl PartialEq for AndroidDevice
impl PartialEq for AndroidDevice
impl StructuralPartialEq for AndroidDevice
Auto Trait Implementations§
impl Freeze for AndroidDevice
impl RefUnwindSafe for AndroidDevice
impl Send for AndroidDevice
impl Sync for AndroidDevice
impl Unpin for AndroidDevice
impl UnwindSafe for AndroidDevice
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
Mutably borrows from an owned value. Read more