harbor_api/models/
vulnerability_summary.rs

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