windmill-api 1.699.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.699.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

/// AzureMode : Azure Event Grid trigger mode.
/// Azure Event Grid trigger mode.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AzureMode {
    #[serde(rename = "basic_push")]
    BasicPush,
    #[serde(rename = "namespace_push")]
    NamespacePush,
    #[serde(rename = "namespace_pull")]
    NamespacePull,

}

impl std::fmt::Display for AzureMode {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::BasicPush => write!(f, "basic_push"),
            Self::NamespacePush => write!(f, "namespace_push"),
            Self::NamespacePull => write!(f, "namespace_pull"),
        }
    }
}

impl Default for AzureMode {
    fn default() -> AzureMode {
        Self::BasicPush
    }
}