Loading...
Loading...
Reads a field from the typed Environment singleton, returning a parsed copy of its value. A second argument provides a fallback that collapses an Option<T> field to a concrete T. If the project defines no Environment struct the accessor is never generated, so the macro fails to compile at the call site.
Read any field - public or private - from your `Environment` struct. The value comes back parsed to the field's Rust type:
Pass a second argument to collapse an `Option<T>` field to a concrete `T`, using the fallback when the variable is unset (a fallback on a required field is a type error):