pub struct MfaEnrollment {
pub secret_base32: String,
pub otpauth_uri: String,
pub qr_svg: String,
pub qr_utf8: String,
pub algorithm: String,
pub digits: u8,
pub period_seconds: u32,
pub expires_at: String,
}Expand description
A started enrollment.
The shared secret appears here exactly once. rc renders it and drops it; it
is never written to the alias config or any other file.
Fields§
§secret_base32: String§otpauth_uri: String§qr_svg: StringServer-rendered SVG. Carried for parity with the console; rc prints the
terminal form instead.
qr_utf8: StringServer-rendered Unicode block art, ready to print.
algorithm: String§digits: u8§period_seconds: u32§expires_at: StringTrait Implementations§
Source§impl Clone for MfaEnrollment
impl Clone for MfaEnrollment
Source§fn clone(&self) -> MfaEnrollment
fn clone(&self) -> MfaEnrollment
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 Debug for MfaEnrollment
impl Debug for MfaEnrollment
Source§impl<'de> Deserialize<'de> for MfaEnrollment
impl<'de> Deserialize<'de> for MfaEnrollment
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 MfaEnrollment
impl RefUnwindSafe for MfaEnrollment
impl Send for MfaEnrollment
impl Sync for MfaEnrollment
impl Unpin for MfaEnrollment
impl UnsafeUnpin for MfaEnrollment
impl UnwindSafe for MfaEnrollment
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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