pub trait ForeignKeyRef<M, T>: ColumnRef<M> { }Expand description
A foreign key column on M pointing to T: Post::AUTHOR_ID (an author_id: ForeignKey<User> field)
is a ForeignKeyRef<Post, User>, so relation methods infer the related model and reject
a column that points elsewhere. &str is accepted too (then name the model with ::<T>).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".