pub trait Table: Sized + 'static {
type Schema;
type Conflict;
type UpdateOk;
type Update;
type Referer;
}
Expand description
This trait is implemented for all table types as generated by the crate::migration::schema macro.
You can not implement this trait yourself!
Required Associated Types§
Sourcetype Conflict
type Conflict
The type of conflict that can result from inserting a row in this table. This is the same type that is used for row updates too.
Sourcetype UpdateOk
type UpdateOk
The type of updates used by Transaction::update_ok.
Sourcetype Update
type Update
The type of updates used by Transaction::update.
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.