rrd-api-types: make mode and timeframe +Eq+PartialEq+Debug
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
b38568158a
commit
4f787391de
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user