Skip to main content

authentik_client/models/
identification_challenge_response_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.12.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// IdentificationChallengeResponseRequest : Identification challenge
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct IdentificationChallengeResponseRequest {
17    #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
18    pub component: Option<String>,
19    #[serde(
20        rename = "uid_field",
21        default,
22        with = "::serde_with::rust::double_option",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub uid_field: Option<Option<String>>,
26    #[serde(
27        rename = "password",
28        default,
29        with = "::serde_with::rust::double_option",
30        skip_serializing_if = "Option::is_none"
31    )]
32    pub password: Option<Option<String>>,
33    #[serde(
34        rename = "captcha_token",
35        default,
36        with = "::serde_with::rust::double_option",
37        skip_serializing_if = "Option::is_none"
38    )]
39    pub captcha_token: Option<Option<String>>,
40    #[serde(
41        rename = "passkey",
42        default,
43        with = "::serde_with::rust::double_option",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub passkey: Option<Option<std::collections::HashMap<String, serde_json::Value>>>,
47}
48
49impl IdentificationChallengeResponseRequest {
50    /// Identification challenge
51    pub fn new() -> IdentificationChallengeResponseRequest {
52        IdentificationChallengeResponseRequest {
53            component: None,
54            uid_field: None,
55            password: None,
56            captcha_token: None,
57            passkey: None,
58        }
59    }
60}