pub struct DeviceMetadata {
pub cpu_make: Option<String>,
pub cpu_model: Option<String>,
pub device_class: Option<String>,
pub gl_es_version: Option<i32>,
pub manufacturer: Option<String>,
pub native_platform: Option<String>,
pub product_name: Option<String>,
pub ram_mb: Option<i32>,
pub screen_density_dpi: Option<i32>,
pub screen_height_px: Option<i32>,
pub screen_width_px: Option<i32>,
}Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§cpu_make: Option<String>Device CPU make e.g. “Qualcomm”
cpu_model: Option<String>Device CPU model e.g. “MSM8974”
device_class: Option<String>Device class (e.g. tablet)
gl_es_version: Option<i32>OpenGL version
manufacturer: Option<String>Device manufacturer (e.g. Motorola)
native_platform: Option<String>Comma separated list of native platforms (e.g. “arm”, “arm7”)
product_name: Option<String>Device model name (e.g. Droid)
ram_mb: Option<i32>Device RAM in Megabytes e.g. “2048”
screen_density_dpi: Option<i32>Screen density in DPI
screen_height_px: Option<i32>Screen height in pixels
screen_width_px: Option<i32>Screen width in pixels
Trait Implementations§
Source§impl Clone for DeviceMetadata
impl Clone for DeviceMetadata
Source§fn clone(&self) -> DeviceMetadata
fn clone(&self) -> DeviceMetadata
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 DeviceMetadata
impl Debug for DeviceMetadata
Source§impl Default for DeviceMetadata
impl Default for DeviceMetadata
Source§fn default() -> DeviceMetadata
fn default() -> DeviceMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceMetadata
impl<'de> Deserialize<'de> for DeviceMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 DeviceMetadata
impl Serialize for DeviceMetadata
impl Part for DeviceMetadata
Auto Trait Implementations§
impl Freeze for DeviceMetadata
impl RefUnwindSafe for DeviceMetadata
impl Send for DeviceMetadata
impl Sync for DeviceMetadata
impl Unpin for DeviceMetadata
impl UnwindSafe for DeviceMetadata
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