diff --git a/src/entity/gateway/entitygateway.rs b/src/entity/gateway/entitygateway.rs index 9cf4d4d..71c23fd 100644 --- a/src/entity/gateway/entitygateway.rs +++ b/src/entity/gateway/entitygateway.rs @@ -2,6 +2,7 @@ use crate::entity::account::*; use crate::entity::character::*; use crate::entity::item::*; +// TODO: all these Options should be Results #[async_trait::async_trait] pub trait EntityGateway: Send + Sync + Clone { async fn create_user(&mut self, _user: NewUserAccountEntity) -> Option { @@ -28,7 +29,7 @@ pub trait EntityGateway: Send + Sync + Clone { unimplemented!(); } - fn save_user_settings(&mut self, _settings: &UserSettingsEntity) { + async fn save_user_settings(&mut self, _settings: &UserSettingsEntity) { unimplemented!(); } @@ -36,6 +37,7 @@ pub trait EntityGateway: Send + Sync + Clone { unimplemented!(); } + // TODO: just make this a vec sorted by slot order? async fn get_characters_by_user(&self, _user: &UserAccountEntity) -> [Option; 4] { unimplemented!(); }