harbor_api/models/
webhook_last_trigger.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/// WebhookLastTrigger : The webhook policy and last trigger time group by event type.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WebhookLastTrigger {
17    /// The webhook policy name.
18    #[serde(rename = "policy_name", skip_serializing_if = "Option::is_none")]
19    pub policy_name: Option<String>,
20    /// The webhook event type.
21    #[serde(rename = "event_type", skip_serializing_if = "Option::is_none")]
22    pub event_type: Option<String>,
23    /// Whether or not the webhook policy enabled.
24    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
25    pub enabled: Option<bool>,
26    /// The creation time of webhook policy.
27    #[serde(rename = "creation_time", skip_serializing_if = "Option::is_none")]
28    pub creation_time: Option<String>,
29    /// The last trigger time of webhook policy.
30    #[serde(rename = "last_trigger_time", skip_serializing_if = "Option::is_none")]
31    pub last_trigger_time: Option<String>,
32}
33
34impl WebhookLastTrigger {
35    /// The webhook policy and last trigger time group by event type.
36    pub fn new() -> WebhookLastTrigger {
37        WebhookLastTrigger {
38            policy_name: None,
39            event_type: None,
40            enabled: None,
41            creation_time: None,
42            last_trigger_time: None,
43        }
44    }
45}
46