bitwarden_core/auth/login/response/two_factor/
yubi_key.rs1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4#[allow(missing_docs)]
5#[derive(Serialize, Deserialize, Debug, JsonSchema)]
6#[serde(rename_all = "camelCase", deny_unknown_fields)]
7pub struct YubiKey {
8 pub nfc: bool,
10}
11
12impl From<crate::auth::api::response::two_factor_provider_data::yubi_key::YubiKey> for YubiKey {
13 fn from(api: crate::auth::api::response::two_factor_provider_data::yubi_key::YubiKey) -> Self {
14 Self { nfc: api.nfc }
15 }
16}