Skip to main content

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