diff --git a/proxmox-api-macro/src/api/method.rs b/proxmox-api-macro/src/api/method.rs index a29a42e2..974cf777 100644 --- a/proxmox-api-macro/src/api/method.rs +++ b/proxmox-api-macro/src/api/method.rs @@ -51,6 +51,12 @@ pub fn handle_method(mut attribs: JSONObject, mut func: syn::ItemFn) -> Result TokenStream::new(), }; + let reload_timezone: bool = attribs + .remove("reload_timezone") + .map(TryFrom::try_from) + .transpose()? + .unwrap_or(false); + let protected: bool = attribs .remove("protected") .map(TryFrom::try_from) @@ -142,6 +148,7 @@ pub fn handle_method(mut attribs: JSONObject, mut func: syn::ItemFn) -> Result