1
0
mirror of https://github.com/actix/examples synced 2025-06-27 09:29:02 +02:00

refactor: use confik instead of config

This commit is contained in:
Rob Ede
2024-07-07 02:01:13 +01:00
parent 03879899a5
commit 0bdd5479ff
14 changed files with 322 additions and 477 deletions

View File

@ -0,0 +1,11 @@
use serde::{Deserialize, Serialize};
use tokio_pg_mapper_derive::PostgresMapper;
#[derive(Deserialize, PostgresMapper, Serialize)]
#[pg_mapper(table = "users")] // singular 'user' is a keyword..
pub struct User {
pub email: String,
pub first_name: String,
pub last_name: String,
pub username: String,
}