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,
}
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"),
}
}
}
impl Default for ProtectionRuleKind {
fn default() -> ProtectionRuleKind {
Self::DisableDirectDeployment
}
}