1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Harbor API
*
* These APIs provide services for manipulating Harbor project.
*
* The version of the OpenAPI document: 2.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// VulnerabilitySummary : VulnerabilitySummary contains the total number of the foun d vulnerabilities number and numbers of each severity level.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct VulnerabilitySummary {
/// The total number of the found vulnerabilities
#[serde(rename = "total", skip_serializing_if = "Option::is_none")]
pub total: Option<i32>,
/// The number of the fixable vulnerabilities
#[serde(rename = "fixable", skip_serializing_if = "Option::is_none")]
pub fixable: Option<i32>,
/// Numbers of the vulnerabilities with different severity
#[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
pub summary: Option<std::collections::HashMap<String, i32>>,
}
impl VulnerabilitySummary {
/// VulnerabilitySummary contains the total number of the foun d vulnerabilities number and numbers of each severity level.
pub fn new() -> VulnerabilitySummary {
VulnerabilitySummary {
total: None,
fixable: None,
summary: None,
}
}
}