/*
 * Tapis Applications API
 *
 * The Tapis Applications API provides for management of Tapis applications including permissions.
 *
 * The version of the OpenAPI document: 26Q1.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 RuntimeEnum {
    #[serde(rename = "SINGULARITY")]
    #[default]
    Singularity,
    #[serde(rename = "DOCKER")]
    Docker,
    #[serde(rename = "ZIP")]
    Zip,
}

impl std::fmt::Display for RuntimeEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Singularity => write!(f, "SINGULARITY"),
            Self::Docker => write!(f, "DOCKER"),
            Self::Zip => write!(f, "ZIP"),
        }
    }
}
