windmill_api/models/
identity.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.592.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Identity : Pass-through module that returns its input unchanged. Useful for flow structure or as a placeholder
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Identity {
17    #[serde(rename = "type")]
18    pub r#type: Type,
19    /// If true, marks this as a flow identity (special handling)
20    #[serde(rename = "flow", skip_serializing_if = "Option::is_none")]
21    pub flow: Option<bool>,
22}
23
24impl Identity {
25    /// Pass-through module that returns its input unchanged. Useful for flow structure or as a placeholder
26    pub fn new(r#type: Type) -> Identity {
27        Identity {
28            r#type,
29            flow: None,
30        }
31    }
32}
33/// 
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35pub enum Type {
36    #[serde(rename = "identity")]
37    Identity,
38}
39
40impl Default for Type {
41    fn default() -> Type {
42        Self::Identity
43    }
44}
45