1 2 3 4 5
use crate::Entity; pub trait BelongsToForeignKey<T: Entity>: Entity { fn key(&self) -> T::ID; }