Skip to main content

gitbundle_sdk/models/
pullreq_merge_check_status.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 PullreqMergeCheckStatus {
19    #[serde(rename = "unchecked")]
20    #[default]
21    Unchecked,
22    #[serde(rename = "conflict")]
23    Conflict,
24    #[serde(rename = "mergeable")]
25    Mergeable,
26}
27
28impl std::fmt::Display for PullreqMergeCheckStatus {
29    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
30        match self {
31            Self::Unchecked => write!(f, "unchecked"),
32            Self::Conflict => write!(f, "conflict"),
33            Self::Mergeable => write!(f, "mergeable"),
34        }
35    }
36}