kanade_shared/wire/
inventory.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize, Debug, Clone)]
4pub struct HwInventory {
5 pub pc_id: String,
6 pub hostname: String,
7 pub os_name: String,
8 pub os_version: String,
9 pub os_build: Option<String>,
10 pub cpu_model: String,
11 pub cpu_cores: u32,
12 pub ram_bytes: u64,
13 pub disks: Vec<DiskInfo>,
14 pub collected_at: chrono::DateTime<chrono::Utc>,
15}
16
17#[derive(Serialize, Deserialize, Debug, Clone)]
18pub struct DiskInfo {
19 pub device_id: String,
20 pub size_bytes: u64,
21 pub free_bytes: u64,
22 pub file_system: Option<String>,
23}