api: apt update info: do not serialize extra info if none

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-11 17:20:33 +01:00
parent 2decf85d6e
commit 6f0073bbb5
1 changed files with 2 additions and 1 deletions

View File

@ -1177,7 +1177,8 @@ pub struct APTUpdateInfo {
pub section: String,
/// URL under which the package's changelog can be retrieved
pub change_log_url: String,
/// Additional package information
/// Custom extra field for additional package information
#[serde(skip_serializing_if="Option::is_none")]
pub extra_info: Option<String>,
}