mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-06 15:02:46 +00:00
Interface: fix deserialize (add default)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
1fd995c54c
commit
9404f0ff9f
@ -268,9 +268,9 @@ pub struct Interface {
|
|||||||
/// IPv6 gateway
|
/// IPv6 gateway
|
||||||
pub gateway6: Option<String>,
|
pub gateway6: Option<String>,
|
||||||
|
|
||||||
#[serde(skip_serializing_if = "Vec::is_empty")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub options: Vec<String>,
|
pub options: Vec<String>,
|
||||||
#[serde(skip_serializing_if = "Vec::is_empty")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub options6: Vec<String>,
|
pub options6: Vec<String>,
|
||||||
|
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
Loading…
Reference in New Issue
Block a user