Skip to main content

doppler_rs/models/
create_environment_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/// CreateEnvironmentRequest
25#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
26pub struct CreateEnvironmentRequest {
27    #[serde(rename = "name")]
28    pub name: String ,
29    #[serde(rename = "slug")]
30    pub slug: String ,
31    /// Whether or not to enable personal configs for the environment
32    #[serde(rename = "personal_configs", skip_serializing_if = "Option::is_none")]
33    pub personal_configs: Option<bool >,
34}
35
36impl CreateEnvironmentRequest {
37    pub fn new(name: String , slug: String ) -> CreateEnvironmentRequest {
38        CreateEnvironmentRequest {
39            name: name,
40            slug: slug,
41            personal_configs: Some(false),
42        }
43    }
44}
45