Skip to main content

gitbundle_sdk/models/
group_import_input.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 GroupImportInput {
17    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18    pub description: Option<String>,
19    #[serde(rename = "identifier")]
20    pub identifier: String,
21    #[serde(rename = "is_public")]
22    pub is_public: bool,
23    #[serde(rename = "parent_ref")]
24    pub parent_ref: String,
25    #[serde(rename = "provider")]
26    pub provider: Box<models::RepoProvider>,
27    #[serde(rename = "provider_group")]
28    pub provider_group: String,
29}
30
31impl GroupImportInput {
32    pub fn new(
33        identifier: String,
34        is_public: bool,
35        parent_ref: String,
36        provider: models::RepoProvider,
37        provider_group: String,
38    ) -> GroupImportInput {
39        GroupImportInput {
40            description: None,
41            identifier,
42            is_public,
43            parent_ref,
44            provider: Box::new(provider),
45            provider_group,
46        }
47    }
48}