workos 1.0.0

Official Rust SDK for the WorkOS API
Documentation
// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AuthenticationFactorEnrolled {
    /// Distinguishes the authentication factor object.
    pub object: String,
    /// The unique ID of the factor.
    pub id: String,
    /// The type of the factor to enroll.
    #[serde(rename = "type")]
    pub type_: AuthenticationFactorEnrolledType,
    /// The ID of the [user](https://workos.com/docs/reference/authkit/user).
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub user_id: Option<String>,
    /// SMS-based authentication factor details.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub sms: Option<AuthenticationFactorEnrolledSms>,
    /// TOTP-based authentication factor details. Includes enrollment secrets only available at creation time.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub totp: Option<AuthenticationFactorEnrolledTotp>,
    /// An ISO 8601 timestamp.
    pub created_at: String,
    /// An ISO 8601 timestamp.
    pub updated_at: String,
}