2022-02-16 19:37:38 -03:00
|
|
|
/// Contains informations about the system (e.g. system name, processor, memory, graphics adapter).
|
2022-04-14 02:11:43 -03:00
|
|
|
#[derive(Clone, Debug)]
|
2022-02-16 19:37:38 -03:00
|
|
|
pub struct Information {
|
2022-03-08 19:58:34 -03:00
|
|
|
/// Contains the system name.
|
|
|
|
|
pub system_name: Option<String>,
|
|
|
|
|
/// Contains the kernel version.
|
|
|
|
|
pub system_kernel: Option<String>,
|
|
|
|
|
/// Contains the systme version.
|
|
|
|
|
pub system_version: Option<String>,
|
|
|
|
|
/// Contains the processor brand.
|
|
|
|
|
pub cpu_brand: String,
|
|
|
|
|
/// Contains the number of physical cores on the processor.
|
|
|
|
|
pub cpu_cores: Option<usize>,
|
|
|
|
|
/// Contains the total RAM size in KB.
|
|
|
|
|
pub memory_total: u64,
|
2022-04-14 02:11:43 -03:00
|
|
|
/// Contains the system used RAM size in KB.
|
|
|
|
|
pub memory_used: Option<u64>,
|
2022-03-17 00:58:28 -03:00
|
|
|
/// Contains the graphics backend.
|
|
|
|
|
pub graphics_backend: String,
|
|
|
|
|
/// Contains the graphics adapter.
|
|
|
|
|
pub graphics_adapter: String,
|
2022-02-16 19:37:38 -03:00
|
|
|
}
|