authenticator::backup

Trait Backupable

Source
pub trait Backupable: Sized {
    const IDENTIFIER: &'static str;
    const ENCRYPTABLE: bool = false;

    // Required methods
    fn title() -> String;
    fn subtitle() -> String;
    fn backup(provider: &ProvidersModel, key: Option<&str>) -> Result<Vec<u8>>;
}

Required Associated Constants§

Source

const IDENTIFIER: &'static str

Provided Associated Constants§

Source

const ENCRYPTABLE: bool = false

Indicates that the GUI might need to prompt for a password.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Backupable for Aegis

Source§

const ENCRYPTABLE: bool = true

Source§

const IDENTIFIER: &'static str = "aegis"

Source§

impl Backupable for AndOTP

Source§

const ENCRYPTABLE: bool = false

Source§

const IDENTIFIER: &'static str = "andotp"

Source§

impl Backupable for FreeOTP

Source§

const ENCRYPTABLE: bool = false

Source§

const IDENTIFIER: &'static str = "authenticator"