Skip to main content

Module settings

Module settings 

Source
Expand description

The settings the command line needs, as plain values.

CliSettings is a thin adapter: it carries only the listen address and the database URLs, so this crate does not depend on the configuration crate’s Settings type. The application (or the configuration crate) maps its settings into it, for example from server.addr and databases.<alias>.url.

Structs§

CliSettings
Listen address and database URLs for the command line.

Constants§

DEFAULT_ADDR
Listen address used when neither a flag, ADDR nor the settings give one.
DEFAULT_DATABASE
Alias of the database that holds the application’s models.