api-types: derive Display and FromStr for MaintenanceType

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-11-25 11:18:56 +01:00 committed by Thomas Lamprecht
parent 5196e0bbee
commit cf10742842

View File

@ -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: {