Vec::new is Vec's default default
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
0224c3c273
commit
b59c308219
@ -75,8 +75,7 @@ pub struct UserWithTokens {
|
|||||||
pub lastname: Option<String>,
|
pub lastname: Option<String>,
|
||||||
#[serde(skip_serializing_if="Option::is_none")]
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub email: Option<String>,
|
pub email: Option<String>,
|
||||||
#[serde(skip_serializing_if="Vec::is_empty")]
|
#[serde(skip_serializing_if="Vec::is_empty", default)]
|
||||||
#[serde(default="Vec::new")]
|
|
||||||
pub tokens: Vec<user::ApiToken>,
|
pub tokens: Vec<user::ApiToken>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user