pub struct ServerContext {
pub db: DbPool,
pub config: Config,
}Expand description
Runtime context shared across all tool calls.
Holds the database connections and configuration. Created once at startup and passed by reference to every tool handler.
Fields§
§db: DbPool§config: ConfigAuto Trait Implementations§
impl !Freeze for ServerContext
impl !RefUnwindSafe for ServerContext
impl Send for ServerContext
impl !Sync for ServerContext
impl Unpin for ServerContext
impl !UnwindSafe for ServerContext
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