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 AuthenticationFactorsCreateRequest {
    /// The type of factor to enroll.
    #[serde(rename = "type")]
    pub type_: AuthenticationFactorsCreateRequestType,
    /// Required when type is 'sms'.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub phone_number: Option<String>,
    /// Required when type is 'totp'.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub totp_issuer: Option<String>,
    /// Required when type is 'totp'.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub totp_user: Option<String>,
    /// The ID of the user to associate the factor with.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub user_id: Option<String>,
}