bitwarden_core/auth/login/response/
captcha_response.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 CaptchaResponse {
8 pub site_key: String,
10}
11
12impl From<crate::auth::api::response::IdentityCaptchaResponse> for CaptchaResponse {
13 fn from(api: crate::auth::api::response::IdentityCaptchaResponse) -> Self {
14 Self {
15 site_key: api.site_key,
16 }
17 }
18}
19
20impl From<String> for CaptchaResponse {
21 fn from(s: String) -> Self {
22 Self { site_key: s }
23 }
24}