authentik_rust/models/
identification_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/// IdentificationChallengeResponseRequest : Identification challenge
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct IdentificationChallengeResponseRequest {
16    #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
17    pub component: Option<String>,
18    #[serde(rename = "uid_field")]
19    pub uid_field: String,
20    #[serde(rename = "password", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub password: Option<Option<String>>,
22}
23
24impl IdentificationChallengeResponseRequest {
25    /// Identification challenge
26    pub fn new(uid_field: String) -> IdentificationChallengeResponseRequest {
27        IdentificationChallengeResponseRequest {
28            component: None,
29            uid_field,
30            password: None,
31        }
32    }
33}
34