Skip to main content

windmill_api/models/
edit_success_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.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EditSuccessHandlerLegacy : Legacy flat format for editing success handler (deprecated, use new format)
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EditSuccessHandlerLegacy {
17    /// Path to the success handler script or flow
18    #[serde(rename = "success_handler", skip_serializing_if = "Option::is_none")]
19    pub success_handler: Option<String>,
20    /// The arguments to pass to the script or flow
21    #[serde(rename = "success_handler_extra_args", skip_serializing_if = "Option::is_none")]
22    pub success_handler_extra_args: Option<std::collections::HashMap<String, serde_json::Value>>,
23}
24
25impl EditSuccessHandlerLegacy {
26    /// Legacy flat format for editing success handler (deprecated, use new format)
27    pub fn new() -> EditSuccessHandlerLegacy {
28        EditSuccessHandlerLegacy {
29            success_handler: None,
30            success_handler_extra_args: None,
31        }
32    }
33}
34