[pve-devel] [PATCH installer v2 1/2] auto: answer: drop unneeded #[serde(default)] attributes
Christoph Heiss
c.heiss at proxmox.com
Mon Jul 7 12:08:13 CEST 2025
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.heiss at 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
More information about the pve-devel
mailing list