Signed-off-by: Aaron Lauterer <a.laute...@proxmox.com> --- proxmox-installer-common/src/setup.rs | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/proxmox-installer-common/src/setup.rs b/proxmox-installer-common/src/setup.rs index f9f9e82..19113e1 100644 --- a/proxmox-installer-common/src/setup.rs +++ b/proxmox-installer-common/src/setup.rs @@ -39,6 +39,16 @@ impl ProxmoxProduct { } } +impl fmt::Display for ProxmoxProduct { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match self { + Self::PVE => write!(f, "pve"), + Self::PMG => write!(f, "pmg"), + Self::PBS => write!(f, "pbs"), + } + } +} + #[derive(Clone, Deserialize)] pub struct ProductConfig { pub fullname: String, -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel