[][src]Struct kdbx4::Kdbx4

pub struct Kdbx4 { /* fields omitted */ }

Opens KeePass KDBX4 database.

Use CompositeKey and open with Path to your database or open_bytes with a reference to bytes already read beforehand.

Example

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 Kdbx4
[src]

Returns opened Database from Path.

Example

let db = Kdbx4::open("~/passwords.kdbx", key).unwrap();

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

Returns opened Database reading it from provided bytes.

Example

let mut bytes = Vec::new();

let mut stream = TcpStream::connect("127.0.0.1:8080").unwrap();
stream.read_to_end(&mut bytes);

let db = Kdbx4::open_bytes(bytes, key).unwrap();

Trait Implementations

impl Debug for Kdbx4
[src]

Auto Trait Implementations

impl Send for Kdbx4

impl Sync for Kdbx4

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