Vapor v0.7.1 API Reference
Modules
Loads dynamic configuration at runtime.
The dotenv config provider will look for a .env
file and load all of
the values for that file. The values can be written like so
The Env config module provides support for pulling configuration values from the environment. Bindings must be specified at a keyword list.
Module for loading supported file format configs Supported file formats: .json, .toml, .yaml. Bindings to specific keys must be provided as a keyword list. The values for each key must be either a string or a path based on the Access protocol.
Allows users to group together bits of configuration. This allows users to avoid duplication and avoids conflicts in common names such as "port" and "host".