Jake Probst
5 years ago
7 changed files with 55 additions and 32 deletions
-
6Cargo.toml
-
4src/lib.rs
-
7src/login/character.rs
-
15src/login/dataaccess.rs
-
20src/login/entities.rs
-
2src/login/login.rs
-
31src/login/main.rs
@ -1,7 +1,3 @@ |
|||||
#![feature(const_generics)]
|
#![feature(const_generics)]
|
||||
|
|
||||
#[macro_use]
|
|
||||
extern crate diesel;
|
|
||||
|
|
||||
pub mod common;
|
pub mod common;
|
||||
pub mod schema;
|
|
@ -0,0 +1,20 @@ |
|||||
|
use std::time::SystemTime;
|
||||
|
|
||||
|
use libpso::character::settings;
|
||||
|
|
||||
|
|
||||
|
pub struct UserAccount {
|
||||
|
pub id: i32,
|
||||
|
pub username: String,
|
||||
|
pub password: String,
|
||||
|
pub guildcard: Option<i32>,
|
||||
|
pub team_id: Option<i32>,
|
||||
|
pub banned: bool,
|
||||
|
pub muted_until: SystemTime,
|
||||
|
pub created_at: SystemTime,
|
||||
|
}
|
||||
|
pub struct UserSettings {
|
||||
|
pub id: i32,
|
||||
|
pub user_id: i32,
|
||||
|
pub settings: settings::UserSettings,
|
||||
|
}
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue