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§
const NOTIFY_ON_MODIFY: bool = false
Required Associated Types§
type Key: DatabaseKey + Debug
type Value: DatabaseValue + Debug
Object Safety§
This trait is not object safe.