-
Notifications
You must be signed in to change notification settings - Fork 243
Open
Description
Consider the following enum:
#[derive(Deserialize)]
pub enum Config {
Case1 {
field: bool,
},
Case2 {
field: String,
},
}
It becomes impossible to override the value of Config
in through overlaid sources leading to "value of enum Config should be represented by either string or table with exactly one key". I would like to be able to provide a default value for this configuration but have a later, more specific bit of config override this. Is this a change which would be acceptable?
Metadata
Metadata
Assignees
Labels
No labels