Struct google_testing1::AndroidModel

source ·
pub struct AndroidModel {
Show 14 fields pub form_factor: Option<String>, pub name: Option<String>, pub form: Option<String>, pub video_recording_not_supported: Option<bool>, pub screen_density: Option<i32>, pub brand: Option<String>, pub tags: Option<Vec<String>>, pub id: Option<String>, pub supported_version_ids: Option<Vec<String>>, pub supported_abis: Option<Vec<String>>, pub screen_x: Option<i32>, pub screen_y: Option<i32>, pub manufacturer: Option<String>, pub codename: Option<String>,
}
Expand description

A description of an Android device tests may be run on.

This type is not used in any activity, and only used as part of another schema.

Fields§

§form_factor: Option<String>

Whether this device is a phone, tablet, wearable, etc. @OutputOnly

§name: Option<String>

The human-readable marketing name for this device model. Examples: “Nexus 5”, “Galaxy S5” @OutputOnly

§form: Option<String>

Whether this device is virtual or physical. @OutputOnly

§video_recording_not_supported: Option<bool>

True if and only if tests with this model DO NOT have video output. See also TestSpecification.disable_video_recording @OutputOnly

§screen_density: Option<i32>

Screen density in DPI. This corresponds to ro.sf.lcd_density @OutputOnly

§brand: Option<String>

The company that this device is branded with. Example: “Google”, “Samsung” @OutputOnly

§tags: Option<Vec<String>>

Tags for this dimension. Examples: “default”, “preview”, “deprecated”

§id: Option<String>

The unique opaque id for this model. Use this for invoking the TestExecutionService. @OutputOnly

§supported_version_ids: Option<Vec<String>>

The set of Android versions this device supports. @OutputOnly

§supported_abis: Option<Vec<String>>

The list of supported ABIs for this device. This corresponds to either android.os.Build.SUPPORTED_ABIS (for API level 21 and above) or android.os.Build.CPU_ABI/CPU_ABI2. The most preferred ABI is the first element in the list.

Elements are optionally prefixed by “version_id:” (where version_id is the id of an AndroidVersion), denoting an ABI that is supported only on a particular version. @OutputOnly

§screen_x: Option<i32>

Screen size in the horizontal (X) dimension measured in pixels. @OutputOnly

§screen_y: Option<i32>

Screen size in the vertical (Y) dimension measured in pixels. @OutputOnly

§manufacturer: Option<String>

The manufacturer of this device. @OutputOnly

§codename: Option<String>

The name of the industrial design. This corresponds to android.os.Build.DEVICE @OutputOnly

Trait Implementations§

source§

impl Clone for AndroidModel

source§

fn clone(&self) -> AndroidModel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AndroidModel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AndroidModel

source§

fn default() -> AndroidModel

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AndroidModel

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for AndroidModel

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Part for AndroidModel

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Typeable for T
where T: Any,

source§

fn get_type(&self) -> TypeId

Get the TypeId of this object.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,