authenticator::backup

Trait RestorableItem

Source
pub trait RestorableItem {
    // Required methods
    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>;

    // Provided method
    fn restore(&self, provider: &ProvidersModel) -> Result<()> { ... }
}

Required Methods§

Source

fn account(&self) -> String

Source

fn issuer(&self) -> String

Source

fn secret(&self) -> String

Source

fn period(&self) -> Option<u32>

Source

fn method(&self) -> Method

Source

fn algorithm(&self) -> Algorithm

Source

fn digits(&self) -> Option<u32>

Source

fn counter(&self) -> Option<u32>

Provided Methods§

Source

fn restore(&self, provider: &ProvidersModel) -> Result<()>

Implementors§