Skip to main content

doppler_rs/models/
delete_service_token_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/// DeleteServiceTokenRequest
25#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
26pub struct DeleteServiceTokenRequest {
27    /// Unique identifier for the project object.
28    #[serde(rename = "project")]
29    pub project: String ,
30    /// Name of the config object.
31    #[serde(rename = "config")]
32    pub config: String ,
33    /// The slug of the service token.
34    #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
35    pub slug: Option<String >,
36    /// The token value.
37    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
38    pub token: Option<String >,
39}
40
41impl DeleteServiceTokenRequest {
42    pub fn new(project: String , config: String ) -> DeleteServiceTokenRequest {
43        DeleteServiceTokenRequest {
44            project: project,
45            config: config,
46            slug: Some("TOKEN_SLUG".to_string()),
47            token: Some("TOKEN_VALUE".to_string()),
48        }
49    }
50}
51