Add handling of nested configuration types via #[config(child)]

This commit is contained in:
Lukas Kalbertodt
2021-05-14 22:13:31 +02:00
parent 3fd3835fdf
commit 8abc07bcda
4 changed files with 131 additions and 30 deletions

View File

@@ -31,7 +31,7 @@ pub enum Error {
/// Returned by `Config::from_partial` when the partial does not contain
/// values for all required configuration values. The string is a
/// human-readable path to the value, e.g. `http.port`.
MissingValue(&'static str),
MissingValue(String),
}
impl std::error::Error for Error {}