bitwarden_core/auth/login/response/two_factor/
duo.rsuse schemars::JsonSchema;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, JsonSchema)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct Duo {
pub host: String,
pub signature: String,
}
impl From<crate::auth::api::response::two_factor_provider_data::duo::Duo> for Duo {
fn from(api: crate::auth::api::response::two_factor_provider_data::duo::Duo) -> Self {
Self {
host: api.host,
signature: api.signature,
}
}
}
impl From<crate::auth::api::response::two_factor_provider_data::organization_duo::OrganizationDuo>
for Duo
{
fn from(
api: crate::auth::api::response::two_factor_provider_data::organization_duo::OrganizationDuo,
) -> Self {
Self {
host: api.host,
signature: api.signature,
}
}
}