Skip to main content

authentik_client/models/
static_device_token.rs

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