windmill_api/models/
restart_flow_at_step_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.594.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 RestartFlowAtStepRequest {
16    /// step id to restart the flow from
17    #[serde(rename = "step_id")]
18    pub step_id: String,
19    /// for branchall or loop, the iteration at which the flow should restart (optional)
20    #[serde(rename = "branch_or_iteration_n", skip_serializing_if = "Option::is_none")]
21    pub branch_or_iteration_n: Option<i32>,
22    /// specific flow version to use for restart (optional, uses current version if not specified)
23    #[serde(rename = "flow_version", skip_serializing_if = "Option::is_none")]
24    pub flow_version: Option<i32>,
25}
26
27impl RestartFlowAtStepRequest {
28    pub fn new(step_id: String) -> RestartFlowAtStepRequest {
29        RestartFlowAtStepRequest {
30            step_id,
31            branch_or_iteration_n: None,
32            flow_version: None,
33        }
34    }
35}
36