From 83af1cdce4530f8301c6fdfa2bc733e260a21b31 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 16 Oct 2023 12:27:28 +0200 Subject: [PATCH] HumanByte: make fields public Signed-off-by: Dietmar Maurer --- proxmox-human-byte/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-human-byte/src/lib.rs b/proxmox-human-byte/src/lib.rs index ef680b4e..650b8374 100644 --- a/proxmox-human-byte/src/lib.rs +++ b/proxmox-human-byte/src/lib.rs @@ -124,9 +124,9 @@ fn strip_unit(v: &str) -> (&str, SizeUnit) { #[derive(Debug, Copy, Clone, UpdaterType, PartialEq)] pub struct HumanByte { /// The siginficant value, it does not includes any factor of the `unit` - size: f64, + pub size: f64, /// The scale/unit of the value - unit: SizeUnit, + pub unit: SizeUnit, } fn verify_human_byte(s: &str) -> Result<(), Error> {