For `Option<>`s, serde automatically defaults to `None` for deserialization in case the key is missing in the source.
No functional changes. Signed-off-by: Christoph Heiss <c.he...@proxmox.com> --- Changes v1 -> v2: * no changes proxmox-auto-installer/src/answer.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/proxmox-auto-installer/src/answer.rs b/proxmox-auto-installer/src/answer.rs index aafe38f..c500933 100644 --- a/proxmox-auto-installer/src/answer.rs +++ b/proxmox-auto-installer/src/answer.rs @@ -22,9 +22,7 @@ pub struct Answer { pub network: Network, #[serde(rename = "disk-setup")] pub disks: Disks, - #[serde(default)] pub post_installation_webhook: Option<PostNotificationHookInfo>, - #[serde(default)] pub first_boot: Option<FirstBootHookInfo>, } -- 2.49.0 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel