Derive Macro FromEnv

Source
#[derive(FromEnv)]
{
    // Attributes available to this derive:
    #[prefix]
    #[env]
}
Expand description

Generates a load_environment() function that will populate each field from environment variables.

This uses .parse() so make sure all members implement FromStr. Note that load_environment() is not a constructor.