pub struct IosModel {
pub id: String,
pub name: String,
pub supported_version_ids: Vec<String>,
pub tags: Vec<String>,
pub device_capabilities: Vec<String>,
pub screen_x: i32,
pub screen_y: i32,
pub screen_density: i32,
pub form_factor: i32,
pub per_version_info: Vec<PerIosVersionInfo>,
}
Expand description
A description of an iOS device tests may be run on.
Fields§
§id: String
The unique opaque id for this model. Use this for invoking the TestExecutionService.
name: String
The human-readable name for this device model. Examples: “iPhone 4s”, “iPad Mini 2”.
supported_version_ids: Vec<String>
The set of iOS major software versions this device supports.
Tags for this dimension. Examples: “default”, “preview”, “deprecated”.
device_capabilities: Vec<String>
Device capabilities. Copied from https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html
screen_x: i32
Screen size in the horizontal (X) dimension measured in pixels.
screen_y: i32
Screen size in the vertical (Y) dimension measured in pixels.
screen_density: i32
Screen density in DPI.
form_factor: i32
Whether this device is a phone, tablet, wearable, etc.
per_version_info: Vec<PerIosVersionInfo>
Version-specific information of an iOS model.
Implementations§
source§impl IosModel
impl IosModel
sourcepub fn form_factor(&self) -> DeviceFormFactor
pub fn form_factor(&self) -> DeviceFormFactor
Returns the enum value of form_factor
, or the default if the field is set to an invalid enum value.
sourcepub fn set_form_factor(&mut self, value: DeviceFormFactor)
pub fn set_form_factor(&mut self, value: DeviceFormFactor)
Sets form_factor
to the provided enum value.
Trait Implementations§
source§impl Message for IosModel
impl Message for IosModel
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for IosModel
impl PartialEq for IosModel
impl StructuralPartialEq for IosModel
Auto Trait Implementations§
impl Freeze for IosModel
impl RefUnwindSafe for IosModel
impl Send for IosModel
impl Sync for IosModel
impl Unpin for IosModel
impl UnwindSafe for IosModel
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request