Trait schemadb::schema::Schema

source ·
pub trait Schema {
    type Key: KeyCodec<Self>;
    type Value: ValueCodec<Self>;

    const COLUMN_FAMILY_NAME: ColumnFamilyName;
}
Expand description

This trait defines a schema: an association of a column family name, the key type and the value type.

Required Associated Types§

source

type Key: KeyCodec<Self>

Type of the key.

source

type Value: ValueCodec<Self>

Type of the value.

Required Associated Constants§

source

const COLUMN_FAMILY_NAME: ColumnFamilyName

The column family name associated with this struct. Note: all schemas within the same SchemaDB must have distinct column family names.

Implementors§