gitbundle_sdk/models/
check_payload_kind.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.2.0
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 CheckPayloadKind {
19    #[serde(rename = "empty")]
20    #[default]
21    Empty,
22    #[serde(rename = "raw")]
23    Raw,
24    #[serde(rename = "markdown")]
25    Markdown,
26    #[serde(rename = "action")]
27    Action,
28}
29
30impl std::fmt::Display for CheckPayloadKind {
31    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
32        match self {
33            Self::Empty => write!(f, "empty"),
34            Self::Raw => write!(f, "raw"),
35            Self::Markdown => write!(f, "markdown"),
36            Self::Action => write!(f, "action"),
37        }
38    }
39}