fusionauth_rust_client/models/
two_factor_method.rs

1/*
2 * FusionAuth API
3 *
4 * This is a FusionAuth server. Find out more at [https://fusionauth.io](https://fusionauth.io). You need to [set up an API key](https://fusionauth.io/docs/v1/tech/apis/authentication#managing-api-keys) in the FusionAuth instance you are using to test out the API calls.
5 *
6 * The version of the OpenAPI document: 1.55.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TwoFactorMethod : 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TwoFactorMethod {
17    #[serde(rename = "authenticator", skip_serializing_if = "Option::is_none")]
18    pub authenticator: Option<Box<models::AuthenticatorConfiguration>>,
19    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
20    pub email: Option<String>,
21    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
22    pub id: Option<String>,
23    #[serde(rename = "lastUsed", skip_serializing_if = "Option::is_none")]
24    pub last_used: Option<bool>,
25    #[serde(rename = "method", skip_serializing_if = "Option::is_none")]
26    pub method: Option<String>,
27    #[serde(rename = "mobilePhone", skip_serializing_if = "Option::is_none")]
28    pub mobile_phone: Option<String>,
29    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
30    pub secret: Option<String>,
31}
32
33impl TwoFactorMethod {
34    /// 
35    pub fn new() -> TwoFactorMethod {
36        TwoFactorMethod {
37            authenticator: None,
38            email: None,
39            id: None,
40            last_used: None,
41            method: None,
42            mobile_phone: None,
43            secret: None,
44        }
45    }
46}
47