windmill-api 1.778.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.778.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DeployEventKind : What a deploy event did to the path it is recorded against: `write` (the path holds an item after the event), `delete` (it does not), or `rename_from` (the path was vacated by a rename to another path). Create and update are not distinguished. Omitted when no such event has been recorded for that side, which counts as no evidence. 
/// What a deploy event did to the path it is recorded against: `write` (the path holds an item after the event), `delete` (it does not), or `rename_from` (the path was vacated by a rename to another path). Create and update are not distinguished. Omitted when no such event has been recorded for that side, which counts as no evidence. 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum DeployEventKind {
    #[serde(rename = "write")]
    Write,
    #[serde(rename = "delete")]
    Delete,
    #[serde(rename = "rename_from")]
    RenameFrom,

}

impl std::fmt::Display for DeployEventKind {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Write => write!(f, "write"),
            Self::Delete => write!(f, "delete"),
            Self::RenameFrom => write!(f, "rename_from"),
        }
    }
}

impl Default for DeployEventKind {
    fn default() -> DeployEventKind {
        Self::Write
    }
}