Struct authenticator::backup::legacy::LegacyAuthenticator
source · pub struct LegacyAuthenticator {
pub secret: String,
pub label: String,
pub digits: u32,
pub method: Method,
pub algorithm: Algorithm,
pub thumbnail: String,
pub last_used: i64,
pub tags: Vec<String>,
pub period: u32,
}
Fields§
§secret: String
§label: String
§digits: u32
§method: Method
§algorithm: Algorithm
§thumbnail: String
§last_used: i64
§period: u32
Trait Implementations§
source§impl<'de> Deserialize<'de> for LegacyAuthenticator
impl<'de> Deserialize<'de> for LegacyAuthenticator
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 Drop for LegacyAuthenticator
impl Drop for LegacyAuthenticator
source§impl Restorable for LegacyAuthenticator
impl Restorable for LegacyAuthenticator
source§impl RestorableItem for LegacyAuthenticator
impl RestorableItem for LegacyAuthenticator
fn account(&self) -> String
fn issuer(&self) -> String
fn secret(&self) -> String
fn period(&self) -> Option<u32>
fn method(&self) -> Method
fn algorithm(&self) -> Algorithm
fn digits(&self) -> Option<u32>
fn counter(&self) -> Option<u32>
fn restore(&self, provider: &ProvidersModel) -> Result<()>
Auto Trait Implementations§
impl RefUnwindSafe for LegacyAuthenticator
impl Send for LegacyAuthenticator
impl Sync for LegacyAuthenticator
impl Unpin for LegacyAuthenticator
impl UnwindSafe for LegacyAuthenticator
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