pub struct SystemInfo {Show 23 fields
pub protocol_version: u32,
pub username: Option<String>,
pub hostname: Option<String>,
pub host: Option<String>,
pub os: Option<String>,
pub distro: Option<String>,
pub model: Option<String>,
pub kernel: Option<String>,
pub os_age: Option<String>,
pub uptime: Option<String>,
pub packages: Option<String>,
pub shell: Option<String>,
pub wm: Option<String>,
pub de: Option<String>,
pub cpu: Option<String>,
pub gpu: Option<Vec<String>>,
pub memory: Option<String>,
pub disk: Option<Vec<(String, String)>>,
pub resolution: Option<String>,
pub theme: Option<String>,
pub battery: Option<Vec<String>>,
pub song: Option<SongInfo>,
pub colors: Option<String>,
}Expand description
Stable JSON-friendly representation of all collected system information.
Fields§
§protocol_version: u32§username: Option<String>§hostname: Option<String>§host: Option<String>§os: Option<String>§distro: Option<String>§model: Option<String>§kernel: Option<String>§os_age: Option<String>§uptime: Option<String>§packages: Option<String>§shell: Option<String>§wm: Option<String>§de: Option<String>§cpu: Option<String>§gpu: Option<Vec<String>>§memory: Option<String>§disk: Option<Vec<(String, String)>>§resolution: Option<String>§theme: Option<String>§battery: Option<Vec<String>>§song: Option<SongInfo>§colors: Option<String>Trait Implementations§
Source§impl Clone for SystemInfo
impl Clone for SystemInfo
Source§fn clone(&self) -> SystemInfo
fn clone(&self) -> SystemInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemInfo
impl Debug for SystemInfo
Source§impl<'de> Deserialize<'de> for SystemInfo
impl<'de> Deserialize<'de> for SystemInfo
Source§fn 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
Source§impl From<&SystemInfo> for Data
impl From<&SystemInfo> for Data
Source§fn from(value: &SystemInfo) -> Self
fn from(value: &SystemInfo) -> Self
Converts to this type from the input type.
Source§impl From<Data> for SystemInfo
impl From<Data> for SystemInfo
Auto Trait Implementations§
impl Freeze for SystemInfo
impl RefUnwindSafe for SystemInfo
impl Send for SystemInfo
impl Sync for SystemInfo
impl Unpin for SystemInfo
impl UnwindSafe for SystemInfo
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more