From da96712a39ee11fae665854605318c84054a0e4f Mon Sep 17 00:00:00 2001 From: csehviktor Date: Thu, 3 Jul 2025 06:12:54 +0200 Subject: [PATCH] deserialize structs --- common/src/metrics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,