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