windmill-api 1.683.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.683.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RestartFlowAtStepRequest {
    /// step id to restart the flow from
    #[serde(rename = "step_id")]
    pub step_id: String,
    /// for branchall or loop, the iteration at which the flow should restart (optional)
    #[serde(rename = "branch_or_iteration_n", skip_serializing_if = "Option::is_none")]
    pub branch_or_iteration_n: Option<i32>,
    /// specific flow version to use for restart (optional, uses current version if not specified)
    #[serde(rename = "flow_version", skip_serializing_if = "Option::is_none")]
    pub flow_version: Option<i32>,
}

impl RestartFlowAtStepRequest {
    pub fn new(step_id: String) -> RestartFlowAtStepRequest {
        RestartFlowAtStepRequest {
            step_id,
            branch_or_iteration_n: None,
            flow_version: None,
        }
    }
}