blob: 48584023115182382f4549261d36dc538ce416b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use serde::Serialize;
#[derive(Debug, sqlx::FromRow, Serialize)]
pub struct Report {
pub date: String,
pub name: String,
pub amount: i64,
pub action: Action,
}
#[derive(Debug, PartialEq, Serialize, sqlx::Type)]
pub enum Action {
Created,
Updated,
Deleted,
}
|