windmill-api 1.684.1

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.684.1
 * 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 RunnableType {
    #[serde(rename = "ScriptHash")]
    ScriptHash,
    #[serde(rename = "ScriptPath")]
    ScriptPath,
    #[serde(rename = "FlowPath")]
    FlowPath,

}

impl std::fmt::Display for RunnableType {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::ScriptHash => write!(f, "ScriptHash"),
            Self::ScriptPath => write!(f, "ScriptPath"),
            Self::FlowPath => write!(f, "FlowPath"),
        }
    }
}

impl Default for RunnableType {
    fn default() -> RunnableType {
        Self::ScriptHash
    }
}