Skip to main content

openapi_service_fabric/models/
environment_variable.rs

1/*
2 * Service Fabric Client APIs
3 *
4 * Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services.
5 *
6 * The version of the OpenAPI document: 8.2
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EnvironmentVariable : Describes an environment variable for the container.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EnvironmentVariable {
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<models::EnvironmentVariableType>,
19    /// The name of the environment variable.
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// The value of the environment variable, will be processed based on the type provided.
23    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
24    pub value: Option<String>,
25}
26
27impl EnvironmentVariable {
28    /// Describes an environment variable for the container.
29    pub fn new() -> EnvironmentVariable {
30        EnvironmentVariable {
31            r#type: None,
32            name: None,
33            value: None,
34        }
35    }
36}