Browse Source

forgot to include these

pbs
Jake Probst 5 years ago
parent
commit
d4557894ca
  1. 13
      src/login/dataaccess.rs

13
src/login/dataaccess.rs

@ -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…
Cancel
Save