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));

Trait Implementations

impl Display for PassEntry

fn fmt(&self, f: &mut Formatter) -> Result

impl Into<String> for PassEntry

fn into(self) -> String

Derived Implementations

impl PartialEq for PassEntry

fn eq(&self, __arg_0: &PassEntry) -> bool

fn ne(&self, __arg_0: &PassEntry) -> bool

impl Default for PassEntry

fn default() -> PassEntry

impl Clone for PassEntry

fn clone(&self) -> PassEntry

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for PassEntry

fn fmt(&self, __arg_0: &mut Formatter) -> Result