gitbundle_sdk/models/rule_type.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(
16 Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
17)]
18pub enum RuleType {
19 #[serde(rename = "branch")]
20 #[default]
21 Branch,
22}
23
24impl std::fmt::Display for RuleType {
25 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
26 match self {
27 Self::Branch => write!(f, "branch"),
28 }
29 }
30}