1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct CpuStats {
    pub system_mode: Option<f64>,
    pub user_mode: Option<f64>,
    pub total_ticks: Option<f64>,
    pub throttled_periods: Option<i32>,
    pub throttled_time: Option<i32>,
    pub percent: Option<f64>,
    pub measured: Option<Vec<String>>,
}