openapi_service_fabric/models/setting.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/// Setting : Describes a setting for the container. The setting file path can be fetched from environment variable \"Fabric_SettingPath\". The path for Windows container is \"C:\\\\secrets\". The path for Linux container is \"/var/secrets\".
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Setting {
17 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18 pub r#type: Option<models::SettingType>,
19 /// The name of the setting.
20 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21 pub name: Option<String>,
22 /// The value of the setting, 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 Setting {
28 /// Describes a setting for the container. The setting file path can be fetched from environment variable \"Fabric_SettingPath\". The path for Windows container is \"C:\\\\secrets\". The path for Linux container is \"/var/secrets\".
29 pub fn new() -> Setting {
30 Setting {
31 r#type: None,
32 name: None,
33 value: None,
34 }
35 }
36}