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