pub trait Table: Sized + 'static {
type Schema;
type Conflict<'t>;
type UpdateOk<'t>;
type Update<'t>;
type Referer;
// Provided method
fn join<'inner>(
rows: &mut Rows<'inner, Self::Schema>,
) -> Expr<'inner, Self::Schema, Self> { ... }
}
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<'t>
type Conflict<'t>
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<'t>
type UpdateOk<'t>
The type of updates used by TransactionMut::update_ok.
Sourcetype Update<'t>
type Update<'t>
The type of updates used by TransactionMut::update.
Provided Methods§
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.