Trait authenticator::backup::Restorable
source · pub trait Restorable: Sized {
type Item: RestorableItem;
const IDENTIFIER: &'static str;
const ENCRYPTABLE: bool = false;
const SCANNABLE: bool = false;
// Required methods
fn title() -> String;
fn subtitle() -> String;
fn restore_from_data(
from: &[u8],
key: Option<&str>
) -> Result<Vec<Self::Item>>;
}
Required Associated Types§
type Item: RestorableItem
Required Associated Constants§
const IDENTIFIER: &'static str
Provided Associated Constants§
sourceconst ENCRYPTABLE: bool = false
const ENCRYPTABLE: bool = false
Indicates that the GUI might need to prompt for a password.
Required Methods§
Object Safety§
This trait is not object safe.