Skip to main content

tapis_apps/models/
key_value_pair.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(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct KeyValuePair {
16    #[serde(rename = "key")]
17    pub key: String,
18    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
19    pub value: Option<String>,
20    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21    pub description: Option<String>,
22    #[serde(rename = "inputMode", skip_serializing_if = "Option::is_none")]
23    pub input_mode: Option<models::KeyValueInputModeEnum>,
24    #[serde(rename = "notes", skip_serializing_if = "Option::is_none")]
25    pub notes: Option<serde_json::Value>,
26}
27
28impl KeyValuePair {
29    pub fn new(key: String) -> KeyValuePair {
30        KeyValuePair {
31            key,
32            value: None,
33            description: None,
34            input_mode: None,
35            notes: None,
36        }
37    }
38}