pub struct TwoFactorSetupSecret {
pub qrcode: String,
pub secret: String,
pub extra: Map<String, Value>,
}Expand description
New authenticator enrollment material. Both fields contain the same sensitive TOTP secret; initialize once and keep the result for activation.
Fields§
§qrcode: StringQR-code image as a data URI, suitable for an image element. It is not an HTTP URL.
secret: StringNew Base32 authenticator secret.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for TwoFactorSetupSecret
impl Clone for TwoFactorSetupSecret
Source§impl Debug for TwoFactorSetupSecret
impl Debug for TwoFactorSetupSecret
Source§impl Default for TwoFactorSetupSecret
impl Default for TwoFactorSetupSecret
Source§impl<'de> Deserialize<'de> for TwoFactorSetupSecret
impl<'de> Deserialize<'de> for TwoFactorSetupSecret
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
Source§impl PartialEq for TwoFactorSetupSecret
impl PartialEq for TwoFactorSetupSecret
Source§impl Serialize for TwoFactorSetupSecret
impl Serialize for TwoFactorSetupSecret
impl StructuralPartialEq for TwoFactorSetupSecret
Auto Trait Implementations§
impl Freeze for TwoFactorSetupSecret
impl RefUnwindSafe for TwoFactorSetupSecret
impl Send for TwoFactorSetupSecret
impl Sync for TwoFactorSetupSecret
impl Unpin for TwoFactorSetupSecret
impl UnsafeUnpin for TwoFactorSetupSecret
impl UnwindSafe for TwoFactorSetupSecret
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