Skip to main content

doppler_rs/models/
clone_config_request.rs

1/*
2 * Core
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0-oas3.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/*
12 * Core
13 *
14 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15 *
16 * The version of the OpenAPI document: 1.0.0-oas3.1
17 * 
18 * Generated by: https://openapi-generator.tech
19 */
20
21use crate::models;
22use serde::{Deserialize, Serialize};
23use chrono::{DateTime, NaiveDate, Utc};
24/// CloneConfigRequest
25#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
26pub struct CloneConfigRequest {
27    /// Unique identifier for the project object.
28    #[serde(rename = "project")]
29    pub project: String ,
30    /// Name of the branch config being cloned.
31    #[serde(rename = "config")]
32    pub config: String ,
33    /// Name of the new branch config.
34    #[serde(rename = "name")]
35    pub name: String ,
36}
37
38impl CloneConfigRequest {
39    pub fn new(project: String , config: String , name: String ) -> CloneConfigRequest {
40        CloneConfigRequest {
41            project: project,
42            config: config,
43            name: name,
44        }
45    }
46}
47