forked from proxmox-mirrors/proxmox
In PVE we have multiple different enum types: hyphenated,
all-caps, underscores.
By default our api-macro enums will convert CamelCase to
underscores, so we need a way to represent the rest:
enum AnEnum {
CaseOne, // becomes "case_one",
#[api(rename = "case-two")]
CaseTwo, // "case-two",
#[api(rename = "CASE_THREE")]
CaseThree,
}
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
|
||
|---|---|---|
| .. | ||
| api_def.rs | ||
| api_macro.rs | ||
| lib.rs | ||
| parsing.rs | ||
| router_macro.rs | ||
| types.rs | ||
| util.rs | ||