Skip to main content

gitbundle_sdk/models/
protection_pattern.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 ProtectionPattern {
17    #[serde(rename = "default", skip_serializing_if = "Option::is_none")]
18    pub default: Option<bool>,
19    #[serde(rename = "exclude", skip_serializing_if = "Option::is_none")]
20    pub exclude: Option<Vec<String>>,
21    #[serde(rename = "include", skip_serializing_if = "Option::is_none")]
22    pub include: Option<Vec<String>>,
23}
24
25impl ProtectionPattern {
26    pub fn new() -> ProtectionPattern {
27        ProtectionPattern {
28            default: None,
29            exclude: None,
30            include: None,
31        }
32    }
33}