harbor_api/models/
retention_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RetentionExecution {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<i64>,
18    #[serde(rename = "policy_id", skip_serializing_if = "Option::is_none")]
19    pub policy_id: Option<i64>,
20    #[serde(rename = "start_time", skip_serializing_if = "Option::is_none")]
21    pub start_time: Option<String>,
22    #[serde(rename = "end_time", skip_serializing_if = "Option::is_none")]
23    pub end_time: Option<String>,
24    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
25    pub status: Option<String>,
26    #[serde(rename = "trigger", skip_serializing_if = "Option::is_none")]
27    pub trigger: Option<String>,
28    #[serde(rename = "dry_run", skip_serializing_if = "Option::is_none")]
29    pub dry_run: Option<bool>,
30}
31
32impl RetentionExecution {
33    pub fn new() -> RetentionExecution {
34        RetentionExecution {
35            id: None,
36            policy_id: None,
37            start_time: None,
38            end_time: None,
39            status: None,
40            trigger: None,
41            dry_run: None,
42        }
43    }
44}
45