forgot to include these
This commit is contained in:
parent
068935d105
commit
d4557894ca
@ -4,12 +4,15 @@ use std::default::Default;
|
||||
//use diesel::prelude::*;
|
||||
//use diesel::pg::PgConnection;
|
||||
|
||||
use libpso::character::settings;
|
||||
//use libpso::character::settings;
|
||||
//use libpso::character::character;
|
||||
use crate::entities::*;
|
||||
//use crate::models::*;
|
||||
|
||||
//type ConnectionPool = r2d2::Pool<r2d2::ConnectionManager<PgConnection>>;
|
||||
|
||||
// TODO: should any of these be options? as in, what does failure look like
|
||||
// TODO: determine best way to design this, current path will lead to 8493024039280x functions (probably?)
|
||||
pub trait DataAccess {
|
||||
fn get_user_by_id(&self, _id: u32) -> Option<UserAccount> {
|
||||
unimplemented!();
|
||||
@ -26,6 +29,14 @@ pub trait DataAccess {
|
||||
fn create_user_settings_by_user(&self, _user: &UserAccount) -> UserSettings {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
fn get_characters_by_user(&self, _user: &UserAccount) -> [Option<Character>; 4] {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
fn get_guild_card_data_by_user(&self, _user: &UserAccount) -> GuildCardData {
|
||||
unimplemented!();
|
||||
}
|
||||
}
|
||||
|
||||
/*#[derive(Clone)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user