harbor_api/models/
schedule.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 Schedule {
16    /// The id of the schedule.
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<i32>,
19    /// The status of the schedule.
20    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
21    pub status: Option<String>,
22    /// the creation time of the schedule.
23    #[serde(rename = "creation_time", skip_serializing_if = "Option::is_none")]
24    pub creation_time: Option<String>,
25    /// the update time of the schedule.
26    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
27    pub update_time: Option<String>,
28    #[serde(rename = "schedule", skip_serializing_if = "Option::is_none")]
29    pub schedule: Option<Box<models::ScheduleObj>>,
30    /// The parameters of schedule job
31    #[serde(rename = "parameters", skip_serializing_if = "Option::is_none")]
32    pub parameters: Option<std::collections::HashMap<String, serde_json::Value>>,
33}
34
35impl Schedule {
36    pub fn new() -> Schedule {
37        Schedule {
38            id: None,
39            status: None,
40            creation_time: None,
41            update_time: None,
42            schedule: None,
43            parameters: None,
44        }
45    }
46}
47