windmill_api/models/
branch_all.rs1use 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#[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