Struct hips::Database[][src]

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

A handle to the underlying secrets database.

Any calls to this object’s methods (load, store..) will result in a similar call on the injected Backend implementation, no caching is being done. Every call will also invoke encryption/decryption logic, which should be considered slow.

Implementations

Instantiate a new Database with injected Backend/Encrypter.

Instantiate a new Database from a file.

This function will try to guess which database type is needed, and create the appropriate backend based on that. This is used in the binary, which supports only the Backends and Encrypters shipped with hips.

Store the provided secret.

Load the name secret.

Remove the name secret.

List all secrets.

Process the database through a template.

This call will read the provided template and replace all references to secrets with the secrets stored in the database. We use the tinytemplate engine, see their syntax page for more context.

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.

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.