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§

source

fn as_key_directory(&self) -> &dyn KeyDirectory

Cast to KeyDirectory

source

fn name(&self) -> &str

Vault name

source

fn key(&self) -> VaultKey

Get vault key

source

fn set_key(&self, key: VaultKey) -> Result<(), SetKeyError>

Set new key for vault

source

fn meta(&self) -> String

Get vault meta

source

fn set_meta(&self, meta: &str) -> Result<(), Error>

Set vault meta

Implementors§