authentik_rust/models/static_device_token.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/// StaticDeviceToken : Serializer for static device's tokens
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct StaticDeviceToken {
16 #[serde(rename = "token")]
17 pub token: String,
18}
19
20impl StaticDeviceToken {
21 /// Serializer for static device's tokens
22 pub fn new(token: String) -> StaticDeviceToken {
23 StaticDeviceToken {
24 token,
25 }
26 }
27}
28