pub struct MfaEnrollParams {
pub factor_type: FactorType,
pub friendly_name: Option<String>,
pub issuer: Option<String>,
pub phone: Option<String>,
}Expand description
Parameters for enrolling a new MFA factor.
Use MfaEnrollParams::totp() or MfaEnrollParams::phone(number) to create.
Fields§
§factor_type: FactorType§friendly_name: Option<String>§issuer: Option<String>§phone: Option<String>Implementations§
Source§impl MfaEnrollParams
impl MfaEnrollParams
Sourcepub fn friendly_name(self, name: &str) -> Self
pub fn friendly_name(self, name: &str) -> Self
Set a friendly name for the factor.
Trait Implementations§
Source§impl Clone for MfaEnrollParams
impl Clone for MfaEnrollParams
Source§fn clone(&self) -> MfaEnrollParams
fn clone(&self) -> MfaEnrollParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MfaEnrollParams
impl Debug for MfaEnrollParams
Auto Trait Implementations§
impl Freeze for MfaEnrollParams
impl RefUnwindSafe for MfaEnrollParams
impl Send for MfaEnrollParams
impl Sync for MfaEnrollParams
impl Unpin for MfaEnrollParams
impl UnsafeUnpin for MfaEnrollParams
impl UnwindSafe for MfaEnrollParams
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