pub struct UserService { /* private fields */ }Implementations§
Source§impl UserService
impl UserService
pub fn new( fishing_history_entry_repository: Arc<dyn FishingHistoryEntryRepositoryInterface>, user_repository: Arc<dyn UserRepositoryInterface>, ) -> UserService
Trait Implementations§
Source§impl UserServiceInterface for UserService
impl UserServiceInterface for UserService
fn create_and_save_user(&self, external_id: i64) -> GameResult<User>
fn get_unmet_location_unlock_requirements( &self, user: &User, location: Arc<LocationData>, ) -> GameResult<LocationUnlockRequirements>
fn unlock_location( &self, user: &User, location_data: Arc<LocationData>, ) -> GameResult<UserLocation>
fn get_unlocked_locations(&self, user: &User) -> GameResult<Vec<UserLocation>>
fn get_unlocked_location_ids(&self, user: &User) -> GameResult<Vec<i32>>
Auto Trait Implementations§
impl Freeze for UserService
impl !RefUnwindSafe for UserService
impl Send for UserService
impl Sync for UserService
impl Unpin for UserService
impl !UnwindSafe for UserService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more