/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * 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 HubScriptKind {
    #[serde(rename = "script")]
    Script,
    #[serde(rename = "failure")]
    Failure,
    #[serde(rename = "trigger")]
    Trigger,
    #[serde(rename = "approval")]
    Approval,

}

impl std::fmt::Display for HubScriptKind {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Script => write!(f, "script"),
            Self::Failure => write!(f, "failure"),
            Self::Trigger => write!(f, "trigger"),
            Self::Approval => write!(f, "approval"),
        }
    }
}

impl Default for HubScriptKind {
    fn default() -> HubScriptKind {
        Self::Script
    }
}

