/*
 * Tapis Workflows API
 *
 * Create and manage pipelines
 *
 * The version of the OpenAPI document: 1.6.0
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(
    Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
)]
pub enum EnumPipelineType {
    #[serde(rename = "workflow")]
    #[default]
    Workflow,
    #[serde(rename = "ci")]
    Ci,
    #[serde(rename = "etl")]
    Etl,
}

impl std::fmt::Display for EnumPipelineType {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Workflow => write!(f, "workflow"),
            Self::Ci => write!(f, "ci"),
            Self::Etl => write!(f, "etl"),
        }
    }
}
