[][src]Trait schemadb::schema::Schema

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

    const COLUMN_FAMILY_NAME: ColumnFamilyName;
}

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

Associated Types

type Key: KeyCodec<Self>

Type of the key.

type Value: ValueCodec<Self>

Type of the value.

Loading content...

Associated Constants

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.

Loading content...

Implementors

Loading content...