|
parcel 0.2.2
Wrappable, wire-transferable C++23 value system with JSON serialization
|
Runtime descriptor for a single struct field. More...
#include <descriptor.h>

Public Member Functions | |
| virtual std::string_view | key () const =0 |
JSON key under which this field appears in "v". | |
| virtual std::string_view | kind () const =0 |
| Cell kind id for the field's value type. | |
| virtual DisplayInfo | display_info () const =0 |
| Display info for this field. | |
| virtual bool | is_required () const =0 |
| Whether the field must be present on deserialization. | |
| virtual json_t | to_json () const =0 |
| Serialize the field descriptor itself. | |
Runtime descriptor for a single struct field.
|
pure virtual |
Serialize the field descriptor itself.
key, kind, display_info, required. Implemented in parcel::MemberFieldDescriptor< Payload, FieldT, CellT >, and parcel::InheritedFieldDescriptor< DerivedPayload, ParentPayload >.