windmill_api/models/
open_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.505.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 OpenFlow {
16    #[serde(rename = "summary")]
17    pub summary: String,
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20    #[serde(rename = "value")]
21    pub value: Box<models::FlowValue>,
22    #[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
23    pub schema: Option<serde_json::Value>,
24}
25
26impl OpenFlow {
27    pub fn new(summary: String, value: models::FlowValue) -> OpenFlow {
28        OpenFlow {
29            summary,
30            description: None,
31            value: Box::new(value),
32            schema: None,
33        }
34    }
35}
36