Skip to main content

gitbundle_sdk/models/
variable_group.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 VariableGroup {
17    #[serde(
18        rename = "group",
19        default,
20        with = "::serde_with::rust::double_option",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub group: Option<Option<Box<models::GroupModel>>>,
24    #[serde(rename = "model")]
25    pub model: Box<models::VariableModel>,
26}
27
28impl VariableGroup {
29    pub fn new(model: models::VariableModel) -> VariableGroup {
30        VariableGroup {
31            group: None,
32            model: Box::new(model),
33        }
34    }
35}