mirror of
https://git.proxmox.com/git/proxmox
synced 2025-11-03 19:22:30 +00:00
Object schemas can now declare a field which causes
'additional_properties' to be set to true and the field being ignored
in the schema.
This allows adding a flattened HashMap<String, Value> to gather the
additional unspecified properties.
#[api(additional_properties: "rest")]
struct Something {
#[serde(flatten)]
rest: HashMap<String, Value>,
}
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
|
||
|---|---|---|
| .. | ||
| allof.rs | ||
| api1.rs | ||
| api2.rs | ||
| ext-schema.rs | ||
| int-limits.rs | ||
| options.rs | ||
| section-config.rs | ||
| types.rs | ||
| updater.rs | ||