authentik_rust/models/
authenticator_sms_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/// AuthenticatorSmsChallengeResponseRequest : SMS Challenge response, device is set by get_response_instance
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AuthenticatorSmsChallengeResponseRequest {
16    #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
17    pub component: Option<String>,
18    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
19    pub code: Option<i32>,
20    #[serde(rename = "phone_number", skip_serializing_if = "Option::is_none")]
21    pub phone_number: Option<String>,
22}
23
24impl AuthenticatorSmsChallengeResponseRequest {
25    /// SMS Challenge response, device is set by get_response_instance
26    pub fn new() -> AuthenticatorSmsChallengeResponseRequest {
27        AuthenticatorSmsChallengeResponseRequest {
28            component: None,
29            code: None,
30            phone_number: None,
31        }
32    }
33}
34