authentik_rust/models/
token_view.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// TokenView : Show token's current key
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TokenView {
16    #[serde(rename = "key")]
17    pub key: String,
18}
19
20impl TokenView {
21    /// Show token's current key
22    pub fn new(key: String) -> TokenView {
23        TokenView {
24            key,
25        }
26    }
27}
28