gitbundle_sdk/models/
stage_metadata.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.2.0
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 StageMetadata {
17    #[serde(rename = "context")]
18    pub context: Box<models::StageContext>,
19    #[serde(rename = "stage")]
20    pub stage: Box<models::StageModel>,
21}
22
23impl StageMetadata {
24    pub fn new(context: models::StageContext, stage: models::StageModel) -> StageMetadata {
25        StageMetadata {
26            context: Box::new(context),
27            stage: Box::new(stage),
28        }
29    }
30}