mirror of
https://github.com/OMGeeky/confique.git
synced 2026-01-23 11:48:53 +01:00
Add #[config(partial_attr(...))] to add attributes for partial type
CC #17
This commit is contained in:
@@ -15,6 +15,7 @@ struct Conf {
|
||||
|
||||
/// Configuring the HTTP server of our app.
|
||||
#[derive(Debug, Config)]
|
||||
#[config(partial_attr(derive(Clone)))]
|
||||
struct Http {
|
||||
/// The port the server will listen on.
|
||||
#[config(env = "PORT")]
|
||||
|
||||
Reference in New Issue
Block a user