summaryrefslogtreecommitdiff
path: root/src/db/tool.rs
blob: c53dc1e18cc847a30b9c45f4e45da676b9881ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
    }
}