pub trait Table: Sized + 'static {
type Ext<T>: RefCast<From = T>;
type Schema;
// Provided method
fn join<'inner>(
rows: &mut Rows<'inner, Self::Schema>,
) -> Column<'inner, Self::Schema, Self> { ... }
}
Expand description
This trait is implemented for all table types as generated by the crate::migration::schema macro.
Required Associated Types§
Sourcetype Ext<T>: RefCast<From = T>
type Ext<T>: RefCast<From = T>
The associated type Table::Ext is used as the deref target by several types that implement IntoColumn. This adds convenient methods to access related tables that have a foreign key constraint.
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.