mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-29 15:07:51 +00:00
![]() The `Updatable` trait is our mechanism for "updating" values. The `Updater` trait is a serde-helper to allow using `skip_serializing_if` on api type structs which `#[derive(Updater)]` All basic types implement `Updatable<Updater = Option<T>>`, and all `Option<T>` where `T: Updatable` are implicitly also updatable from `Option<T>`. With the update to the `#[api]` macro, all `#[api]` types will implicitly `#[derive(Updatable)]` via the default implementation (which simply assignes from an `Option<Self>`), unless they explicitly also `#[derive(Updater)]` in which case an implementation is derived which goes through each "field" found in the updater. To prevent fields from being updatable via an Updater `#[updater(fixed)]` can be used. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> |
||
---|---|---|
.. | ||
debian | ||
examples | ||
src | ||
Cargo.toml | ||
u2f-api.js |