main / src / state.rs · 211 bytes
use crate::auth::AuthState; use crate::config::Config; use sqlx::PgPool; use std::sync::Arc; #[derive(Clone)] pub struct AppState { pub pool: PgPool, pub config: Arc<Config>, pub auth: AuthState, }