mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-22 03:33:27 +00:00
api-types: derive Display and FromStr for MaintenanceType
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
5196e0bbee
commit
cf10742842
@ -47,6 +47,8 @@ pub enum MaintenanceType {
|
|||||||
/// Neither read nor write operations are allowed on the datastore.
|
/// Neither read nor write operations are allowed on the datastore.
|
||||||
Offline,
|
Offline,
|
||||||
}
|
}
|
||||||
|
serde_plain::derive_display_from_serialize!(MaintenanceType);
|
||||||
|
serde_plain::derive_fromstr_from_deserialize!(MaintenanceType);
|
||||||
|
|
||||||
#[api(
|
#[api(
|
||||||
properties: {
|
properties: {
|
||||||
|
Loading…
Reference in New Issue
Block a user