diff --git a/common/src/metrics.rs b/common/src/metrics.rs index 26247f0..d3cf3ca 100644 --- a/common/src/metrics.rs +++ b/common/src/metrics.rs @@ -40,7 +40,7 @@ pub struct Disk { pub total: u64, } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct Memory { pub used: u64, pub total: u64, @@ -48,7 +48,7 @@ pub struct Memory { pub swap_total: u64, } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct Network { pub down: u64, pub up: u64,