summaryrefslogtreecommitdiff
path: root/src/state.rs
blob: 700f6abdb6a9c34e7f1da0cc8936d98a81b3f4e4 (plain)
1
2
3
4
5
6
7
8
9
10
use std::sync::Arc;

use tokio_postgres::Client;

#[derive(Clone)]
/// State application shared through Axum
pub struct AppState {
    /// PostgreSQL client synced via Arc
    pub client: Arc<Client>,
}