harbor_api/models/
scan_data_export_execution.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/// ScanDataExportExecution : The replication execution
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ScanDataExportExecution {
17    /// The ID of the execution
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i32>,
20    /// The ID if the user triggering the export job
21    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
22    pub user_id: Option<i32>,
23    /// The status of the execution
24    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
25    pub status: Option<String>,
26    /// The trigger mode
27    #[serde(rename = "trigger", skip_serializing_if = "Option::is_none")]
28    pub trigger: Option<String>,
29    /// The start time
30    #[serde(rename = "start_time", skip_serializing_if = "Option::is_none")]
31    pub start_time: Option<String>,
32    /// The end time
33    #[serde(rename = "end_time", skip_serializing_if = "Option::is_none")]
34    pub end_time: Option<String>,
35    /// The status text
36    #[serde(rename = "status_text", skip_serializing_if = "Option::is_none")]
37    pub status_text: Option<String>,
38    /// The name of the user triggering the job
39    #[serde(rename = "user_name", skip_serializing_if = "Option::is_none")]
40    pub user_name: Option<String>,
41    /// Indicates whether the export artifact is present in registry
42    #[serde(rename = "file_present", skip_serializing_if = "Option::is_none")]
43    pub file_present: Option<bool>,
44}
45
46impl ScanDataExportExecution {
47    /// The replication execution
48    pub fn new() -> ScanDataExportExecution {
49        ScanDataExportExecution {
50            id: None,
51            user_id: None,
52            status: None,
53            trigger: None,
54            start_time: None,
55            end_time: None,
56            status_text: None,
57            user_name: None,
58            file_present: None,
59        }
60    }
61}
62