use sqlx::{Pool, Postgres}; #[derive(Debug)] pub struct AppState { pub pool: Pool, pub jwt_secret: String, pub jwt_max_age: time::Duration, } impl AppState { pub fn new(pool: Pool, jwt_secret: String, jwt_max_age: time::Duration) -> Self { Self { pool, jwt_secret, jwt_max_age, } } }