harbor_api/models/
schedule_task.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/// ScheduleTask : the schedule task info
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ScheduleTask {
17    /// the id of the Schedule task
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i32>,
20    /// the vendor type of the current schedule task
21    #[serde(rename = "vendor_type", skip_serializing_if = "Option::is_none")]
22    pub vendor_type: Option<String>,
23    /// the vendor id of the current task
24    #[serde(rename = "vendor_id", skip_serializing_if = "Option::is_none")]
25    pub vendor_id: Option<i32>,
26    /// the cron of the current schedule task
27    #[serde(rename = "cron", skip_serializing_if = "Option::is_none")]
28    pub cron: Option<String>,
29    /// the update time of the schedule task
30    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
31    pub update_time: Option<String>,
32}
33
34impl ScheduleTask {
35    /// the schedule task info
36    pub fn new() -> ScheduleTask {
37        ScheduleTask {
38            id: None,
39            vendor_type: None,
40            vendor_id: None,
41            cron: None,
42            update_time: None,
43        }
44    }
45}
46