Struct actix_tools::sentry::sentry_client::protocol::OsContext [−]
pub struct OsContext { pub name: Option<String>, pub version: Option<String>, pub build: Option<String>, pub kernel_version: Option<String>, pub rooted: Option<bool>, }
Holds operating system information.
Fields
name: Option<String>
The name of the operating system.
version: Option<String>
The version of the operating system.
build: Option<String>
The internal build number of the operating system.
kernel_version: Option<String>
The current kernel version.
rooted: Option<bool>
An indicator if the os is rooted (mobile mostly).
Trait Implementations
impl Serialize for OsContext
impl Serialize for OsContext
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Clone for OsContext
impl Clone for OsContext
fn clone(&self) -> OsContext
fn clone(&self) -> OsContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for OsContext
impl Default for OsContext
impl Debug for OsContext
impl Debug for OsContext
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for OsContext
impl<'de> Deserialize<'de> for OsContext
fn deserialize<__D>(
__deserializer: __D
) -> Result<OsContext, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<OsContext, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<OsContext> for OsContext
impl PartialEq<OsContext> for OsContext
fn eq(&self, other: &OsContext) -> bool
fn eq(&self, other: &OsContext) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &OsContext) -> bool
fn ne(&self, other: &OsContext) -> bool
This method tests for !=
.
impl From<OsContext> for Context
impl From<OsContext> for Context
impl From<OsContext> for ContextData
impl From<OsContext> for ContextData
fn from(data: OsContext) -> ContextData
fn from(data: OsContext) -> ContextData
Performs the conversion.