harbor-api 2.0.0

These APIs provide services for manipulating Harbor project.
Documentation
/*
 * 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,
        }
    }
}