Struct kdbx4::Database[][src]

pub struct Database { /* fields omitted */ }
Expand description

Provides access to a database XML content.

Examples

use kdbx4::{Kdbx4,CompositeKey};

let key = CompositeKey::new(Some("P@ssW0rd"), None::<String>).unwrap();
let db = Kdbx4::open("~/passwords.kdbx", key).unwrap();

assert!(db.entries().len() >= 0);

Implementations

Returns all Entrys from database.

Examples
let mut total = 0;

for entry in db.entries() {
  total += 1;
}

Returns Entrys with title starting with pattern.

Matching is case-insensitive.

Examples
assert_eq!(0, db.find("example.com").len());

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.