Module schema

Source
Expand description

This module provides traits that define the behavior of a schema and its associated key and value types, along with helpers to define a new schema with ease.

Traits§

KeyCodec
This trait defines a type that can serve as a Schema::Key.
Schema
This trait defines a schema: an association of a column family name, the key type and the value type.
SeekKeyCodec
This defines a type that can be used to seek a SchemaIterator, via interfaces like seek.
ValueCodec
This trait defines a type that can serve as a Schema::Value.

Functions§

assert_encode_decode
Helper used in tests to assert a (key, value) pair for a certain Schema is able to convert to bytes and convert back.