rrd-api-types: make mode and timeframe +Eq+PartialEq+Debug

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-09-19 14:54:33 +02:00
parent b38568158a
commit 4f787391de

View File

@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
use proxmox_schema::api;
#[api]
#[derive(Copy, Clone, Serialize, Deserialize)]
#[derive(Clone, Copy, Debug, Serialize, Deserialize, Eq, PartialEq)]
#[serde(rename_all = "UPPERCASE")]
/// RRD consolidation mode
pub enum RRDMode {
@ -17,7 +17,7 @@ serde_plain::derive_display_from_serialize!(RRDMode);
serde_plain::derive_fromstr_from_deserialize!(RRDMode);
#[api]
#[derive(Copy, Clone, Serialize, Deserialize)]
#[derive(Clone, Copy, Debug, Serialize, Deserialize, Eq, PartialEq)]
#[serde(rename_all = "lowercase")]
/// RRD time frame
pub enum RRDTimeFrame {