pub struct AppState {
pub config: Config,
pub session_id: Uuid,
pub http_client: Client,
pub rate_limits: Arc<RwLock<HashMap<String, (u32, DateTime<Utc>)>>>,
pub start_time: DateTime<Utc>,
pub current_mcp_session: Arc<RwLock<Option<String>>>,
}Fields§
§config: Config§session_id: Uuid§http_client: Client§rate_limits: Arc<RwLock<HashMap<String, (u32, DateTime<Utc>)>>>§start_time: DateTime<Utc>§current_mcp_session: Arc<RwLock<Option<String>>>Implementations§
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