authentik_rust/models/
authenticator_validation_challenge_response_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// AuthenticatorValidationChallengeResponseRequest : Challenge used for Code-based and WebAuthn authenticators
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AuthenticatorValidationChallengeResponseRequest {
16    #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
17    pub component: Option<String>,
18    #[serde(rename = "selected_challenge", skip_serializing_if = "Option::is_none")]
19    pub selected_challenge: Option<Box<models::DeviceChallengeRequest>>,
20    #[serde(rename = "selected_stage", skip_serializing_if = "Option::is_none")]
21    pub selected_stage: Option<String>,
22    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
23    pub code: Option<String>,
24    #[serde(rename = "webauthn", skip_serializing_if = "Option::is_none")]
25    pub webauthn: Option<std::collections::HashMap<String, serde_json::Value>>,
26    #[serde(rename = "duo", skip_serializing_if = "Option::is_none")]
27    pub duo: Option<i32>,
28}
29
30impl AuthenticatorValidationChallengeResponseRequest {
31    /// Challenge used for Code-based and WebAuthn authenticators
32    pub fn new() -> AuthenticatorValidationChallengeResponseRequest {
33        AuthenticatorValidationChallengeResponseRequest {
34            component: None,
35            selected_challenge: None,
36            selected_stage: None,
37            code: None,
38            webauthn: None,
39            duo: None,
40        }
41    }
42}
43