windmill_api/models/
contextual_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.500.2
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 ContextualVariable {
16    #[serde(rename = "name")]
17    pub name: String,
18    #[serde(rename = "value")]
19    pub value: String,
20    #[serde(rename = "description")]
21    pub description: String,
22    #[serde(rename = "is_custom")]
23    pub is_custom: bool,
24}
25
26impl ContextualVariable {
27    pub fn new(name: String, value: String, description: String, is_custom: bool) -> ContextualVariable {
28        ContextualVariable {
29            name,
30            value,
31            description,
32            is_custom,
33        }
34    }
35}
36