authentik_rust/models/
authenticator_web_authn_challenge_response_request.rs1use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AuthenticatorWebAuthnChallengeResponseRequest {
16 #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
17 pub component: Option<String>,
18 #[serde(rename = "response")]
19 pub response: std::collections::HashMap<String, serde_json::Value>,
20}
21
22impl AuthenticatorWebAuthnChallengeResponseRequest {
23 pub fn new(response: std::collections::HashMap<String, serde_json::Value>) -> AuthenticatorWebAuthnChallengeResponseRequest {
25 AuthenticatorWebAuthnChallengeResponseRequest {
26 component: None,
27 response,
28 }
29 }
30}
31