diff options
Diffstat (limited to 'src/model/user.rs')
-rw-r--r-- | src/model/user.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/model/user.rs b/src/model/user.rs new file mode 100644 index 0000000..e8a61bf --- /dev/null +++ b/src/model/user.rs @@ -0,0 +1,8 @@ +use serde::Serialize; + +#[derive(Debug, sqlx::FromRow, Clone, Serialize)] +pub struct User { + pub id: i64, + pub name: String, + pub email: String, +} |