fusionauth_rust_client/models/authenticator_attachment.rs
1/*
2 * FusionAuth API
3 *
4 * This is a FusionAuth server. Find out more at [https://fusionauth.io](https://fusionauth.io). You need to [set up an API key](https://fusionauth.io/docs/v1/tech/apis/authentication#managing-api-keys) in the FusionAuth instance you are using to test out the API calls.
5 *
6 * The version of the OpenAPI document: 1.57.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AuthenticatorAttachment : Describes the <a href=\"https:www.w3.orgTRwebauthn-2#authenticator-attachment-modality\">authenticator attachment modality<a>.
15/// Describes the <a href=\"https:www.w3.orgTRwebauthn-2#authenticator-attachment-modality\">authenticator attachment modality<a>.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum AuthenticatorAttachment {
18 #[serde(rename = "platform")]
19 Platform,
20 #[serde(rename = "crossPlatform")]
21 CrossPlatform,
22
23}
24
25impl std::fmt::Display for AuthenticatorAttachment {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::Platform => write!(f, "platform"),
29 Self::CrossPlatform => write!(f, "crossPlatform"),
30 }
31 }
32}
33
34impl Default for AuthenticatorAttachment {
35 fn default() -> AuthenticatorAttachment {
36 Self::Platform
37 }
38}
39