Skip to main content

doppler_rs/models/
service_token.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/// ServiceToken
25#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
26pub struct ServiceToken {
27    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
28    pub name: Option<String >,
29    #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
30    pub slug: Option<String >,
31    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
32    pub created_at: Option<chrono::DateTime<chrono::Utc> >,
33    #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
34    pub config: Option<String >,
35    #[serde(rename = "environment", skip_serializing_if = "Option::is_none")]
36    pub environment: Option<String >,
37    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
38    pub project: Option<String >,
39    #[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")]
40    pub expires_at: Option<serde_json::Value >,
41}
42
43impl ServiceToken {
44    pub fn new() -> ServiceToken {
45        ServiceToken {
46            name: None,
47            slug: None,
48            created_at: None,
49            config: None,
50            environment: None,
51            project: None,
52            expires_at: None,
53        }
54    }
55}
56