Skip to main content

windmill_api/models/
run_flow_test_request.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.0
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 RunFlowTestRequest {
16    /// The arguments to pass to the script or flow
17    #[serde(rename = "args", skip_serializing_if = "Option::is_none")]
18    pub args: Option<std::collections::HashMap<String, serde_json::Value>>,
19    /// step id -> override. A step inside a subflow is named by the path of step ids to it, `sub:inner` for step `inner` of the subflow that step `sub` calls.
20    #[serde(rename = "steps", skip_serializing_if = "Option::is_none")]
21    pub steps: Option<std::collections::HashMap<String, models::RunFlowTestRequestStepsValue>>,
22    /// the job whose code defines the replacing functions, usually the calling test; a script run or a script preview. Required with a `function` override.
23    #[serde(rename = "caller_job_id", skip_serializing_if = "Option::is_none")]
24    pub caller_job_id: Option<uuid::Uuid>,
25}
26
27impl RunFlowTestRequest {
28    pub fn new() -> RunFlowTestRequest {
29        RunFlowTestRequest {
30            args: None,
31            steps: None,
32            caller_job_id: None,
33        }
34    }
35}
36