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