pub struct RepositoryFactory { /* private fields */ }
Expand description
Factory for creating repository instances
Implementations§
Source§impl RepositoryFactory
impl RepositoryFactory
Sourcepub fn new(config: RepositoryConfig) -> Self
pub fn new(config: RepositoryConfig) -> Self
Create a new repository factory
Sourcepub fn create_card_repository(&self) -> Arc<dyn CardRepository>
pub fn create_card_repository(&self) -> Arc<dyn CardRepository>
Create a card repository
Sourcepub fn create_collection_repository(&self) -> Arc<dyn CollectionRepository>
pub fn create_collection_repository(&self) -> Arc<dyn CollectionRepository>
Create a collection repository
Sourcepub fn create_dashboard_repository(&self) -> Arc<dyn DashboardRepository>
pub fn create_dashboard_repository(&self) -> Arc<dyn DashboardRepository>
Create a dashboard repository
Sourcepub fn create_query_repository(&self) -> Arc<dyn QueryRepository>
pub fn create_query_repository(&self) -> Arc<dyn QueryRepository>
Create a query repository
Sourcepub fn create_all(&self) -> RepositorySet
pub fn create_all(&self) -> RepositorySet
Create all repositories at once
Auto Trait Implementations§
impl Freeze for RepositoryFactory
impl !RefUnwindSafe for RepositoryFactory
impl Send for RepositoryFactory
impl Sync for RepositoryFactory
impl Unpin for RepositoryFactory
impl !UnwindSafe for RepositoryFactory
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