harbor_api/models/
payload_format.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/// PayloadFormat : Webhook supported payload format type collections.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PayloadFormat {
17    /// Webhook supported notify type.
18    #[serde(rename = "notify_type", skip_serializing_if = "Option::is_none")]
19    pub notify_type: Option<String>,
20    /// The supported payload formats for this notify type.
21    #[serde(rename = "formats", skip_serializing_if = "Option::is_none")]
22    pub formats: Option<Vec<String>>,
23}
24
25impl PayloadFormat {
26    /// Webhook supported payload format type collections.
27    pub fn new() -> PayloadFormat {
28        PayloadFormat {
29            notify_type: None,
30            formats: None,
31        }
32    }
33}
34