authentik_client/models/
authenticator_sms_challenge_response_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AuthenticatorSmsChallengeResponseRequest : SMS Challenge response, device is set by get_response_instance
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AuthenticatorSmsChallengeResponseRequest {
17    #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
18    pub component: Option<String>,
19    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
20    pub code: Option<i32>,
21    #[serde(rename = "phone_number", skip_serializing_if = "Option::is_none")]
22    pub phone_number: Option<String>,
23}
24
25impl AuthenticatorSmsChallengeResponseRequest {
26    /// SMS Challenge response, device is set by get_response_instance
27    pub fn new() -> AuthenticatorSmsChallengeResponseRequest {
28        AuthenticatorSmsChallengeResponseRequest {
29            component: None,
30            code: None,
31            phone_number: None,
32        }
33    }
34}