pub struct AppState {
pub config: Arc<Config>,
pub search_service: Arc<SearchService>,
pub storage_service: Arc<StorageService>,
pub indexer_service: Arc<IndexerService>,
}
Expand description
Application state containing all service instances and configuration.
This struct holds Arc-wrapped instances of all services to enable safe sharing across async tasks and HTTP handlers.
Fields§
§config: Arc<Config>
Application configuration
search_service: Arc<SearchService>
Search service for Azure Cognitive Search operations
storage_service: Arc<StorageService>
Storage service for CosmosDB operations
indexer_service: Arc<IndexerService>
Indexer service for web crawling and content indexing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl !UnwindSafe for AppState
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