/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.682.0
* Contact: contact@windmill.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// SuccessHandlerConfig : Configuration for the workspace success handler
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SuccessHandlerConfig {
/// Path to the success handler script or flow
#[serde(rename = "path", skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
/// The arguments to pass to the script or flow
#[serde(rename = "extra_args", skip_serializing_if = "Option::is_none")]
pub extra_args: Option<std::collections::HashMap<String, serde_json::Value>>,
}
impl SuccessHandlerConfig {
/// Configuration for the workspace success handler
pub fn new() -> SuccessHandlerConfig {
SuccessHandlerConfig {
path: None,
extra_args: None,
}
}
}