pub struct OsContext {
pub name: Option<String>,
pub version: Option<String>,
pub build: Option<String>,
pub kernel_version: Option<String>,
pub rooted: Option<bool>,
pub other: BTreeMap<String, Value>,
}
Expand description
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).
other: BTreeMap<String, Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
source§impl<'de> Deserialize<'de> for OsContext
impl<'de> Deserialize<'de> for OsContext
source§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
source§impl Serialize for OsContext
impl Serialize for OsContext
source§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 StructuralPartialEq for OsContext
Auto Trait Implementations§
impl Freeze for OsContext
impl RefUnwindSafe for OsContext
impl Send for OsContext
impl Sync for OsContext
impl Unpin for OsContext
impl UnwindSafe for OsContext
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)