pub struct DependencyContainer {
pub config: Config,
pub db_pool: Arc<PgPool>,
pub memory_repository: Arc<MemoryRepository>,
pub embedder: Arc<SimpleEmbedder>,
pub setup_manager: Arc<SetupManager>,
pub database_setup: Arc<DatabaseSetup>,
pub backup_manager: Option<Arc<BackupManager>>,
pub tier_manager: Option<Arc<TierManager>>,
pub harvester_service: Option<Arc<SilentHarvesterService>>,
pub health_checker: Arc<HealthChecker>,
pub mcp_server: Option<Arc<MCPServer>>,
pub server_manager: Arc<ServerManager>,
}
Expand description
Dependency injection container for the application
Fields§
§config: Config
§db_pool: Arc<PgPool>
§memory_repository: Arc<MemoryRepository>
§embedder: Arc<SimpleEmbedder>
§setup_manager: Arc<SetupManager>
§database_setup: Arc<DatabaseSetup>
§backup_manager: Option<Arc<BackupManager>>
§tier_manager: Option<Arc<TierManager>>
§harvester_service: Option<Arc<SilentHarvesterService>>
§health_checker: Arc<HealthChecker>
§mcp_server: Option<Arc<MCPServer>>
§server_manager: Arc<ServerManager>
Implementations§
Auto Trait Implementations§
impl Freeze for DependencyContainer
impl !RefUnwindSafe for DependencyContainer
impl Send for DependencyContainer
impl Sync for DependencyContainer
impl Unpin for DependencyContainer
impl !UnwindSafe for DependencyContainer
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more