repox 0.1.0

trait framework for data repository patterns
Documentation
1
2
3
4
5
use crate::Entity;

pub trait BelongsToForeignKey<T: Entity>: Entity {
    fn key(&self) -> T::ID;
}