windmill_api/models/
trigger_extra_property.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.577.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 TriggerExtraProperty {
16    #[serde(rename = "path")]
17    pub path: String,
18    #[serde(rename = "script_path")]
19    pub script_path: String,
20    #[serde(rename = "email")]
21    pub email: String,
22    #[serde(rename = "extra_perms")]
23    pub extra_perms: std::collections::HashMap<String, bool>,
24    #[serde(rename = "workspace_id")]
25    pub workspace_id: String,
26    #[serde(rename = "edited_by")]
27    pub edited_by: String,
28    #[serde(rename = "edited_at")]
29    pub edited_at: String,
30    #[serde(rename = "is_flow")]
31    pub is_flow: bool,
32    #[serde(rename = "enabled")]
33    pub enabled: bool,
34}
35
36impl TriggerExtraProperty {
37    pub fn new(path: String, script_path: String, email: String, extra_perms: std::collections::HashMap<String, bool>, workspace_id: String, edited_by: String, edited_at: String, is_flow: bool, enabled: bool) -> TriggerExtraProperty {
38        TriggerExtraProperty {
39            path,
40            script_path,
41            email,
42            extra_perms,
43            workspace_id,
44            edited_by,
45            edited_at,
46            is_flow,
47            enabled,
48        }
49    }
50}
51