From 7b9e9d2da5d85f23d43724fe2ca5012918ea54be Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 23 Aug 2024 22:19:32 +0200 Subject: Add doc --- src/state.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 876a5f4..700f6ab 100644 --- a/src/state.rs +++ b/src/state.rs @@ -3,6 +3,8 @@ 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, } -- cgit v1.2.3-18-g5258