pub struct TotpConfig {
pub template: Option<String>,
pub algorithm: TotpAlgorithm,
}Fields§
§template: Option<String>Used for response after registration form is submitted. Will just return a QR code SVG if not set.
algorithm: TotpAlgorithmTrait Implementations§
Source§impl Clone for TotpConfig
impl Clone for TotpConfig
Source§fn clone(&self) -> TotpConfig
fn clone(&self) -> TotpConfig
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 TotpConfig
impl Debug for TotpConfig
Source§impl Default for TotpConfig
impl Default for TotpConfig
Source§fn default() -> TotpConfig
fn default() -> TotpConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TotpConfig
impl<'de> Deserialize<'de> for TotpConfig
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 TotpConfig
impl RefUnwindSafe for TotpConfig
impl Send for TotpConfig
impl Sync for TotpConfig
impl Unpin for TotpConfig
impl UnwindSafe for TotpConfig
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