harbor_api/models/
webhook_target_object.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/// WebhookTargetObject : The webhook policy target object.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WebhookTargetObject {
17    /// The webhook target notify type.
18    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19    pub r#type: Option<String>,
20    /// The webhook target address.
21    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
22    pub address: Option<String>,
23    /// The webhook auth header.
24    #[serde(rename = "auth_header", skip_serializing_if = "Option::is_none")]
25    pub auth_header: Option<String>,
26    /// Whether or not to skip cert verify.
27    #[serde(rename = "skip_cert_verify", skip_serializing_if = "Option::is_none")]
28    pub skip_cert_verify: Option<bool>,
29    /// The type of webhook paylod format.
30    #[serde(rename = "payload_format", skip_serializing_if = "Option::is_none")]
31    pub payload_format: Option<String>,
32}
33
34impl WebhookTargetObject {
35    /// The webhook policy target object.
36    pub fn new() -> WebhookTargetObject {
37        WebhookTargetObject {
38            r#type: None,
39            address: None,
40            auth_header: None,
41            skip_cert_verify: None,
42            payload_format: None,
43        }
44    }
45}
46