Trait DatabaseRecord

Source
pub trait DatabaseRecord: DatabaseKeyPrefix {
    type Key: DatabaseKey + Debug;
    type Value: DatabaseValue + Debug;

    const DB_PREFIX: u8;
    const NOTIFY_ON_MODIFY: bool = false;
}
Expand description

A key + value pair in the database with a unique prefix Extends DatabaseKeyPrefix to prepend the key’s prefix.

Required Associated Constants§

Provided Associated Constants§

Required Associated Types§

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§

Source§

impl DatabaseRecord for ClientBackupKey

Source§

impl DatabaseRecord for DatabaseVersionKey

Source§

impl DatabaseRecord for DatabaseVersionKeyV0

Source§

impl DatabaseRecord for AltTestKey

Source§

impl DatabaseRecord for PercentTestKey

Source§

impl DatabaseRecord for TestKey

Source§

impl DatabaseRecord for TestKeyV0