windmill_api/models/
new_token.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.555.2
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct NewToken {
16    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
17    pub label: Option<String>,
18    #[serde(rename = "expiration", skip_serializing_if = "Option::is_none")]
19    pub expiration: Option<String>,
20    #[serde(rename = "scopes", skip_serializing_if = "Option::is_none")]
21    pub scopes: Option<Vec<String>>,
22    #[serde(rename = "workspace_id", skip_serializing_if = "Option::is_none")]
23    pub workspace_id: Option<String>,
24}
25
26impl NewToken {
27    pub fn new() -> NewToken {
28        NewToken {
29            label: None,
30            expiration: None,
31            scopes: None,
32            workspace_id: None,
33        }
34    }
35}
36