Skip to main content

doppler_rs/models/
update_project_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/// UpdateProjectRequest
25#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
26pub struct UpdateProjectRequest {
27    /// Unique identifier for the project object.
28    #[serde(rename = "project")]
29    pub project: String ,
30    /// Name of the project.
31    #[serde(rename = "name")]
32    pub name: String ,
33    /// Description of the project.
34    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
35    pub description: Option<String >,
36}
37
38impl UpdateProjectRequest {
39    pub fn new(project: String , name: String ) -> UpdateProjectRequest {
40        UpdateProjectRequest {
41            project: project,
42            name: name,
43            description: Some("PROJECT_DESCRIPTION".to_string()),
44        }
45    }
46}
47