pub struct ServiceManager { /* private fields */ }
Expand description
Service Manager for dependency injection and service orchestration
Implementations§
Source§impl ServiceManager
impl ServiceManager
Sourcepub fn new(http_provider: Arc<dyn HttpProviderSafe>) -> Self
pub fn new(http_provider: Arc<dyn HttpProviderSafe>) -> Self
Create a new ServiceManager with all services
Sourcepub fn auth_service(&self) -> Option<Arc<dyn AuthService>>
pub fn auth_service(&self) -> Option<Arc<dyn AuthService>>
Get the auth service
Sourcepub fn card_service(&self) -> Option<Arc<dyn CardService>>
pub fn card_service(&self) -> Option<Arc<dyn CardService>>
Get the card service
Sourcepub fn collection_service(&self) -> Option<Arc<dyn CollectionService>>
pub fn collection_service(&self) -> Option<Arc<dyn CollectionService>>
Get the collection service
Sourcepub fn dashboard_service(&self) -> Option<Arc<dyn DashboardService>>
pub fn dashboard_service(&self) -> Option<Arc<dyn DashboardService>>
Get the dashboard service
Sourcepub fn database_service(&self) -> Option<Arc<dyn DatabaseService>>
pub fn database_service(&self) -> Option<Arc<dyn DatabaseService>>
Get the database service
Sourcepub fn query_service(&self) -> Option<Arc<dyn QueryService>>
pub fn query_service(&self) -> Option<Arc<dyn QueryService>>
Get the query service
Trait Implementations§
Source§impl Clone for ServiceManager
impl Clone for ServiceManager
Source§fn clone(&self) -> ServiceManager
fn clone(&self) -> ServiceManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ServiceManager
impl !RefUnwindSafe for ServiceManager
impl Send for ServiceManager
impl Sync for ServiceManager
impl Unpin for ServiceManager
impl !UnwindSafe for ServiceManager
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