use super::product::ProductMarker; #[derive(Debug, serde::Serialize, sqlx::FromRow)] pub struct Tool { pub id: i64, pub repolink: String, pub pid: i64, } impl ProductMarker for Tool { fn product_id(&self) -> i64 { self.id } }