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};

/// SbomOverview : The generate SBOM overview information
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SbomOverview {
    /// The start time of the generating sbom report task
    #[serde(rename = "start_time", skip_serializing_if = "Option::is_none")]
    pub start_time: Option<String>,
    /// The end time of the generating sbom report task
    #[serde(rename = "end_time", skip_serializing_if = "Option::is_none")]
    pub end_time: Option<String>,
    /// The status of the generating SBOM task
    #[serde(rename = "scan_status", skip_serializing_if = "Option::is_none")]
    pub scan_status: Option<String>,
    /// The digest of the generated SBOM accessory
    #[serde(rename = "sbom_digest", skip_serializing_if = "Option::is_none")]
    pub sbom_digest: Option<String>,
    /// id of the native scan report
    #[serde(rename = "report_id", skip_serializing_if = "Option::is_none")]
    pub report_id: Option<String>,
    /// Time in seconds required to create the report
    #[serde(rename = "duration", skip_serializing_if = "Option::is_none")]
    pub duration: Option<i64>,
    #[serde(rename = "scanner", skip_serializing_if = "Option::is_none")]
    pub scanner: Option<Box<models::Scanner>>,
}

impl SbomOverview {
    /// The generate SBOM overview information
    pub fn new() -> SbomOverview {
        SbomOverview {
            start_time: None,
            end_time: None,
            scan_status: None,
            sbom_digest: None,
            report_id: None,
            duration: None,
            scanner: None,
        }
    }
}