Initial commit: CPU management API

This commit is contained in:
Popov Aleksandr
2025-10-09 18:02:17 +03:00
commit 255706974f
13 changed files with 509 additions and 0 deletions

11
src/models.rs Normal file
View File

@ -0,0 +1,11 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Cpu {
pub id: i64,
pub brand: String,
pub model: String,
pub frequency_mhz: i32,
pub cores: i32,
pub threads: i32,
}