windmill_api/models/
branch_all_branches_inner.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.592.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 BranchAllBranchesInner {
16    /// Short description of this branch's purpose
17    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
18    pub summary: Option<String>,
19    /// If true, failure in this branch doesn't fail the entire flow
20    #[serde(rename = "skip_failure", skip_serializing_if = "Option::is_none")]
21    pub skip_failure: Option<bool>,
22    /// Steps to execute in this branch
23    #[serde(rename = "modules")]
24    pub modules: Vec<models::FlowModule>,
25}
26
27impl BranchAllBranchesInner {
28    pub fn new(modules: Vec<models::FlowModule>) -> BranchAllBranchesInner {
29        BranchAllBranchesInner {
30            summary: None,
31            skip_failure: None,
32            modules,
33        }
34    }
35}
36