From cf10742842aaea24705e8d9b61d8c585bc554ff2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 25 Nov 2022 11:18:56 +0100 Subject: [PATCH] api-types: derive Display and FromStr for MaintenanceType Signed-off-by: Wolfgang Bumiller --- pbs-api-types/src/maintenance.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pbs-api-types/src/maintenance.rs b/pbs-api-types/src/maintenance.rs index 692be021..e46ba90a 100644 --- a/pbs-api-types/src/maintenance.rs +++ b/pbs-api-types/src/maintenance.rs @@ -47,6 +47,8 @@ pub enum MaintenanceType { /// Neither read nor write operations are allowed on the datastore. Offline, } +serde_plain::derive_display_from_serialize!(MaintenanceType); +serde_plain::derive_fromstr_from_deserialize!(MaintenanceType); #[api( properties: {