forked from proxmox-mirrors/proxmox
![]() Not sure how we want to actually handle default values yet. For now we need to figure out what "feels best". This adds default values as publicly available consts so they can be accessed from anywhere as `API_METHOD_<METHOD_NAME>_PARAM_DEFAULT_<PARAM_NAME>`. This is quite a handful to type, but I'm not sure how to make this better. Within the function body we also have the `api_get_default!(param_name)` macro which is more convenient, but not available outside the `#[api]` tagged function. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> |
||
---|---|---|
.. | ||
debian | ||
src | ||
tests | ||
Cargo.toml |