Skip to main content

tapis_apps/models/
runtime_enum.rs

1/*
2 * Tapis Applications API
3 *
4 * The Tapis Applications API provides for management of Tapis applications including permissions.
5 *
6 * The version of the OpenAPI document: 25Q4.0
7 * Contact: cicsupport@tacc.utexas.edu
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(
15    Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
16)]
17pub enum RuntimeEnum {
18    #[serde(rename = "SINGULARITY")]
19    #[default]
20    Singularity,
21    #[serde(rename = "DOCKER")]
22    Docker,
23    #[serde(rename = "ZIP")]
24    Zip,
25}
26
27impl std::fmt::Display for RuntimeEnum {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::Singularity => write!(f, "SINGULARITY"),
31            Self::Docker => write!(f, "DOCKER"),
32            Self::Zip => write!(f, "ZIP"),
33        }
34    }
35}