Skip to content

Support Implementing Deserialize::deserialize_in_place #10

@commonsensesoftware

Description

@commonsensesoftware

Background

Configuration binding (e.g. Configuration::bind) calls through Deserialize::deserialize_in_place provided by the serde crate. The default implementation of Deserialize::deserialize_in_place simply calls Deserialize::deserialize and completely replaces the provided struct.

Goal

The ideal scenario would be to implement, or provide a callable implementation for, Deserialize::deserialize_in_place that a consumer can leverage. This would allow partially updating the supplied struct without requiring the presence of all configuration keys for each struct field.

It's not clear whether this is possible. The solution may require one or more macros.

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