#[repr(C)]pub struct DeviceInfo {
pub os_version: String,
pub os_api_level: u32,
pub manufacturer: String,
pub model: String,
}Expand description
The phone’s OS version and model, from the built-in device capability’s info op. Read-only
and non-identifying: no serial, advertising id or user-set device name. A field the shell can’t
know is empty (0 for os_api_level); the web shell knows none of them.
Fields§
§os_version: String"13" (Android Build.VERSION.RELEASE) / "17.5" (iOS systemVersion).
os_api_level: u32Android Build.VERSION.SDK_INT; 0 elsewhere.
manufacturer: String"samsung" / "Apple".
model: String"SM-A325F" (Android Build.MODEL) / "iPhone15,2" (iOS hardware identifier).
Implementations§
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Source§impl Default for DeviceInfo
impl Default for DeviceInfo
Source§impl<'de> Deserialize<'de> for DeviceInfo
impl<'de> Deserialize<'de> for DeviceInfo
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
impl Eq for DeviceInfo
Source§impl<'ʄ> Facet<'ʄ> for DeviceInfo
impl<'ʄ> Facet<'ʄ> for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
Source§impl Serialize for DeviceInfo
impl Serialize for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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