Skip to main content

windmill_api/models/
edit_error_handler_legacy.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/// EditErrorHandlerLegacy : Legacy flat format for editing error handler (deprecated, use new format)
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EditErrorHandlerLegacy {
17    /// Path to the error handler script or flow
18    #[serde(rename = "error_handler", skip_serializing_if = "Option::is_none")]
19    pub error_handler: Option<String>,
20    /// The arguments to pass to the script or flow
21    #[serde(rename = "error_handler_extra_args", skip_serializing_if = "Option::is_none")]
22    pub error_handler_extra_args: Option<std::collections::HashMap<String, serde_json::Value>>,
23    #[serde(rename = "error_handler_muted_on_cancel", skip_serializing_if = "Option::is_none")]
24    pub error_handler_muted_on_cancel: Option<bool>,
25}
26
27impl EditErrorHandlerLegacy {
28    /// Legacy flat format for editing error handler (deprecated, use new format)
29    pub fn new() -> EditErrorHandlerLegacy {
30        EditErrorHandlerLegacy {
31            error_handler: None,
32            error_handler_extra_args: None,
33            error_handler_muted_on_cancel: None,
34        }
35    }
36}
37