Skip to main content

gitbundle_sdk/models/
repo_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 RepoImportInput {
17    #[serde(rename = "description")]
18    pub description: 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_repo")]
28    pub provider_repo: String,
29}
30
31impl RepoImportInput {
32    pub fn new(
33        description: String,
34        identifier: String,
35        is_public: bool,
36        parent_ref: String,
37        provider: models::RepoProvider,
38        provider_repo: String,
39    ) -> RepoImportInput {
40        RepoImportInput {
41            description,
42            identifier,
43            is_public,
44            parent_ref,
45            provider: Box::new(provider),
46            provider_repo,
47        }
48    }
49}