mirror of
https://git.proxmox.com/git/proxmox
synced 2025-06-01 20:12:47 +00:00
![]() This way we can copy and modify a schema. Eg. via the following ways: const FOO_SCHEMA: Schema = SOME_SCHEMA .unwrap_integer_schema_cloned() .description("Foo") .schema(); Note that for example there is currently no builder to set a `default_key` for an `ObjectSchema` back to None, so one could do: const FOO_SCHEMA: Schema = const { let mut schema = SOME_SCHEMA.unwrap_object_schema_cloned(); schema.default_key = None; schema.schema() }; Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> |
||
---|---|---|
.. | ||
de | ||
ser | ||
api_type_macros.rs | ||
api_types.rs | ||
const_regex.rs | ||
format.rs | ||
lib.rs | ||
property_string.rs | ||
schema.rs | ||
upid.rs |