windmill_api/models/
flow_preview.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.512.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 FlowPreview {
16    #[serde(rename = "value")]
17    pub value: Box<models::FlowValue>,
18    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
19    pub path: Option<String>,
20    #[serde(rename = "args")]
21    pub args: std::collections::HashMap<String, serde_json::Value>,
22    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
23    pub tag: Option<String>,
24    #[serde(rename = "restarted_from", skip_serializing_if = "Option::is_none")]
25    pub restarted_from: Option<Box<models::RestartedFrom>>,
26}
27
28impl FlowPreview {
29    pub fn new(value: models::FlowValue, args: std::collections::HashMap<String, serde_json::Value>) -> FlowPreview {
30        FlowPreview {
31            value: Box::new(value),
32            path: None,
33            args,
34            tag: None,
35            restarted_from: None,
36        }
37    }
38}
39