From: Dominik Csapak <d.csapak@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 1/2] api: traffic_control: add missing rename to 'kebab-case'
Date: Fri, 19 Nov 2021 15:42:26 +0100 [thread overview]
Message-ID: <20211119144227.1337999-3-d.csapak@proxmox.com> (raw)
In-Reply-To: <20211119144227.1337999-1-d.csapak@proxmox.com>
otherwise the 'delete' properties need underscores
(e.g. 'burst_in' instead of 'burst-in')
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
src/api2/config/traffic_control.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/api2/config/traffic_control.rs b/src/api2/config/traffic_control.rs
index fa580a55..dec0e3b2 100644
--- a/src/api2/config/traffic_control.rs
+++ b/src/api2/config/traffic_control.rs
@@ -99,6 +99,7 @@ pub fn read_traffic_control(
#[api()]
#[derive(Serialize, Deserialize)]
#[allow(non_camel_case_types)]
+#[serde(rename_all = "kebab-case")]
/// Deletable property name
pub enum DeletableProperty {
/// Delete the rate_in property.
--
2.30.2
next prev parent reply other threads:[~2021-11-19 14:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-19 14:42 [pbs-devel] [PATCH widget-toolkit/proxmox-backup] implement traffic-control ui Dominik Csapak
2021-11-19 14:42 ` [pbs-devel] [PATCH widget-toolkit 1/1] form: copy BandwidthSelector/SizeField from PVE Dominik Csapak
2021-11-19 15:12 ` [pbs-devel] applied: " Thomas Lamprecht
2021-11-19 14:42 ` Dominik Csapak [this message]
2021-11-20 21:47 ` [pbs-devel] applied: [PATCH proxmox-backup 1/2] api: traffic_control: add missing rename to 'kebab-case' Thomas Lamprecht
2021-11-19 14:42 ` [pbs-devel] [PATCH proxmox-backup 2/2] ui: add Traffic Control UI Dominik Csapak
2021-11-20 21:57 ` [pbs-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211119144227.1337999-3-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox