This commit is contained in:
2025-12-13 02:15:28 +01:00
commit dbec2e9a74
58 changed files with 6177 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
use std::time::Instant;
use uuid::Uuid;
use crate::app::AppState;
#[derive(Clone, Debug)]
pub struct RequestContext {
pub request_id: Uuid,
pub started_at: Instant,
pub method: axum::http::Method,
pub uri: axum::http::Uri,
pub user: Option<CurrentUser>,
}
#[derive(Clone, Debug)]
pub struct CurrentUser {
pub id: Uuid,
pub username: String,
}