Mutable, single-owner accumulator for constructing a SchemaRegistry. More...
#include <schema_registry.hpp>
Public Member Functions | |
| runtime::Result< SchemaRegistration, SchemaError > | register_type (TypeSchema schema) |
| Validates and takes ownership of one schema registration. | |
| runtime::Result< SchemaRegistry, SchemaError > | build () && |
| Sorts the accumulated registrations and consumes them into a registry. | |
Mutable, single-owner accumulator for constructing a SchemaRegistry.
Registering and building are not thread-safe. build() consumes the builder.
| runtime::Result< SchemaRegistry, SchemaError > pulp::timeline::SchemaRegistryBuilder::build | ( | ) | && |
Sorts the accumulated registrations and consumes them into a registry.
| runtime::Result< SchemaRegistration, SchemaError > pulp::timeline::SchemaRegistryBuilder::register_type | ( | TypeSchema | schema | ) |
Validates and takes ownership of one schema registration.
Domain/name pairs and field names must be unique; codecs must be complete; migration edges must be unique, adjacent, and directionally valid.