Trait cfxstore::accounts_dir::VaultKeyDirectory
source · pub trait VaultKeyDirectory: KeyDirectory {
// Required methods
fn as_key_directory(&self) -> &dyn KeyDirectory;
fn name(&self) -> &str;
fn key(&self) -> VaultKey;
fn set_key(&self, key: VaultKey) -> Result<(), SetKeyError>;
fn meta(&self) -> String;
fn set_meta(&self, meta: &str) -> Result<(), Error>;
}
Expand description
Vault directory
Required Methods§
sourcefn as_key_directory(&self) -> &dyn KeyDirectory
fn as_key_directory(&self) -> &dyn KeyDirectory
Cast to KeyDirectory