Skip to content

Figment doesn't provide direct support for optional keys. #152

Description

@the10thWiz

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions