windmill_api/models/deploy_event_origin.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.778.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DeployEventOrigin : Who caused a deploy event: `authored` (written in that workspace by the requester) or `sync` (applied there by a git-sync pull or a workspace-to-workspace deploy). Only an authored removal is evidence that the workspace dropped the item on purpose. Omitted when no such event has been recorded for that side.
15/// Who caused a deploy event: `authored` (written in that workspace by the requester) or `sync` (applied there by a git-sync pull or a workspace-to-workspace deploy). Only an authored removal is evidence that the workspace dropped the item on purpose. Omitted when no such event has been recorded for that side.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum DeployEventOrigin {
18 #[serde(rename = "authored")]
19 Authored,
20 #[serde(rename = "sync")]
21 Sync,
22
23}
24
25impl std::fmt::Display for DeployEventOrigin {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::Authored => write!(f, "authored"),
29 Self::Sync => write!(f, "sync"),
30 }
31 }
32}
33
34impl Default for DeployEventOrigin {
35 fn default() -> DeployEventOrigin {
36 Self::Authored
37 }
38}
39