tembo_api_client/models/
env_var.rs

1/*
2 * Tembo Cloud
3 *
4 * Platform API for Tembo Cloud             </br>             </br>             To find a Tembo Data API, please find it here:             </br>             </br>             [AWS US East 1](https://api.data-1.use1.tembo.io/swagger-ui/)
5 *
6 * The version of the OpenAPI document: v1.0.0
7 *
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 EnvVar {
16    #[serde(rename = "name")]
17    pub name: String,
18    #[serde(
19        rename = "value",
20        default,
21        with = "::serde_with::rust::double_option",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub value: Option<Option<String>>,
25    #[serde(
26        rename = "valueFromPlatform",
27        default,
28        with = "::serde_with::rust::double_option",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub value_from_platform: Option<Option<models::EnvVarRef>>,
32}
33
34impl EnvVar {
35    pub fn new(name: String) -> EnvVar {
36        EnvVar {
37            name,
38            value: None,
39            value_from_platform: None,
40        }
41    }
42}