Crate value_bag

source ·
Expand description

Structured values.

This crate contains the ValueBag type, a container for an anonymous structured value. ValueBags can be captured in various ways and then formatted, inspected, and serialized without losing their original structure.

The producer of a ValueBag may use a different strategy for capturing than the eventual consumer. They don’t need to coordinate directly.


  • Deferred value initialization.
  • Test support for inspecting values.
  • Value inspection.


  • An error encountered while working with structured data.
  • A dynamic structured value.
  • A dynamic structured value.