pub struct UnlockedVault {
pub name: String,
pub salt: Vec<u8>,
pub pws: HashMap<String, String>,
}Fields§
§name: String§salt: Vec<u8>§pws: HashMap<String, String>Implementations§
Source§impl UnlockedVault
impl UnlockedVault
pub fn new(vault: &str) -> UnlockedVault
pub fn import(&mut self, path: &PathBuf) -> Result<Vec<Password>>
pub fn export(&self, path: &PathBuf) -> Result<()>
pub fn lock(&self, pass: &str) -> Result<LockedVault>
pub fn try_insert(&mut self, id: String, password: String) -> bool
pub fn insert(&mut self, id: String, password: String)
pub fn get(&self, id: String) -> Option<&String>
Auto Trait Implementations§
impl Freeze for UnlockedVault
impl RefUnwindSafe for UnlockedVault
impl Send for UnlockedVault
impl Sync for UnlockedVault
impl Unpin for UnlockedVault
impl UnwindSafe for UnlockedVault
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