Skip to main content

tapis_apps/models/
file_input_mode_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 FileInputModeEnum {
18    #[serde(rename = "REQUIRED")]
19    #[default]
20    Required,
21    #[serde(rename = "OPTIONAL")]
22    Optional,
23    #[serde(rename = "FIXED")]
24    Fixed,
25}
26
27impl std::fmt::Display for FileInputModeEnum {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::Required => write!(f, "REQUIRED"),
31            Self::Optional => write!(f, "OPTIONAL"),
32            Self::Fixed => write!(f, "FIXED"),
33        }
34    }
35}