Module primitives::config
source · Modules
Module for
Config
(de)serialization of std::time::Duration
from
and to milliseconds.Structs
Configured chain with tokens.
Examples:
Config values that are used in the sentry only
Errors that can occur when deserializing a type.
Config values that are used in the validator worker only
Enums
The environment in which the application is running
Defaults to
Environment::Development
Statics
Ganache (dev) configuration found in
docs/config/ganache.toml
Production configuration found in
docs/config/prod.toml
Functions
If no
config_file
path is provided it will load the Environment
configuration.
If config_file
path is provided it will try to read and parse the file in Toml format.