Trait fuel_core::database::storage::DatabaseColumn
source · 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.