pub struct DeviceSpec {
pub screen_density: Option<u32>,
pub supported_abis: Option<Vec<String>>,
pub supported_locales: Option<Vec<String>>,
}Expand description
The device spec used to generate a system APK.
This type is not used in any activity, and only used as part of another schema.
Fields§
§screen_density: Option<u32>Screen dpi.
supported_abis: Option<Vec<String>>Supported ABI architectures in the order of preference. The values should be the string as reported by the platform, e.g. “armeabi-v7a”, “x86_64”.
supported_locales: Option<Vec<String>>All installed locales represented as BCP-47 strings, e.g. “en-US”.
Trait Implementations§
Source§impl Clone for DeviceSpec
impl Clone for DeviceSpec
Source§fn clone(&self) -> DeviceSpec
fn clone(&self) -> DeviceSpec
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 DeviceSpec
impl Debug for DeviceSpec
Source§impl Default for DeviceSpec
impl Default for DeviceSpec
Source§fn default() -> DeviceSpec
fn default() -> DeviceSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceSpec
impl<'de> Deserialize<'de> for DeviceSpec
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 DeviceSpec
impl Serialize for DeviceSpec
impl Part for DeviceSpec
Auto Trait Implementations§
impl Freeze for DeviceSpec
impl RefUnwindSafe for DeviceSpec
impl Send for DeviceSpec
impl Sync for DeviceSpec
impl Unpin for DeviceSpec
impl UnwindSafe for DeviceSpec
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