For example, calling extract_inner (or extract_inner_lossy) with a key that doesn't exist in the loaded config always returns an error - even if we want to extract an Option<T>.
As far as I know, there isn't a way for us to detect that the user is attempting to extract an Option, but we could handle this case by catching the missing config error and instead attempt to deserialize a Value::Emtpy(.., Empty::None).
For example, calling
extract_inner(orextract_inner_lossy) with a key that doesn't exist in the loaded config always returns an error - even if we want to extract anOption<T>.As far as I know, there isn't a way for us to detect that the user is attempting to extract an
Option, but we could handle this case by catching the missing config error and instead attempt to deserialize aValue::Emtpy(.., Empty::None).