pub trait DatabaseColumn {
    // Required method
    fn column() -> Column;
}
Expand description

The table has a corresponding column in the database.

Using this trait allows the configured mappable type to have its’ database integration auto-implemented for single column interactions.

If the mappable type requires access to multiple columns or custom logic during setting/getting then its’ storage interfaces should be manually implemented and this trait should be avoided.

Required Methods§

source

fn column() -> Column

The column of the table.

Implementations on Foreign Types§

source§

impl DatabaseColumn for SealedBlockConsensus

source§

impl DatabaseColumn for ContractsLatestUtxo

source§

impl DatabaseColumn for ContractsInfo

source§

impl DatabaseColumn for Receipts

source§

impl DatabaseColumn for SpentMessages

source§

impl DatabaseColumn for Transactions

Implementors§