windmill_api/models/
edit_variable.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.539.1
7 * Contact: contact@windmill.dev
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 EditVariable {
16    /// The path to the variable
17    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
18    pub path: Option<String>,
19    /// The new value of the variable
20    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
21    pub value: Option<String>,
22    /// Whether the variable is a secret
23    #[serde(rename = "is_secret", skip_serializing_if = "Option::is_none")]
24    pub is_secret: Option<bool>,
25    /// The new description of the variable
26    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
27    pub description: Option<String>,
28}
29
30impl EditVariable {
31    pub fn new() -> EditVariable {
32        EditVariable {
33            path: None,
34            value: None,
35            is_secret: None,
36            description: None,
37        }
38    }
39}
40