From 78c84299947e887fe8d8c737656318f409c7f0b4 Mon Sep 17 00:00:00 2001 From: Noor Date: Mon, 27 Jan 2025 10:48:54 +0000 Subject: [PATCH] add Default trait implementation to Uuid and Resource structs --- src/types/shared.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/shared.rs b/src/types/shared.rs index ef3e5e9..6116dd7 100644 --- a/src/types/shared.rs +++ b/src/types/shared.rs @@ -225,7 +225,7 @@ impl From for pb_shared::Container { } } -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize, Default)] pub struct Uuid { pub uuid: String, } @@ -240,7 +240,7 @@ impl From for pb_shared::Uuid { pb_shared::Uuid { uuid: val.uuid } } } -#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)] pub struct Resource { pub memory_mb: u32, pub disk_mb: u32,