gitea_client/models/
edit_hook_option.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EditHookOption : EditHookOption options when modify one hook
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EditHookOption {
17    #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
18    pub active: Option<bool>,
19    #[serde(rename = "authorization_header", skip_serializing_if = "Option::is_none")]
20    pub authorization_header: Option<String>,
21    #[serde(rename = "branch_filter", skip_serializing_if = "Option::is_none")]
22    pub branch_filter: Option<String>,
23    #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
24    pub config: Option<std::collections::HashMap<String, String>>,
25    #[serde(rename = "events", skip_serializing_if = "Option::is_none")]
26    pub events: Option<Vec<String>>,
27}
28
29impl EditHookOption {
30    /// EditHookOption options when modify one hook
31    pub fn new() -> EditHookOption {
32        EditHookOption {
33            active: None,
34            authorization_header: None,
35            branch_filter: None,
36            config: None,
37            events: None,
38        }
39    }
40}
41