gitbundle_sdk/models/
check_status.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.3.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 CheckStatus {
19    #[serde(rename = "pending")]
20    #[default]
21    Pending,
22    #[serde(rename = "running")]
23    Running,
24    #[serde(rename = "success")]
25    Success,
26    #[serde(rename = "failure")]
27    Failure,
28    #[serde(rename = "error")]
29    Error,
30}
31
32impl std::fmt::Display for CheckStatus {
33    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
34        match self {
35            Self::Pending => write!(f, "pending"),
36            Self::Running => write!(f, "running"),
37            Self::Success => write!(f, "success"),
38            Self::Failure => write!(f, "failure"),
39            Self::Error => write!(f, "error"),
40        }
41    }
42}