Skip to main content

windmill_api/models/
recent_run_status.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.857.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum RecentRunStatus {
17    #[serde(rename = "success")]
18    Success,
19    #[serde(rename = "failure")]
20    Failure,
21    #[serde(rename = "canceled")]
22    Canceled,
23    #[serde(rename = "running")]
24    Running,
25
26}
27
28impl std::fmt::Display for RecentRunStatus {
29    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
30        match self {
31            Self::Success => write!(f, "success"),
32            Self::Failure => write!(f, "failure"),
33            Self::Canceled => write!(f, "canceled"),
34            Self::Running => write!(f, "running"),
35        }
36    }
37}
38
39impl Default for RecentRunStatus {
40    fn default() -> RecentRunStatus {
41        Self::Success
42    }
43}
44