harbor_api/models/
native_report_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/// NativeReportSummary : The summary for the native report
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NativeReportSummary {
17    /// id of the native scan report
18    #[serde(rename = "report_id", skip_serializing_if = "Option::is_none")]
19    pub report_id: Option<String>,
20    /// The status of the report generating process
21    #[serde(rename = "scan_status", skip_serializing_if = "Option::is_none")]
22    pub scan_status: Option<String>,
23    /// The overall severity
24    #[serde(rename = "severity", skip_serializing_if = "Option::is_none")]
25    pub severity: Option<String>,
26    /// The seconds spent for generating the report
27    #[serde(rename = "duration", skip_serializing_if = "Option::is_none")]
28    pub duration: Option<i64>,
29    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
30    pub summary: Option<Box<models::VulnerabilitySummary>>,
31    /// The start time of the scan process that generating report
32    #[serde(rename = "start_time", skip_serializing_if = "Option::is_none")]
33    pub start_time: Option<String>,
34    /// The end time of the scan process that generating report
35    #[serde(rename = "end_time", skip_serializing_if = "Option::is_none")]
36    pub end_time: Option<String>,
37    /// The complete percent of the scanning which value is between 0 and 100
38    #[serde(rename = "complete_percent", skip_serializing_if = "Option::is_none")]
39    pub complete_percent: Option<i32>,
40    #[serde(rename = "scanner", skip_serializing_if = "Option::is_none")]
41    pub scanner: Option<Box<models::Scanner>>,
42}
43
44impl NativeReportSummary {
45    /// The summary for the native report
46    pub fn new() -> NativeReportSummary {
47        NativeReportSummary {
48            report_id: None,
49            scan_status: None,
50            severity: None,
51            duration: None,
52            summary: None,
53            start_time: None,
54            end_time: None,
55            complete_percent: None,
56            scanner: None,
57        }
58    }
59}
60