Function envoption::with_default [] [src]

pub fn with_default<T, B>(
    var_name: &str,
    default: B
) -> Result<T, EnvOptionError<T::Err>> where
    B: Into<T>,
    T: FromStr + Debug,
    T::Err: Error

Get an environment variable, returning a default value if it doesn't exist.