#[non_exhaustive]pub struct AuthFactor {
pub device: Option<Box<Device>>,
pub email_addr: Option<String>,
pub factor_type: Option<String>,
pub factor_type_id: Option<i64>,
pub is_hotp: Option<bool>,
pub is_totp: Option<bool>,
pub phone_number: Option<String>,
pub provider: Option<String>,
pub security_questions: Option<Vec<String>>,
}Expand description
Authentication Factor
An Authentication Factor object describes a category of methods used for identity verification in an authentication attempt.
[] Category: | Name: auth_factor
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.device: Option<Box<Device>>Device
Device used to complete an authentication request.
recommended
email_addr: Option<String>Email Address
The email address used in an email-based authentication factor.
optional
factor_type: Option<String>Factor Type
The type of authentication factor used in an authentication attempt.
recommended
factor_type_id: Option<i64>Factor Type ID
The normalized identifier for the authentication factor.
required
is_hotp: Option<bool>HMAC-based One-time Password (HOTP)
Whether the authentication factor is an HMAC-based One-time Password (HOTP).
recommended
is_totp: Option<bool>Time-based One-time Password (TOTP)
Whether the authentication factor is a Time-based One-time Password (TOTP).
recommended
phone_number: Option<String>Phone Number
The phone number used for a telephony-based authentication request.
optional
provider: Option<String>Provider
The name of provider for an authentication factor.
recommended
security_questions: Option<Vec<String>>Security Questions
The question(s) provided to user for a question-based authentication factor.
optional
Trait Implementations§
Source§impl Clone for AuthFactor
impl Clone for AuthFactor
Source§fn clone(&self) -> AuthFactor
fn clone(&self) -> AuthFactor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more