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

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

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ProtectionRuleKind {
    #[serde(rename = "DisableDirectDeployment")]
    DisableDirectDeployment,
    #[serde(rename = "DisableWorkspaceForking")]
    DisableWorkspaceForking,
    #[serde(rename = "RestrictDeployToDeployers")]
    RestrictDeployToDeployers,

}

impl std::fmt::Display for ProtectionRuleKind {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::DisableDirectDeployment => write!(f, "DisableDirectDeployment"),
            Self::DisableWorkspaceForking => write!(f, "DisableWorkspaceForking"),
            Self::RestrictDeployToDeployers => write!(f, "RestrictDeployToDeployers"),
        }
    }
}

impl Default for ProtectionRuleKind {
    fn default() -> ProtectionRuleKind {
        Self::DisableDirectDeployment
    }
}