|
metadata 0.2.0
Modern C++23 header-only metadata container (JSON-like)
|
Parcel cell wrapping an md::Value.
More...
#include <parcel.hpp>
Inherits parcel::BaseCell< ValueCell, Value >.
Public Member Functions | |
| std::string | to_string () const override |
Compact textual rendering of the wrapped md::Value, identical to streaming via operator<< (escaped JSON-shaped output). | |
Static Public Member Functions | |
| static parcel::cell_t | from_json (parcel::json_t const &j, parcel::ParcelRegistry const &) |
| Parcel deserialization entry point. | |
| static parcel::cell_type_descriptor_t | descriptor () |
Registry descriptor for ValueCell. | |
Static Public Attributes | |
| static constexpr std::string_view | kind_id = "md:v" |
Wire-stable kind id reported under the "k" slot. | |
Parcel cell wrapping an md::Value.
Wire kind: md:v. The "v" slot carries the value in its natural JSON shape via the <md/json.hpp> ADL hooks.
|
inlinestatic |
Registry descriptor for ValueCell.
Carries display metadata (name, icon, color) used by introspection tooling.
|
inlinestatic |
Parcel deserialization entry point.
Validates "k" == "md:v" and decodes "v" as an md::Value via the <md/json.hpp> ADL hooks.
| j | Incoming {"k","v"} envelope. |
| parcel::ParcelException | on shape or kind mismatch. |