gitbundle_sdk/models/
bootstrap_metadata.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.3.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 BootstrapMetadata {
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(
25        rename = "path_ref",
26        default,
27        with = "::serde_with::rust::double_option",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub path_ref: Option<Option<Box<models::PathRefInfo>>>,
31    #[serde(
32        rename = "repo",
33        default,
34        with = "::serde_with::rust::double_option",
35        skip_serializing_if = "Option::is_none"
36    )]
37    pub repo: Option<Option<Box<models::RepoParent>>>,
38    #[serde(
39        rename = "user",
40        default,
41        with = "::serde_with::rust::double_option",
42        skip_serializing_if = "Option::is_none"
43    )]
44    pub user: Option<Option<Box<models::UserModel>>>,
45}
46
47impl BootstrapMetadata {
48    pub fn new() -> BootstrapMetadata {
49        BootstrapMetadata {
50            group: None,
51            path_ref: None,
52            repo: None,
53            user: None,
54        }
55    }
56}