pub enum OtpStorage {
Plain,
Encrypted,
Hashed,
CustomHash(OtpHashFn),
CustomEncrypt {
encrypt: OtpEncryptFn,
decrypt: OtpDecryptFn,
},
}Variants§
Trait Implementations§
Source§impl Clone for OtpStorage
impl Clone for OtpStorage
Source§fn clone(&self) -> OtpStorage
fn clone(&self) -> OtpStorage
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 OtpStorage
impl Debug for OtpStorage
Source§impl Default for OtpStorage
impl Default for OtpStorage
Source§fn default() -> OtpStorage
fn default() -> OtpStorage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OtpStorage
impl !UnwindSafe for OtpStorage
impl Freeze for OtpStorage
impl Send for OtpStorage
impl Sync for OtpStorage
impl Unpin for OtpStorage
impl UnsafeUnpin for OtpStorage
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