pub struct Data {Show 21 fields
pub username: Option<String>,
pub hostname: 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
Holds all the collected system information for display. Each field corresponds to a block or value in the output.
Fields§
§username: Option<String>Username of the current user (e.g., “snape”)
hostname: Option<String>Hostname of the machine (e.g., “archbox”)
os: Option<String>Base OS name (e.g., “Linux”, “Windows”)
distro: Option<String>Distro string (format depends on DistroDisplay)
model: Option<String>Hardware model (e.g., “ThinkPad X1”)
kernel: Option<String>Kernel version (e.g., “6.14.6-arch1-1”)
os_age: Option<String>OS installation age string (e.g., “120 days”)
uptime: Option<String>Uptime string (format depends on UptimeShorthand)
packages: Option<String>Package count or summary (format depends on PackageShorthand)
shell: Option<String>Shell name and/or version (e.g., “zsh 5.9”)
wm: Option<String>Window manager name (e.g., “i3”, “Mutter”)
de: Option<String>Desktop environment name (e.g., “GNOME”, “KDE”)
cpu: Option<String>CPU info string (model, speed, cores, etc.)
gpu: Option<Vec<String>>List of GPU(s) detected
memory: Option<String>Memory usage string (format depends on Flags)
disk: Option<Vec<(String, String)>>List of disk usage entries (label, usage string)
resolution: Option<String>Display resolution (e.g., “1920x1080 @ 60Hz”)
theme: Option<String>Theme name (GTK/Qt/DE/Windows)
battery: Option<Vec<String>>List of battery info strings (format depends on BatteryDisplayMode)
song: Option<SongInfo>Currently playing song info (artist, album, title)
colors: Option<String>Terminal color palette string
Trait Implementations§
Source§impl From<&SystemInfo> for Data
impl From<&SystemInfo> for Data
Source§fn from(value: &SystemInfo) -> Self
fn from(value: &SystemInfo) -> Self
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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
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>
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>
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