bitwarden_core/auth/login/response/
captcha_response.rsuse schemars::JsonSchema;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, JsonSchema)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct CaptchaResponse {
pub site_key: String,
}
impl From<crate::auth::api::response::IdentityCaptchaResponse> for CaptchaResponse {
fn from(api: crate::auth::api::response::IdentityCaptchaResponse) -> Self {
Self {
site_key: api.site_key,
}
}
}
impl From<String> for CaptchaResponse {
fn from(s: String) -> Self {
Self { site_key: s }
}
}