pub trait DatabaseDescription: 'static + Clone + Debug + Send + Sync {
type Column: StorageColumn + EnumCount + Sequence;
type Height: Default + Copy;
// Required methods
fn version() -> u32;
fn name() -> &'static str;
fn metadata_column() -> Self::Column;
fn prefix(column: &Self::Column) -> Option<usize>;
}
Expand description
The description of the database that makes it unique.
Required Associated Types§
sourcetype Column: StorageColumn + EnumCount + Sequence
type Column: StorageColumn + EnumCount + Sequence
The type of the column used by the database.
Required Methods§
sourcefn metadata_column() -> Self::Column
fn metadata_column() -> Self::Column
Returns the column used to store the metadata.
Object Safety§
This trait is not object safe.