windmill_api/models/
path_flow.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/// PathFlow : Reference to an existing flow by path. Use this to call another flow as a subflow
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PathFlow {
17    /// Map of parameter names to their values (static or JavaScript expressions). These become the subflow's input arguments
18    #[serde(rename = "input_transforms")]
19    pub input_transforms: std::collections::HashMap<String, models::InputTransform>,
20    /// Path to the flow in the workspace (e.g., 'f/flows/process_user')
21    #[serde(rename = "path")]
22    pub path: String,
23    #[serde(rename = "type")]
24    pub r#type: Type,
25}
26
27impl PathFlow {
28    /// Reference to an existing flow by path. Use this to call another flow as a subflow
29    pub fn new(input_transforms: std::collections::HashMap<String, models::InputTransform>, path: String, r#type: Type) -> PathFlow {
30        PathFlow {
31            input_transforms,
32            path,
33            r#type,
34        }
35    }
36}
37/// 
38#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
39pub enum Type {
40    #[serde(rename = "flow")]
41    Flow,
42}
43
44impl Default for Type {
45    fn default() -> Type {
46        Self::Flow
47    }
48}
49