Skip to main content

windmill_api/models/
azure_mode.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.699.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AzureMode : Azure Event Grid trigger mode.
15/// Azure Event Grid trigger mode.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum AzureMode {
18    #[serde(rename = "basic_push")]
19    BasicPush,
20    #[serde(rename = "namespace_push")]
21    NamespacePush,
22    #[serde(rename = "namespace_pull")]
23    NamespacePull,
24
25}
26
27impl std::fmt::Display for AzureMode {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::BasicPush => write!(f, "basic_push"),
31            Self::NamespacePush => write!(f, "namespace_push"),
32            Self::NamespacePull => write!(f, "namespace_pull"),
33        }
34    }
35}
36
37impl Default for AzureMode {
38    fn default() -> AzureMode {
39        Self::BasicPush
40    }
41}
42