add Default trait implementation to Uuid and Resource structs
This commit is contained in:
parent
73eac4cb04
commit
78c8429994
@ -225,7 +225,7 @@ impl From<Container> for pb_shared::Container {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
||||||
pub struct Uuid {
|
pub struct Uuid {
|
||||||
pub uuid: String,
|
pub uuid: String,
|
||||||
}
|
}
|
||||||
@ -240,7 +240,7 @@ impl From<Uuid> for pb_shared::Uuid {
|
|||||||
pb_shared::Uuid { uuid: val.uuid }
|
pb_shared::Uuid { uuid: val.uuid }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)]
|
||||||
pub struct Resource {
|
pub struct Resource {
|
||||||
pub memory_mb: u32,
|
pub memory_mb: u32,
|
||||||
pub disk_mb: u32,
|
pub disk_mb: u32,
|
||||||
|
Loading…
Reference in New Issue
Block a user