authentik_rust/models/duo_device.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/// DuoDevice : Serializer for Duo authenticator devices
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DuoDevice {
16 #[serde(rename = "pk")]
17 pub pk: i32,
18 /// The human-readable name of this device.
19 #[serde(rename = "name")]
20 pub name: String,
21}
22
23impl DuoDevice {
24 /// Serializer for Duo authenticator devices
25 pub fn new(pk: i32, name: String) -> DuoDevice {
26 DuoDevice {
27 pk,
28 name,
29 }
30 }
31}
32