harbor_api/models/
webhook_job.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/// WebhookJob : The webhook job.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WebhookJob {
17    /// The webhook job ID.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i64>,
20    /// The webhook policy ID.
21    #[serde(rename = "policy_id", skip_serializing_if = "Option::is_none")]
22    pub policy_id: Option<i64>,
23    /// The webhook job event type.
24    #[serde(rename = "event_type", skip_serializing_if = "Option::is_none")]
25    pub event_type: Option<String>,
26    /// The webhook job notify type.
27    #[serde(rename = "notify_type", skip_serializing_if = "Option::is_none")]
28    pub notify_type: Option<String>,
29    /// The webhook job status.
30    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
31    pub status: Option<String>,
32    /// The webhook job notify detailed data.
33    #[serde(rename = "job_detail", skip_serializing_if = "Option::is_none")]
34    pub job_detail: Option<String>,
35    /// The webhook job creation time.
36    #[serde(rename = "creation_time", skip_serializing_if = "Option::is_none")]
37    pub creation_time: Option<String>,
38    /// The webhook job update time.
39    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
40    pub update_time: Option<String>,
41}
42
43impl WebhookJob {
44    /// The webhook job.
45    pub fn new() -> WebhookJob {
46        WebhookJob {
47            id: None,
48            policy_id: None,
49            event_type: None,
50            notify_type: None,
51            status: None,
52            job_detail: None,
53            creation_time: None,
54            update_time: None,
55        }
56    }
57}
58