parcel 0.2.2
Wrappable, wire-transferable C++23 value system with JSON serialization
Loading...
Searching...
No Matches
parcel::Definition Struct Reference

Closed-over schema for a single root kind plus everything it references. More...

#include <registry.h>

Public Member Functions

json_t to_json () const
 Serialize to a JSON object with root and referenced blocks.
 

Public Attributes

cell_type_descriptor_t root
 Descriptor for the requested root kind.
 
std::map< std::string, cell_type_descriptor_t, std::less<> > referenced
 Every kind transitively referenced by root, keyed by kind id.
 

Detailed Description

Closed-over schema for a single root kind plus everything it references.

Returned by ParcelRegistry::define. Useful for emitting a self-contained schema document for a particular cell type.

Member Function Documentation

◆ to_json()

json_t parcel::Definition::to_json ( ) const
inline

Serialize to a JSON object with root and referenced blocks.

Returns
JSON object describing the whole schema slice.

The documentation for this struct was generated from the following file: