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
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.