pub struct EnrollUserAuthenticationFactor {
pub type_: String,
pub totp_issuer: Option<String>,
pub totp_user: Option<String>,
pub totp_secret: Option<SecretString>,
}Fields§
§type_: StringThe type of the factor to enroll.
totp_issuer: Option<String>Your application or company name displayed in the user’s authenticator app.
totp_user: Option<String>The user’s account name displayed in their authenticator app.
totp_secret: Option<SecretString>The Base32-encoded shared secret for TOTP factors. This can be provided when creating the auth factor, otherwise it will be generated. The algorithm used to derive TOTP codes is SHA-1, the code length is 6 digits, and the timestep is 30 seconds – the secret must be compatible with these parameters.
Trait Implementations§
Source§impl Clone for EnrollUserAuthenticationFactor
impl Clone for EnrollUserAuthenticationFactor
Source§fn clone(&self) -> EnrollUserAuthenticationFactor
fn clone(&self) -> EnrollUserAuthenticationFactor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for EnrollUserAuthenticationFactor
impl<'de> Deserialize<'de> for EnrollUserAuthenticationFactor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnrollUserAuthenticationFactor
impl RefUnwindSafe for EnrollUserAuthenticationFactor
impl Send for EnrollUserAuthenticationFactor
impl Sync for EnrollUserAuthenticationFactor
impl Unpin for EnrollUserAuthenticationFactor
impl UnsafeUnpin for EnrollUserAuthenticationFactor
impl UnwindSafe for EnrollUserAuthenticationFactor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more