Skip to main content

doppler_rs/models/
create_integration_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/// CreateIntegrationRequest
25#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
26pub struct CreateIntegrationRequest {
27    /// The integration type
28    #[serde(rename = "type")]
29    pub r#type: String ,
30    /// The name of the integration
31    #[serde(rename = "name")]
32    pub name: String ,
33    /// The authentication data for the integration
34    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
35    pub data: Option<serde_json::Value >,
36}
37
38impl CreateIntegrationRequest {
39    pub fn new(r#type: String , name: String ) -> CreateIntegrationRequest {
40        CreateIntegrationRequest {
41            r#type: r#type,
42            name: name,
43            data: None,
44        }
45    }
46}
47