pub struct ReadOnlyVaultDirectory { /* private fields */ }Expand description
Read-only view of encrypted vault metadata.
This type deliberately opens the vault with Lockbox::open and never
attaches or loads an owner-signing key. It is intended for completion,
diagnostics, and other metadata-only consumers.
Implementations§
Source§impl ReadOnlyVaultDirectory
impl ReadOnlyVaultDirectory
Sourcepub fn open_default(
password: &SecureString,
) -> Result<ReadOnlyVaultDirectory, Error>
pub fn open_default( password: &SecureString, ) -> Result<ReadOnlyVaultDirectory, Error>
Opens the default vault without loading owner-signing material.
Sourcepub fn open(
root: impl AsRef<Path>,
password: &SecureString,
) -> Result<ReadOnlyVaultDirectory, Error>
pub fn open( root: impl AsRef<Path>, password: &SecureString, ) -> Result<ReadOnlyVaultDirectory, Error>
Opens a vault at root without loading owner-signing material.
Sourcepub fn list_private_key_names(&self) -> Result<Vec<String>, Error>
pub fn list_private_key_names(&self) -> Result<Vec<String>, Error>
Lists profile names without reading their private key records.
Sourcepub fn list_contact_names(&self) -> Result<Vec<String>, Error>
pub fn list_contact_names(&self) -> Result<Vec<String>, Error>
Lists saved contact names without loading contact key material.
Sourcepub fn list_form_aliases(&self) -> Result<Vec<String>, Error>
pub fn list_form_aliases(&self) -> Result<Vec<String>, Error>
Lists reusable form aliases. Form definitions contain no private key material and are read directly from the encrypted metadata view.
Sourcepub fn list_known_lockboxes(&self) -> Result<Vec<KnownLockbox>, Error>
pub fn list_known_lockboxes(&self) -> Result<Vec<KnownLockbox>, Error>
Lists remembered lockbox paths without opening any lockbox or key.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ReadOnlyVaultDirectory
impl !RefUnwindSafe for ReadOnlyVaultDirectory
impl !Sync for ReadOnlyVaultDirectory
impl Send for ReadOnlyVaultDirectory
impl Unpin for ReadOnlyVaultDirectory
impl UnsafeUnpin for ReadOnlyVaultDirectory
impl UnwindSafe for ReadOnlyVaultDirectory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more