forked from Proxmox/proxmox
4a154b3cb5
For when the underlying datatype is supposed to contain the type property and the schema does not mark it as optional. The use case here is to support flat `Remote` type where the "type" of pve/pmg/pbs is a property which is present in the `Remote` struct while being derived from the section type. This will implicitly include and strip the type of the json object after/before de/serializing. Alternatives would be - to mark the type as optional and just fill it out later when loading the data, but that is technically wrong... - have a 2nd version of the struct with the type field removed and From/Into implemented, but that's even more unwieldy. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> |
||
---|---|---|
.. | ||
debian | ||
src | ||
Cargo.toml |