From c06184b2ff121ad829db9cc65e92af56f66d442e Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sat, 23 Apr 2022 21:31:34 -0400 Subject: teach Houses how to download Vans --- src/waifu.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/waifu.rs') diff --git a/src/waifu.rs b/src/waifu.rs index da9653f..bb99d2b 100644 --- a/src/waifu.rs +++ b/src/waifu.rs @@ -8,7 +8,7 @@ use crate::errors::Error; * Defines the amount of memory a waifu has */ #[derive(Debug, Serialize, Deserialize)] -pub struct Memory(u64); +pub struct Memory(pub u64); impl From for Memory { fn from(u: u64) -> Self { @@ -16,16 +16,11 @@ impl From for Memory { } } -impl Memory { - pub fn count(&self) -> u64 { - self.0 - } -} /** * Defines the number of vCPUs a waifu has */ #[derive(Debug, Serialize, Deserialize)] -pub struct CpuCount(u64); +pub struct CpuCount(pub u64); impl From for CpuCount { fn from(u: u64) -> Self { @@ -33,11 +28,6 @@ impl From for CpuCount { } } -impl CpuCount { - pub fn count(&self) -> u64 { - self.0 - } -} /** * Represents a virtual machine, that's active on some server * -- cgit v1.2.3