Skip to main content

Module traits

Module traits 

Source

Traitsยง

BorrowPrimaryKey
Something whose primary key can be borrowed as a distinct type.
DeletableBySearchKey
Entities implementing DeletableBySearchKey can be deleted by that search key.
Entity
Something which can be stored in our database.
EntityDatabaseMutation
Extend an Entity with db-mutating operations which can be performed when provided with a transaction.
EntityDeleteBorrowed
Extend an Entity with db-mutating operations which can be performed when provided with a transaction.
EntityGetBorrowed
FetchFromDatabase
Interface to fetch from the database either from the connection directly or through a transaction.
KeyType
A Key Type is a type which can act as a key for a database.
OwnedKeyType
An owned key type can be converted to from arbitrary bytes.
PrimaryKey
Something which has a distinct primary key which can uniquely identify it.
SearchableEntity
UniqueEntity
A unique entity can appear either 0 or 1 times in the database.
UniqueEntityExt
Unique entities get some convenience methods implemented automatically.
UniqueEntityImplementationHelper
Unique entity implementation/migration helper.