bitwarden_api_identity/models/
public_key_credential_type.rs

1/*
2 * Bitwarden Identity
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15///
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum PublicKeyCredentialType {
18    #[serde(rename = "public-key")]
19    PublicKey,
20}
21
22impl std::fmt::Display for PublicKeyCredentialType {
23    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
24        match self {
25            Self::PublicKey => write!(f, "public-key"),
26        }
27    }
28}
29
30impl Default for PublicKeyCredentialType {
31    fn default() -> PublicKeyCredentialType {
32        Self::PublicKey
33    }
34}