Skip to main content

harbor_api/models/
sbom_overview.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/// SbomOverview : The generate SBOM overview information
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SbomOverview {
17    /// The start time of the generating sbom report task
18    #[serde(rename = "start_time", skip_serializing_if = "Option::is_none")]
19    pub start_time: Option<String>,
20    /// The end time of the generating sbom report task
21    #[serde(rename = "end_time", skip_serializing_if = "Option::is_none")]
22    pub end_time: Option<String>,
23    /// The status of the generating SBOM task
24    #[serde(rename = "scan_status", skip_serializing_if = "Option::is_none")]
25    pub scan_status: Option<String>,
26    /// The digest of the generated SBOM accessory
27    #[serde(rename = "sbom_digest", skip_serializing_if = "Option::is_none")]
28    pub sbom_digest: Option<String>,
29    /// id of the native scan report
30    #[serde(rename = "report_id", skip_serializing_if = "Option::is_none")]
31    pub report_id: Option<String>,
32    /// Time in seconds required to create the report
33    #[serde(rename = "duration", skip_serializing_if = "Option::is_none")]
34    pub duration: Option<i64>,
35    #[serde(rename = "scanner", skip_serializing_if = "Option::is_none")]
36    pub scanner: Option<Box<models::Scanner>>,
37}
38
39impl SbomOverview {
40    /// The generate SBOM overview information
41    pub fn new() -> SbomOverview {
42        SbomOverview {
43            start_time: None,
44            end_time: None,
45            scan_status: None,
46            sbom_digest: None,
47            report_id: None,
48            duration: None,
49            scanner: None,
50        }
51    }
52}
53