harbor_api/models/
replication_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ReplicationTrigger {
16    /// The replication policy trigger type. The valid values are manual, event_based and scheduled.
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<String>,
19    #[serde(rename = "trigger_settings", skip_serializing_if = "Option::is_none")]
20    pub trigger_settings: Option<Box<models::ReplicationTriggerSettings>>,
21}
22
23impl ReplicationTrigger {
24    pub fn new() -> ReplicationTrigger {
25        ReplicationTrigger {
26            r#type: None,
27            trigger_settings: None,
28        }
29    }
30}
31