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.555.2
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}
33
34impl TriggerExtraProperty {
35    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) -> TriggerExtraProperty {
36        TriggerExtraProperty {
37            path,
38            script_path,
39            email,
40            extra_perms,
41            workspace_id,
42            edited_by,
43            edited_at,
44            is_flow,
45        }
46    }
47}
48