Add #[config(partial_attr(...))] to add attributes for partial type

CC #17
This commit is contained in:
Lukas Kalbertodt
2023-12-08 18:15:50 +01:00
parent 830ca775cb
commit fa79a463b8
6 changed files with 60 additions and 0 deletions

View File

@@ -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")]