Skip to main content

windmill_api/models/
run_flow_test_request_steps_value.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.881.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RunFlowTestRequestStepsValue {
16    /// the step is skipped and returns this value
17    #[serde(rename = "return_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub return_value: Option<Option<serde_json::Value>>,
19    /// name of a function of the code of `caller_job_id` that runs instead of the step (exported, in TypeScript)
20    #[serde(rename = "function", skip_serializing_if = "Option::is_none")]
21    pub function: Option<String>,
22}
23
24impl RunFlowTestRequestStepsValue {
25    pub fn new() -> RunFlowTestRequestStepsValue {
26        RunFlowTestRequestStepsValue {
27            return_value: None,
28            function: None,
29        }
30    }
31}
32