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 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 Associated Types§
type Item: RestorableItem
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.