1
0
mirror of https://github.com/actix/examples synced 2025-02-26 02:52:49 +01:00
Daniel T. Rodrigues 75c19eb5c9
Add tests to diesel example (#414)
* add tests to diesel example

* add diesel migration to gh workflow

* update diesel gh action

* update diesel gh action

* review #414 diesel tests
2021-03-02 03:35:02 +09:00

15 lines
292 B
Rust

use serde::{Deserialize, Serialize};
use crate::schema::users;
#[derive(Debug, Clone, Serialize, Deserialize, Queryable, Insertable)]
pub struct User {
pub id: String,
pub name: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct NewUser {
pub name: String,
}