[−][src]Struct sentry::internals::protocol::v7::DeviceContext
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: BTreeMap<String, Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations
impl Clone for DeviceContext
[src]
fn clone(&self) -> DeviceContext
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DeviceContext
[src]
impl Default for DeviceContext
[src]
fn default() -> DeviceContext
[src]
impl<'de> Deserialize<'de> for DeviceContext
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<DeviceContext, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<DeviceContext, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl From<DeviceContext> for Context
[src]
fn from(data: DeviceContext) -> Context
[src]
impl PartialEq<DeviceContext> for DeviceContext
[src]
fn eq(&self, other: &DeviceContext) -> bool
[src]
fn ne(&self, other: &DeviceContext) -> bool
[src]
impl Serialize for DeviceContext
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralPartialEq for DeviceContext
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceContext
impl Send for DeviceContext
impl Sync for DeviceContext
impl Unpin for DeviceContext
impl UnwindSafe for DeviceContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,