pub enum TotpAlgorithm {
Sha1,
}Variants§
Sha1
only allowing SHA1 for now because many of the major MFA authenticator apps don’t support SHA256 or SHA512, and fail silently.
Trait Implementations§
Source§impl Clone for TotpAlgorithm
impl Clone for TotpAlgorithm
Source§fn clone(&self) -> TotpAlgorithm
fn clone(&self) -> TotpAlgorithm
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 TotpAlgorithm
impl Debug for TotpAlgorithm
Source§impl<'de> Deserialize<'de> for TotpAlgorithm
impl<'de> Deserialize<'de> for TotpAlgorithm
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 TotpAlgorithm
impl RefUnwindSafe for TotpAlgorithm
impl Send for TotpAlgorithm
impl Sync for TotpAlgorithm
impl Unpin for TotpAlgorithm
impl UnwindSafe for TotpAlgorithm
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