Struct rasslib::store::PassEntry
[−]
[src]
pub struct PassEntry { // some fields omitted }
Represents an entry in a PassStore
relative to the stores location.
Methods
impl PassEntry
fn new(path: &PathBuf, passhome: &PathBuf) -> PassEntry
Constructs a new PassEntry
.
Examples
use std::path::PathBuf; use rasslib::store::PassEntry; let entry_path = PathBuf::from("/home/bar/.store/foobar.gpg"); let store_path = PathBuf::from("/home/bar/.store"); let entry = PassEntry::new(&entry_path, &store_path); assert_eq!("foobar", &format!("{}",entry));