fedimint_core::db

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§

Object Safety§

This trait is not object safe.

Implementors§