Skip to main content

windmill_api/models/
success_handler_config.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/// SuccessHandlerConfig : Configuration for the workspace success handler
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SuccessHandlerConfig {
17    /// Path to the success 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}
24
25impl SuccessHandlerConfig {
26    /// Configuration for the workspace success handler
27    pub fn new() -> SuccessHandlerConfig {
28        SuccessHandlerConfig {
29            path: None,
30            extra_args: None,
31        }
32    }
33}
34