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: Map<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: Map<String, Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for OsContext
impl<'de> Deserialize<'de> for OsContext
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for OsContext
Auto Trait Implementations
impl RefUnwindSafe for OsContext
impl Send for OsContext
impl Sync for OsContext
impl Unpin for OsContext
impl UnwindSafe for OsContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more