[][src]Struct sentry_types::protocol::v7::DeviceContext

pub struct DeviceContext {
    pub name: Option<String>,
    pub family: Option<String>,
    pub model: Option<String>,
    pub model_id: Option<String>,
    pub arch: Option<String>,
    pub battery_level: Option<f32>,
    pub orientation: Option<Orientation>,
    pub simulator: Option<bool>,
    pub memory_size: Option<u64>,
    pub free_memory: Option<u64>,
    pub usable_memory: Option<u64>,
    pub storage_size: Option<u64>,
    pub free_storage: Option<u64>,
    pub external_storage_size: Option<u64>,
    pub external_free_storage: Option<u64>,
    pub boot_time: Option<DateTime<Utc>>,
    pub timezone: Option<String>,
    pub other: Map<String, Value>,
}

Holds device information.

Fields

name: Option<String>

The name of the device.

family: Option<String>

The family of the device model.

model: Option<String>

The device model (human readable).

model_id: Option<String>

The device model (internal identifier).

arch: Option<String>

The native cpu architecture of the device.

battery_level: Option<f32>

The current battery level (0-100).

orientation: Option<Orientation>

The current screen orientation.

simulator: Option<bool>

Simulator/prod indicator.

memory_size: Option<u64>

Total memory available in byts.

free_memory: Option<u64>

How much memory is still available in bytes.

usable_memory: Option<u64>

How much memory is usable for the app in bytes.

storage_size: Option<u64>

Total storage size of the device in bytes.

free_storage: Option<u64>

How much storage is free in bytes.

external_storage_size: Option<u64>

Total size of the attached external storage in bytes (eg: android SDK card).

external_free_storage: Option<u64>

Free size of the attached external storage in bytes (eg: android SDK card).

boot_time: Option<DateTime<Utc>>

Optionally an indicator when the device was booted.

timezone: Option<String>

The timezone of the device.

other: Map<String, Value>

Additional arbitrary fields for forwards compatibility.

Trait Implementations

impl Clone for DeviceContext[src]

impl Debug for DeviceContext[src]

impl Default for DeviceContext[src]

impl<'de> Deserialize<'de> for DeviceContext[src]

impl From<DeviceContext> for Context[src]

impl PartialEq<DeviceContext> for DeviceContext[src]

impl Serialize for DeviceContext[src]

impl StructuralPartialEq for DeviceContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.