From d4557894ca8acdadbef9554185c8422c3ff44375 Mon Sep 17 00:00:00 2001 From: Jake Probst Date: Thu, 5 Sep 2019 14:36:53 -0700 Subject: [PATCH] forgot to include these --- src/login/dataaccess.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/login/dataaccess.rs b/src/login/dataaccess.rs index 4bb3fdf..fe6492d 100644 --- a/src/login/dataaccess.rs +++ b/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>; +// 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 { 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; 4] { + unimplemented!(); + } + + fn get_guild_card_data_by_user(&self, _user: &UserAccount) -> GuildCardData { + unimplemented!(); + } } /*#[derive(Clone)]