pub struct Key { /* private fields */ }
Expand description
Composite key protecting the password database
This key is composed of a password and/or a key file which must be provided when opening a KeePass password database
use keepass_db::Key;
let mut key = Key::new();
key.set_user_password("secret");
Implementations§
Source§impl Key
impl Key
Sourcepub fn set_user_password<T>(&mut self, user_password: T)
pub fn set_user_password<T>(&mut self, user_password: T)
Set the password for the compsite key
key.set_user_password("secret");
Sourcepub fn set_keyfile<T>(&mut self, keyfile: T)
pub fn set_keyfile<T>(&mut self, keyfile: T)
Load a key file for the composite key
key.set_keyfile("secret");
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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