windmill_api/models/
branch_all.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.539.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 BranchAll {
16    #[serde(rename = "branches")]
17    pub branches: Vec<models::BranchAllBranchesInner>,
18    #[serde(rename = "type")]
19    pub r#type: Type,
20    #[serde(rename = "parallel", skip_serializing_if = "Option::is_none")]
21    pub parallel: Option<bool>,
22}
23
24impl BranchAll {
25    pub fn new(branches: Vec<models::BranchAllBranchesInner>, r#type: Type) -> BranchAll {
26        BranchAll {
27            branches,
28            r#type,
29            parallel: None,
30        }
31    }
32}
33/// 
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35pub enum Type {
36    #[serde(rename = "branchall")]
37    Branchall,
38}
39
40impl Default for Type {
41    fn default() -> Type {
42        Self::Branchall
43    }
44}
45