mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-13 11:20:42 +00:00
![]() 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-test | ||
proxmox | ||
proxmox-api | ||
proxmox-api-macro | ||
proxmox-sys | ||
proxmox-tools | ||
.gitignore | ||
Cargo.toml | ||
Makefile | ||
rust-toolchain | ||
rustfmt.toml |