Skip to main content

windmill_api/models/
get_fork_creation_status_200_response.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.824.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetForkCreationStatus200Response {
16    #[serde(rename = "status")]
17    pub status: Status,
18    /// the part of the copy a running fork is in
19    #[serde(rename = "step", skip_serializing_if = "Option::is_none")]
20    pub step: Option<String>,
21    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
22    pub error: Option<String>,
23}
24
25impl GetForkCreationStatus200Response {
26    pub fn new(status: Status) -> GetForkCreationStatus200Response {
27        GetForkCreationStatus200Response {
28            status,
29            step: None,
30            error: None,
31        }
32    }
33}
34/// 
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum Status {
37    #[serde(rename = "running")]
38    Running,
39    #[serde(rename = "completed")]
40    Completed,
41    #[serde(rename = "failed")]
42    Failed,
43}
44
45impl Default for Status {
46    fn default() -> Status {
47        Self::Running
48    }
49}
50