aboutsummaryrefslogtreecommitdiff
path: root/src/model/balancing.rs
blob: fe480f20270a46bd4f83c5e94795283bf90de2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#[derive(Debug, serde::Serialize)]
pub struct TableRow {
    pub id: i64,
    pub source: String,
    pub destination: String,
    pub amount: i64,
}

#[derive(serde::Serialize, Clone)]
pub struct Balancing {
    pub id: i64,
    pub source: i64,
    pub destination: i64,
    pub amount: i64,
}

#[derive(Debug)]
pub struct Create {
    pub source: i64,
    pub destination: i64,
    pub amount: i64,
}

#[derive(Debug)]
pub struct Update {
    pub source: i64,
    pub destination: i64,
    pub amount: i64,
}