cuprate_database

Trait Table

Source
pub trait Table: 'static {
    type Key: Key + 'static;
    type Value: Storable + 'static;

    const NAME: &'static str;
}
Expand description

Database table metadata.

Purely compile time information for database tables.

See crate::define_tables for bulk table generation.

Required Associated Constants§

Source

const NAME: &'static str

Name of the database table.

Required Associated Types§

Source

type Key: Key + 'static

Primary key type.

Source

type Value: Storable + 'static

Value type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§