Struct migrant_lib::Settings [] [src]

pub struct Settings { /* fields omitted */ }

Project settings

These settings are serialized and saved in a project Migrant.toml config file or defined explicitly in source using the provided builder methods.

Methods

impl Settings
[src]

[src]

Initialize from a serialized settings file

[src]

Initialize an empty Settings to be configured

[src]

Set directory to look for migration files.

[src]

Set the path to look for a database file. Note, this is only used for sqlite and is the only property that is used/required for connecting to sqlite databases.

[src]

Set the database name.

[src]

Set the database host.

[src]

Set the database port.

[src]

Set the database user.

[src]

Set the database password.

[src]

Set a collection of database connection parameters.

Trait Implementations

impl Debug for Settings
[src]

[src]

Formats the value using the given formatter.

impl Clone for Settings
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more