mirror of
https://github.com/OMGeeky/confique.git
synced 2026-02-23 15:38:30 +01:00
Parse #[env] attribute and representing it in meta types
This commit is contained in:
@@ -15,6 +15,7 @@ struct Conf {
|
||||
#[derive(Debug, Config)]
|
||||
struct Http {
|
||||
/// The port the server will listen on.
|
||||
#[config(env = "PORT")]
|
||||
port: u16,
|
||||
|
||||
/// The bind address of the server. Can be set to `0.0.0.0` for example, to
|
||||
|
||||
Reference in New Issue
Block a user