IMAPServer-shared 0.1.0

A shared module for the IMAPServer crate and it's cli
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::schema::users;

#[derive(Debug, Queryable)]
pub struct User {
    pub id: i32,
    pub email: String,
    pub password_hash: String,
    pub uid_validity_identifier: String,
}

#[derive(Debug, Insertable)]
#[table_name = "users"]
pub struct NewUser<'a> {
    pub email: &'a str,
    pub password_hash: &'a str,
    pub uid_validity_identifier: &'a str,
}