Struct kdbx4::CompositeKey[][src]

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

The key to the database.

May be constructed with a plain password string or from a password and a key file (read more).

Implementations

Creates CompositeKey using master password and database key file. Both arguments are optional.

Example
use kdbx4::{Kdbx4,CompositeKey};

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

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.