Skip to main content

windmill_api/models/
set_ws_specific_request.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.745.0
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 SetWsSpecificRequest {
16    #[serde(rename = "item_kind")]
17    pub item_kind: ItemKind,
18    #[serde(rename = "path")]
19    pub path: String,
20    #[serde(rename = "value")]
21    pub value: bool,
22}
23
24impl SetWsSpecificRequest {
25    pub fn new(item_kind: ItemKind, path: String, value: bool) -> SetWsSpecificRequest {
26        SetWsSpecificRequest {
27            item_kind,
28            path,
29            value,
30        }
31    }
32}
33/// 
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35pub enum ItemKind {
36    #[serde(rename = "resource")]
37    Resource,
38    #[serde(rename = "variable")]
39    Variable,
40}
41
42impl Default for ItemKind {
43    fn default() -> ItemKind {
44        Self::Resource
45    }
46}
47