[][src]Struct kdbx4::Database

pub struct Database { /* fields omitted */ }

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

Methods

impl Database
[src]

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

impl Debug for Database
[src]

Auto Trait Implementations

impl Send for Database

impl Sync for Database

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

Should always be Self