Skip to main content

gitbundle_sdk/models/
protection_branch.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ProtectionBranch {
17    #[serde(rename = "bypass", skip_serializing_if = "Option::is_none")]
18    pub bypass: Option<Box<models::DefBypass>>,
19    #[serde(rename = "lifecycle", skip_serializing_if = "Option::is_none")]
20    pub lifecycle: Option<Box<models::DefLifecycle>>,
21    #[serde(rename = "pullreq", skip_serializing_if = "Option::is_none")]
22    pub pullreq: Option<Box<models::DefPullreq>>,
23}
24
25impl ProtectionBranch {
26    pub fn new() -> ProtectionBranch {
27        ProtectionBranch {
28            bypass: None,
29            lifecycle: None,
30            pullreq: None,
31        }
32    }
33}