api: traffic_control: add missing rename to 'kebab-case'

otherwise the 'delete' properties need underscores
(e.g. 'burst_in' instead of 'burst-in')

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-11-19 15:42:26 +01:00 committed by Thomas Lamprecht
parent 118515dbd0
commit 4fe77c36df

View File

@ -99,6 +99,7 @@ pub fn read_traffic_control(
#[api()] #[api()]
#[derive(Serialize, Deserialize)] #[derive(Serialize, Deserialize)]
#[allow(non_camel_case_types)] #[allow(non_camel_case_types)]
#[serde(rename_all = "kebab-case")]
/// Deletable property name /// Deletable property name
pub enum DeletableProperty { pub enum DeletableProperty {
/// Delete the rate_in property. /// Delete the rate_in property.