use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AuthenticatorWebAuthnChallengeResponseRequest {
#[serde(rename = "component", skip_serializing_if = "Option::is_none")]
pub component: Option<String>,
#[serde(rename = "response")]
pub response: std::collections::HashMap<String, serde_json::Value>,
}
impl AuthenticatorWebAuthnChallengeResponseRequest {
pub fn new(
response: std::collections::HashMap<String, serde_json::Value>,
) -> AuthenticatorWebAuthnChallengeResponseRequest {
AuthenticatorWebAuthnChallengeResponseRequest {
component: None,
response,
}
}
}