Skip to main content

gitbundle_sdk/models/
stage_steps.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StageSteps {
17    #[serde(rename = "model")]
18    pub model: Box<models::StageModel>,
19    #[serde(rename = "steps")]
20    pub steps: Vec<models::StepModel>,
21}
22
23impl StageSteps {
24    pub fn new(model: models::StageModel, steps: Vec<models::StepModel>) -> StageSteps {
25        StageSteps {
26            model: Box::new(model),
27            steps,
28        }
29    }
30}