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:
parent
118515dbd0
commit
4fe77c36df
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user