windmill_api/models/
static_transform.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 StaticTransform {
16    #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub value: Option<Option<serde_json::Value>>,
18    #[serde(rename = "type")]
19    pub r#type: Type,
20}
21
22impl StaticTransform {
23    pub fn new(r#type: Type) -> StaticTransform {
24        StaticTransform {
25            value: None,
26            r#type,
27        }
28    }
29}
30/// 
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Type {
33    #[serde(rename = "javascript")]
34    Javascript,
35}
36
37impl Default for Type {
38    fn default() -> Type {
39        Self::Javascript
40    }
41}
42