From 7e2876d93582806ef753708f20b1f4d2917fb805 Mon Sep 17 00:00:00 2001 From: Jia Chao Date: Tue, 18 Jun 2024 16:23:17 +0800 Subject: [PATCH] fix: make db fileds public Signed-off-by: Jia Chao --- src/lib.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c76a0ed..30b215f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ mod test; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct UpdateInfoDb { - db: Vec, + pub db: Vec, } impl UpdateInfoDb { @@ -46,28 +46,28 @@ impl UpdateInfoDb { #[derive(Debug, Clone, Serialize, Deserialize)] pub struct UpdateInfo { // sa id - id: String, + pub id: String, // sa title - title: String, + pub title: String, // sa severity - severity: Severity, + pub severity: Severity, // the product? openEuler/CULinux - release: String, + pub release: String, // 用处不大,先不用 //date: String, // cve ids,可能有多个 - cves: Vec, + pub cves: Vec, // 安全公告的描述 - description: String, + pub description: String, // 此次更新包含的软件包列表 - pkglist: Vec, + pub pkglist: Vec, } impl UpdateInfo {