bitwarden_api_identity/models/
public_key_credential_type.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[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}