authentik_rust/models/web_authn_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/// WebAuthnDevice : Serializer for WebAuthn authenticator devices
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct WebAuthnDevice {
16 #[serde(rename = "pk")]
17 pub pk: i32,
18 #[serde(rename = "name")]
19 pub name: String,
20 #[serde(rename = "created_on")]
21 pub created_on: String,
22}
23
24impl WebAuthnDevice {
25 /// Serializer for WebAuthn authenticator devices
26 pub fn new(pk: i32, name: String, created_on: String) -> WebAuthnDevice {
27 WebAuthnDevice {
28 pk,
29 name,
30 created_on,
31 }
32 }
33}
34