pub struct ServiceProvider { /* private fields */ }Implementations§
Source§impl ServiceProvider
impl ServiceProvider
pub fn new( config: Arc<dyn ConfigInterface>, database: Arc<RwLock<dyn DatabaseInterface>>, ) -> Self
pub fn create( config: Arc<dyn ConfigInterface>, database: Arc<RwLock<dyn DatabaseInterface>>, ) -> Arc<dyn ServiceProviderInterface>
Trait Implementations§
Source§impl ServiceProviderInterface for ServiceProvider
impl ServiceProviderInterface for ServiceProvider
fn config(&self) -> Arc<dyn ConfigInterface>
fn database(&self) -> Arc<RwLock<dyn DatabaseInterface>>
fn fishing_history_entry_repository( &self, ) -> Arc<dyn FishingHistoryEntryRepositoryInterface>
fn item_repository(&self) -> Arc<dyn ItemRepositoryInterface>
fn pond_repository(&self) -> Arc<dyn PondRepositoryInterface>
fn specimen_repository(&self) -> Arc<dyn SpecimenRepositoryInterface>
fn user_repository(&self) -> Arc<dyn UserRepositoryInterface>
fn encounter_service(&self) -> Arc<dyn EncounterServiceInterface>
fn fishing_history_service(&self) -> Arc<dyn FishingHistoryServiceInterface>
fn item_service(&self) -> Arc<dyn ItemServiceInterface>
fn location_service(&self) -> Arc<dyn LocationServiceInterface>
fn pond_service(&self) -> Arc<dyn PondServiceInterface>
fn species_service(&self) -> Arc<dyn SpeciesServiceInterface>
fn specimen_service(&self) -> Arc<dyn SpecimenServiceInterface>
fn user_service(&self) -> Arc<dyn UserServiceInterface>
fn weather_service(&self) -> Arc<dyn WeatherServiceInterface>
Auto Trait Implementations§
impl Freeze for ServiceProvider
impl !RefUnwindSafe for ServiceProvider
impl Send for ServiceProvider
impl Sync for ServiceProvider
impl Unpin for ServiceProvider
impl !UnwindSafe for ServiceProvider
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