clerk_sdk_rust_community/models/
verify_totp_200_response.rs

1/*
2 * Clerk Backend API
3 *
4 * The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
5 *
6 * The version of the OpenAPI document: v1
7 * Contact: support@clerk.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct VerifyTotp200Response {
16    #[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
17    pub verified: Option<bool>,
18    #[serde(rename = "code_type", skip_serializing_if = "Option::is_none")]
19    pub code_type: Option<CodeType>,
20}
21
22impl VerifyTotp200Response {
23    pub fn new() -> VerifyTotp200Response {
24        VerifyTotp200Response {
25            verified: None,
26            code_type: None,
27        }
28    }
29}
30
31/// 
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
33pub enum CodeType {
34    #[serde(rename = "totp")]
35    Totp,
36    #[serde(rename = "backup_code")]
37    BackupCode,
38}
39
40impl Default for CodeType {
41    fn default() -> CodeType {
42        Self::Totp
43    }
44}
45