/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BranchAllBranchesInner {
    /// Short description of this branch's purpose
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<String>,
    /// If true, failure in this branch doesn't fail the entire flow
    #[serde(rename = "skip_failure", skip_serializing_if = "Option::is_none")]
    pub skip_failure: Option<bool>,
    /// Steps to execute in this branch
    #[serde(rename = "modules")]
    pub modules: Vec<models::FlowModule>,
}

impl BranchAllBranchesInner {
    pub fn new(modules: Vec<models::FlowModule>) -> BranchAllBranchesInner {
        BranchAllBranchesInner {
            summary: None,
            skip_failure: None,
            modules,
        }
    }
}

