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

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>,
}

Holds device information.

Fields

The name of the device.

The family of the device model.

The device model (human readable)

The device model (internal identifier)

The native cpu architecture of the device.

The current battery level (0-100)

The current screen orientation.

Simulator/prod indicator

Total memory available

How much memory is still available.

How much memory is usable for the app.

Total storage size of the device.

How much storage is free.

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

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

Optionally an indicator when the device was booted.

The timezone of the device.

Trait Implementations

impl Debug for DeviceContext
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for DeviceContext
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for DeviceContext
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for DeviceContext
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl From<DeviceContext> for ContextData
[src]

[src]

Performs the conversion.

impl From<DeviceContext> for Context
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for DeviceContext

impl Sync for DeviceContext