1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.780.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
}
}