mirror of
https://github.com/actix/examples
synced 2025-02-26 02:52:49 +01:00
* add tests to diesel example * add diesel migration to gh workflow * update diesel gh action * update diesel gh action * review #414 diesel tests
15 lines
292 B
Rust
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,
|
|
}
|