You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
use diesel::{Queryable, Insertable}; |
|
use super::schema::users; |
|
|
|
#[derive(Queryable)] |
|
pub struct User { |
|
pub id: i32, |
|
pub name: String, |
|
} |
|
|
|
#[derive(Insertable)] |
|
#[table_name="users"] |
|
pub struct NewUser { |
|
pub name: String, |
|
}
|
|
|