bitwarden_core/auth/login/response/two_factor/
yubi_key.rs

1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4#[derive(Serialize, Deserialize, Debug, JsonSchema)]
5#[serde(rename_all = "camelCase", deny_unknown_fields)]
6pub struct YubiKey {
7    /// Whether the stored yubikey supports near field communication
8    pub nfc: bool,
9}
10
11impl From<crate::auth::api::response::two_factor_provider_data::yubi_key::YubiKey> for YubiKey {
12    fn from(api: crate::auth::api::response::two_factor_provider_data::yubi_key::YubiKey) -> Self {
13        Self { nfc: api.nfc }
14    }
15}