Skip to main content

windmill_api/models/
update_draft_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.725.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 UpdateDraft200Response {
16    #[serde(rename = "status")]
17    pub status: Status,
18    #[serde(rename = "current_timestamp")]
19    pub current_timestamp: String,
20}
21
22impl UpdateDraft200Response {
23    pub fn new(status: Status, current_timestamp: String) -> UpdateDraft200Response {
24        UpdateDraft200Response {
25            status,
26            current_timestamp,
27        }
28    }
29}
30/// 
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Status {
33    #[serde(rename = "saved")]
34    Saved,
35    #[serde(rename = "conflict")]
36    Conflict,
37}
38
39impl Default for Status {
40    fn default() -> Status {
41        Self::Saved
42    }
43}
44