aboutsummaryrefslogtreecommitdiff
path: root/src/model/category.rs
blob: ecece967219999c6c63c5e686d7ab77dcc3c85bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(serde::Serialize, Clone)]
pub struct Category {
    pub id: i64,
    pub name: String,
    pub color: String,
}

#[derive(Debug)]
pub struct Create {
    pub name: String,
    pub color: String,
}

#[derive(Debug)]
pub struct Update {
    pub name: String,
    pub color: String,
}