source:
src-tauri/src/models/category.rs
| Last change on this file was a4ca79c, checked in by , 5 days ago | |
|---|---|
|
|
| File size: 181 bytes | |
| Rev | Line | |
|---|---|---|
| [a4ca79c] | 1 | use serde::Serialize; |
| 2 | use sqlx::FromRow; | |
| 3 | ||
| 4 | ||
| 5 | #[derive(Serialize, FromRow)] | |
| 6 | pub struct Category { | |
| 7 | pub category_id: i32, | |
| 8 | pub name: String, | |
| 9 | pub description: Option<String>, | |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
