Expand description
Generic config setter that works for ALL schema-known keys.
Instead of a hardcoded match arm per key, this module:
- Validates the key against
ConfigSchema - Parses the value according to the schema type
- Performs a TOML round-trip to set the value
- Deserializes back into
Configfor full serde validation
Functionsยง
- current_
value - Returns the current value of
keyfrom the on-diskconfig.toml, rendered as the string a user would type (no TOML quoting), orNoneif the key is unset (still at its schema default). - set_
by_ key - Attempts to set a config key generically via schema-validated TOML round-trip.