[pdm-devel] applied-series: [RFC proxmox{, -yew-comp, -datacenter-manager}/yew-mobile-gui v2 0/7] Add fallback variant to enum properties in Proxmox VE Rust API types
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Nov 13 22:28:13 CET 2025
Am 13.11.25 um 16:09 schrieb Stefan Hanreich:
> ## Introduction
>
> This patch series adds a new fallback variant to all enums that are
> auto-generated in pve-api-types. This ensures that the addition of new enum
> variants in the Proxmox VE API does not break the deserialization of Proxmox VE
> API types in PDM. Rather, the unknown enum variant is now populated with the
> parsed enum variant name. For that matter this patch series introduces a new
> string type, FixedString. It can store up to 23 characters and is Copy, which is
> the main reason for introducing this custom string type. This lets us keep Copy
> in our generated enums.
applied, thanks!
Not set in stone and rolling this out now gives use more experience before
first stable PDM, where this will actually start to matter a lot.
More information about the pdm-devel
mailing list