windmill_api/models/
get_flow_by_path_with_draft_200_response.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetFlowByPathWithDraft200Response {
16    /// Short description of what this flow does
17    #[serde(rename = "summary")]
18    pub summary: String,
19    /// Detailed documentation for this flow
20    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21    pub description: Option<String>,
22    #[serde(rename = "value")]
23    pub value: Box<models::FlowValue>,
24    /// JSON Schema for flow inputs. Use this to define input parameters, their types, defaults, and validation. For resource inputs, set type to 'object' and format to 'resource-<type>' (e.g., 'resource-stripe')
25    #[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
26    pub schema: Option<serde_json::Value>,
27    #[serde(rename = "workspace_id", skip_serializing_if = "Option::is_none")]
28    pub workspace_id: Option<String>,
29    #[serde(rename = "path")]
30    pub path: String,
31    #[serde(rename = "edited_by")]
32    pub edited_by: String,
33    #[serde(rename = "edited_at")]
34    pub edited_at: String,
35    #[serde(rename = "archived")]
36    pub archived: bool,
37    #[serde(rename = "extra_perms")]
38    pub extra_perms: std::collections::HashMap<String, bool>,
39    #[serde(rename = "starred", skip_serializing_if = "Option::is_none")]
40    pub starred: Option<bool>,
41    #[serde(rename = "draft_only", skip_serializing_if = "Option::is_none")]
42    pub draft_only: Option<bool>,
43    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
44    pub tag: Option<String>,
45    #[serde(rename = "ws_error_handler_muted", skip_serializing_if = "Option::is_none")]
46    pub ws_error_handler_muted: Option<bool>,
47    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
48    pub priority: Option<i32>,
49    #[serde(rename = "dedicated_worker", skip_serializing_if = "Option::is_none")]
50    pub dedicated_worker: Option<bool>,
51    #[serde(rename = "timeout", skip_serializing_if = "Option::is_none")]
52    pub timeout: Option<f64>,
53    #[serde(rename = "visible_to_runner_only", skip_serializing_if = "Option::is_none")]
54    pub visible_to_runner_only: Option<bool>,
55    #[serde(rename = "on_behalf_of_email", skip_serializing_if = "Option::is_none")]
56    pub on_behalf_of_email: Option<String>,
57    #[serde(rename = "lock_error_logs", skip_serializing_if = "Option::is_none")]
58    pub lock_error_logs: Option<String>,
59    #[serde(rename = "version_id", skip_serializing_if = "Option::is_none")]
60    pub version_id: Option<f64>,
61    #[serde(rename = "draft", skip_serializing_if = "Option::is_none")]
62    pub draft: Option<Box<models::Flow>>,
63}
64
65impl GetFlowByPathWithDraft200Response {
66    pub fn new(summary: String, value: models::FlowValue, path: String, edited_by: String, edited_at: String, archived: bool, extra_perms: std::collections::HashMap<String, bool>) -> GetFlowByPathWithDraft200Response {
67        GetFlowByPathWithDraft200Response {
68            summary,
69            description: None,
70            value: Box::new(value),
71            schema: None,
72            workspace_id: None,
73            path,
74            edited_by,
75            edited_at,
76            archived,
77            extra_perms,
78            starred: None,
79            draft_only: None,
80            tag: None,
81            ws_error_handler_muted: None,
82            priority: None,
83            dedicated_worker: None,
84            timeout: None,
85            visible_to_runner_only: None,
86            on_behalf_of_email: None,
87            lock_error_logs: None,
88            version_id: None,
89            draft: None,
90        }
91    }
92}
93