[][src]Crate itconfig

Modules

envstr
prelude

Macros

config

Creates new public mod with function fo get each environment variable of mapping.

Functions

get_env

Try to read environment variable and parse to expected type. You may to put to argument any type with FromEnvString trait.

get_env_or

This function returns env variable as EnvString structure. You can pass callback for custom default expression. Callback should return EnvString value or panic!

get_env_or_default

This function is similar as get_env but more safely. You can pass default value for environment variable with ToEnvString trait.

get_env_or_set_default

This function is similar as get_env_or_default but if env variable is missed, will set default value to environment variable.