windmill_api/models/
contextual_variable.rs1use 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