bitwarden_api_api/models/
fido2_user.rsuse serde::{Deserialize, Serialize};
use serde_with::serde_as;
use crate::models;
#[serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Fido2User {
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde_as(as = "Option<serde_with::base64::Base64>")]
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<Vec<u8>>,
#[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
pub display_name: Option<String>,
}
impl Fido2User {
pub fn new() -> Fido2User {
Fido2User {
name: None,
id: None,
display_name: None,
}
}
}