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§
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§
fn title() -> String
fn subtitle() -> String
fn backup(provider: &ProvidersModel, key: Option<&str>) -> Result<Vec<u8>>
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.