Skip to main content

windmill_api/models/
edit_error_handler_new.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.615.3
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EditErrorHandlerNew : New grouped format for editing error handler
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EditErrorHandlerNew {
17    /// Path to the error handler script or flow
18    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
19    pub path: Option<String>,
20    /// The arguments to pass to the script or flow
21    #[serde(rename = "extra_args", skip_serializing_if = "Option::is_none")]
22    pub extra_args: Option<std::collections::HashMap<String, serde_json::Value>>,
23    #[serde(rename = "muted_on_cancel", skip_serializing_if = "Option::is_none")]
24    pub muted_on_cancel: Option<bool>,
25    #[serde(rename = "muted_on_user_path", skip_serializing_if = "Option::is_none")]
26    pub muted_on_user_path: Option<bool>,
27}
28
29impl EditErrorHandlerNew {
30    /// New grouped format for editing error handler
31    pub fn new() -> EditErrorHandlerNew {
32        EditErrorHandlerNew {
33            path: None,
34            extra_args: None,
35            muted_on_cancel: None,
36            muted_on_user_path: None,
37        }
38    }
39}
40